summaryrefslogtreecommitdiffstats
path: root/gl/m4/errno_h.m4
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2022-08-23 15:13:04 (GMT)
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2022-08-23 15:13:04 (GMT)
commitbbdcf5a704517d35a76ba8b666075da9ffe39ac4 (patch)
treea36bec4f7c2802dfe5efc5cb2dfc902fec2a23b8 /gl/m4/errno_h.m4
parentfa1ac7ecb247faf58fe65740c0d40e0585f684c9 (diff)
downloadmonitoring-plugins-bbdcf5a704517d35a76ba8b666075da9ffe39ac4.tar.gz
Sync with the latest Gnulib code (fa1ac7ec)
Diffstat (limited to 'gl/m4/errno_h.m4')
-rw-r--r--gl/m4/errno_h.m412
1 files changed, 5 insertions, 7 deletions
diff --git a/gl/m4/errno_h.m4 b/gl/m4/errno_h.m4
index 51dfe92..4be9780 100644
--- a/gl/m4/errno_h.m4
+++ b/gl/m4/errno_h.m4
@@ -1,5 +1,5 @@
1# errno_h.m4 serial 13 1# errno_h.m4 serial 14
2dnl Copyright (C) 2004, 2006, 2008-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2004, 2006, 2008-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -68,13 +68,11 @@ booboo
68 [gl_cv_header_errno_h_complete=yes]) 68 [gl_cv_header_errno_h_complete=yes])
69 ]) 69 ])
70 if test $gl_cv_header_errno_h_complete = yes; then 70 if test $gl_cv_header_errno_h_complete = yes; then
71 ERRNO_H='' 71 GL_GENERATE_ERRNO_H=false
72 else 72 else
73 gl_NEXT_HEADERS([errno.h]) 73 gl_NEXT_HEADERS([errno.h])
74 ERRNO_H='errno.h' 74 GL_GENERATE_ERRNO_H=true
75 fi 75 fi
76 AC_SUBST([ERRNO_H])
77 AM_CONDITIONAL([GL_GENERATE_ERRNO_H], [test -n "$ERRNO_H"])
78 gl_REPLACE_ERRNO_VALUE([EMULTIHOP]) 76 gl_REPLACE_ERRNO_VALUE([EMULTIHOP])
79 gl_REPLACE_ERRNO_VALUE([ENOLINK]) 77 gl_REPLACE_ERRNO_VALUE([ENOLINK])
80 gl_REPLACE_ERRNO_VALUE([EOVERFLOW]) 78 gl_REPLACE_ERRNO_VALUE([EOVERFLOW])
@@ -88,7 +86,7 @@ booboo
88# Set the variables EOVERFLOW_HIDDEN and EOVERFLOW_VALUE. 86# Set the variables EOVERFLOW_HIDDEN and EOVERFLOW_VALUE.
89AC_DEFUN([gl_REPLACE_ERRNO_VALUE], 87AC_DEFUN([gl_REPLACE_ERRNO_VALUE],
90[ 88[
91 if test -n "$ERRNO_H"; then 89 if $GL_GENERATE_ERRNO_H; then
92 AC_CACHE_CHECK([for ]$1[ value], [gl_cv_header_errno_h_]$1, [ 90 AC_CACHE_CHECK([for ]$1[ value], [gl_cv_header_errno_h_]$1, [
93 AC_EGREP_CPP([yes],[ 91 AC_EGREP_CPP([yes],[
94#include <errno.h> 92#include <errno.h>