summaryrefslogtreecommitdiffstats
path: root/gl/m4/arpa_inet_h.m4
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@aei.ca>2010-04-07 21:11:46 -0400
committerThomas Guyot-Sionnest <dermoth@aei.ca>2010-04-12 21:26:35 -0400
commit74da141e618ef99959d509cb2e7be35a348a39db (patch)
tree88ebc38b381a1021fc2d74864a71e230ae591c3d /gl/m4/arpa_inet_h.m4
parentc63a4f726a0b6ad8cf6040f947754a81fd4683bb (diff)
downloadmonitoring-plugins-74da141e618ef99959d509cb2e7be35a348a39db.tar.gz
Sync with the latest Gnulib code (177f525)
Signed-off-by: Thomas Guyot-Sionnest <dermoth@aei.ca>
Diffstat (limited to 'gl/m4/arpa_inet_h.m4')
-rw-r--r--gl/m4/arpa_inet_h.m425
1 files changed, 16 insertions, 9 deletions
diff --git a/gl/m4/arpa_inet_h.m4 b/gl/m4/arpa_inet_h.m4
index a6e63df0..15a30e2b 100644
--- a/gl/m4/arpa_inet_h.m4
+++ b/gl/m4/arpa_inet_h.m4
@@ -1,5 +1,5 @@
1# arpa_inet_h.m4 serial 5 1# arpa_inet_h.m4 serial 8
2dnl Copyright (C) 2006, 2008 Free Software Foundation, Inc. 2dnl Copyright (C) 2006, 2008, 2009, 2010 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.
@@ -16,27 +16,35 @@ AC_DEFUN([gl_HEADER_ARPA_INET],
16 if test $ac_cv_header_arpa_inet_h = yes; then 16 if test $ac_cv_header_arpa_inet_h = yes; then
17 HAVE_ARPA_INET_H=1 17 HAVE_ARPA_INET_H=1
18 else 18 else
19 ARPA_INET_H='arpa/inet.h'
20 HAVE_ARPA_INET_H=0 19 HAVE_ARPA_INET_H=0
21 fi 20 fi
22 AC_SUBST([HAVE_ARPA_INET_H]) 21 AC_SUBST([HAVE_ARPA_INET_H])
23 dnl Execute this unconditionally, because ARPA_INET_H may be set by other 22 dnl <arpa/inet.h> is always overridden, because of GNULIB_POSIXCHECK.
24 dnl modules, after this code is executed.
25 gl_CHECK_NEXT_HEADERS([arpa/inet.h]) 23 gl_CHECK_NEXT_HEADERS([arpa/inet.h])
24
25 dnl Check for declarations of anything we want to poison if the
26 dnl corresponding gnulib module is not in use.
27 gl_WARN_ON_USE_PREPARE([[
28/* On some systems, this header is not self-consistent. */
29#ifndef __GLIBC__
30# include <sys/socket.h>
31#endif
32#include <arpa/inet.h>
33 ]], [inet_ntop inet_pton])
26]) 34])
27 35
28dnl Unconditionally enables the replacement of <arpa/inet.h>. 36dnl Unconditionally enables the replacement of <arpa/inet.h>.
29AC_DEFUN([gl_REPLACE_ARPA_INET_H], 37AC_DEFUN([gl_REPLACE_ARPA_INET_H],
30[ 38[
31 AC_REQUIRE([gl_ARPA_INET_H_DEFAULTS]) 39 dnl This is a no-op, because <arpa/inet.h> is always overridden.
32 ARPA_INET_H='arpa/inet.h' 40 :
33]) 41])
34 42
35AC_DEFUN([gl_ARPA_INET_MODULE_INDICATOR], 43AC_DEFUN([gl_ARPA_INET_MODULE_INDICATOR],
36[ 44[
37 dnl Use AC_REQUIRE here, so that the default settings are expanded once only. 45 dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
38 AC_REQUIRE([gl_ARPA_INET_H_DEFAULTS]) 46 AC_REQUIRE([gl_ARPA_INET_H_DEFAULTS])
39 GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1 47 gl_MODULE_INDICATOR_SET_VARIABLE([$1])
40]) 48])
41 49
42AC_DEFUN([gl_ARPA_INET_H_DEFAULTS], 50AC_DEFUN([gl_ARPA_INET_H_DEFAULTS],
@@ -46,5 +54,4 @@ AC_DEFUN([gl_ARPA_INET_H_DEFAULTS],
46 dnl Assume proper GNU behavior unless another module says otherwise. 54 dnl Assume proper GNU behavior unless another module says otherwise.
47 HAVE_DECL_INET_NTOP=1; AC_SUBST([HAVE_DECL_INET_NTOP]) 55 HAVE_DECL_INET_NTOP=1; AC_SUBST([HAVE_DECL_INET_NTOP])
48 HAVE_DECL_INET_PTON=1; AC_SUBST([HAVE_DECL_INET_PTON]) 56 HAVE_DECL_INET_PTON=1; AC_SUBST([HAVE_DECL_INET_PTON])
49 ARPA_INET_H=''; AC_SUBST([ARPA_INET_H])
50]) 57])