diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-12-28 12:13:40 +0100 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-12-28 12:13:40 +0100 |
| commit | b0afb8fe0ff1d87165af9df61501197a06240dda (patch) | |
| tree | 274ac6a96c53ef4c19ab4974ce24a06a233128c5 /gl/m4/getopt.m4 | |
| parent | 68fc05381ee5fa0aee1413118fbb3d81ca888b09 (diff) | |
| download | monitoring-plugins-b0afb8fe0ff1d87165af9df61501197a06240dda.tar.gz | |
Sync with Gnulib stable-202507 code (a8ac9f9ce5)
Diffstat (limited to 'gl/m4/getopt.m4')
| -rw-r--r-- | gl/m4/getopt.m4 | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/gl/m4/getopt.m4 b/gl/m4/getopt.m4 index 297722ea..cb344c15 100644 --- a/gl/m4/getopt.m4 +++ b/gl/m4/getopt.m4 | |||
| @@ -1,9 +1,10 @@ | |||
| 1 | # getopt.m4 | 1 | # getopt.m4 |
| 2 | # serial 49 | 2 | # serial 50 |
| 3 | dnl Copyright (C) 2002-2006, 2008-2024 Free Software Foundation, Inc. | 3 | dnl Copyright (C) 2002-2006, 2008-2025 Free Software Foundation, Inc. |
| 4 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 5 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 6 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
| 7 | dnl This file is offered as-is, without any warranty. | ||
| 7 | 8 | ||
| 8 | # Request a POSIX compliant getopt function. | 9 | # Request a POSIX compliant getopt function. |
| 9 | AC_DEFUN([gl_FUNC_GETOPT_POSIX], | 10 | AC_DEFUN([gl_FUNC_GETOPT_POSIX], |
| @@ -77,7 +78,7 @@ AC_DEFUN([gl_GETOPT_CHECK_HEADERS], | |||
| 77 | fi | 78 | fi |
| 78 | 79 | ||
| 79 | dnl POSIX 2008 does not specify leading '+' behavior, but see | 80 | dnl POSIX 2008 does not specify leading '+' behavior, but see |
| 80 | dnl http://austingroupbugs.net/view.php?id=191 for a recommendation on | 81 | dnl https://austingroupbugs.net/view.php?id=191 for a recommendation on |
| 81 | dnl the next version of POSIX. For now, we only guarantee leading '+' | 82 | dnl the next version of POSIX. For now, we only guarantee leading '+' |
| 82 | dnl behavior with getopt-gnu. | 83 | dnl behavior with getopt-gnu. |
| 83 | if test -z "$gl_replace_getopt"; then | 84 | if test -z "$gl_replace_getopt"; then |
| @@ -366,14 +367,7 @@ dnl is ambiguous with environment values that contain newlines. | |||
| 366 | 367 | ||
| 367 | AC_DEFUN([gl_GETOPT_SUBSTITUTE_HEADER], | 368 | AC_DEFUN([gl_GETOPT_SUBSTITUTE_HEADER], |
| 368 | [ | 369 | [ |
| 369 | AC_CHECK_HEADERS_ONCE([sys/cdefs.h]) | 370 | gl_CHECK_HEADER_SYS_CDEFS_H |
| 370 | if test $ac_cv_header_sys_cdefs_h = yes; then | ||
| 371 | HAVE_SYS_CDEFS_H=1 | ||
| 372 | else | ||
| 373 | HAVE_SYS_CDEFS_H=0 | ||
| 374 | fi | ||
| 375 | AC_SUBST([HAVE_SYS_CDEFS_H]) | ||
| 376 | |||
| 377 | AC_DEFINE([__GETOPT_PREFIX], [[rpl_]], | 371 | AC_DEFINE([__GETOPT_PREFIX], [[rpl_]], |
| 378 | [Define to rpl_ if the getopt replacement functions and variables | 372 | [Define to rpl_ if the getopt replacement functions and variables |
| 379 | should be used.]) | 373 | should be used.]) |
