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/sys_cdefs_h.m4 | |
| parent | 68fc05381ee5fa0aee1413118fbb3d81ca888b09 (diff) | |
| download | monitoring-plugins-b0afb8fe.tar.gz | |
Sync with Gnulib stable-202507 code (a8ac9f9ce5)
Diffstat (limited to 'gl/m4/sys_cdefs_h.m4')
| -rw-r--r-- | gl/m4/sys_cdefs_h.m4 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gl/m4/sys_cdefs_h.m4 b/gl/m4/sys_cdefs_h.m4 new file mode 100644 index 00000000..d72796ca --- /dev/null +++ b/gl/m4/sys_cdefs_h.m4 | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | # sys_cdefs_h.m4 - Is <sys/cdefs.h> compatible enough with glibc? | ||
| 2 | # serial 2 | ||
| 3 | dnl Copyright 2024-2025 Free Software Foundation, Inc. | ||
| 4 | dnl This file is free software; the Free Software Foundation | ||
| 5 | dnl gives unlimited permission to copy and/or distribute it, | ||
| 6 | dnl with or without modifications, as long as this notice is preserved. | ||
| 7 | dnl This file is offered as-is, without any warranty. | ||
| 8 | |||
| 9 | dnl Written by Paul Eggert. | ||
| 10 | |||
| 11 | AC_DEFUN_ONCE([gl_CHECK_HEADER_SYS_CDEFS_H], | ||
| 12 | [AC_CACHE_CHECK([for glibc-compatible sys/cdefs.h], | ||
| 13 | [gl_cv_header_sys_cdefs_h], | ||
| 14 | [AC_COMPILE_IFELSE( | ||
| 15 | [AC_LANG_DEFINES_PROVIDED | ||
| 16 | [#include <sys/cdefs.h> | ||
| 17 | enum { foo = __GNUC_PREREQ (14, 1) } bar; | ||
| 18 | ]], | ||
| 19 | [gl_cv_header_sys_cdefs_h=yes], | ||
| 20 | [gl_cv_header_sys_cdefs_h=no])]) | ||
| 21 | if test "$gl_cv_header_sys_cdefs_h" = yes; then | ||
| 22 | HAVE_SYS_CDEFS_H=1 | ||
| 23 | else | ||
| 24 | HAVE_SYS_CDEFS_H=0 | ||
| 25 | fi | ||
| 26 | AC_SUBST([HAVE_SYS_CDEFS_H])]) | ||
