summaryrefslogtreecommitdiffstats
path: root/gl/m4/netinet_in_h.m4
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-02-12 11:07:18 +0000
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-02-12 11:07:18 +0000
commitbd7029a99b0c2974265c6665638ef14a052f42ab (patch)
treef5661ba73366d81ef6e91f889ea7fec5ebe07b6b /gl/m4/netinet_in_h.m4
parentf99612320d6eda67644c07be04bb21aa4d7789db (diff)
downloadmonitoring-plugins-bd7029a99b0c2974265c6665638ef14a052f42ab.tar.gz
Sync to latest Gnulib
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1925 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'gl/m4/netinet_in_h.m4')
-rw-r--r--gl/m4/netinet_in_h.m426
1 files changed, 19 insertions, 7 deletions
diff --git a/gl/m4/netinet_in_h.m4 b/gl/m4/netinet_in_h.m4
index d73531a0..096be740 100644
--- a/gl/m4/netinet_in_h.m4
+++ b/gl/m4/netinet_in_h.m4
@@ -1,18 +1,30 @@
1# netinet_in_h.m4 serial 1 1# netinet_in_h.m4 serial 3
2dnl Copyright (C) 2006 Free Software Foundation, Inc. 2dnl Copyright (C) 2006-2007 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.
6 6
7dnl Written by Simon Josefsson
8
9AC_DEFUN([gl_HEADER_NETINET_IN], 7AC_DEFUN([gl_HEADER_NETINET_IN],
10[ 8[
11 AC_CHECK_HEADERS_ONCE([netinet/in.h]) 9 AC_CACHE_CHECK([whether <netinet/in.h> is self-contained],
12 if test $ac_cv_header_netinet_in_h = yes; then 10 [gl_cv_header_netinet_in_h_selfcontained],
11 [
12 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <netinet/in.h>], [])],
13 [gl_cv_header_netinet_in_h_selfcontained=yes],
14 [gl_cv_header_netinet_in_h_selfcontained=no])
15 ])
16 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
13 NETINET_IN_H='' 17 NETINET_IN_H=''
14 else 18 else
15 NETINET_IN_H='netinet/in.h' 19 NETINET_IN_H='netinet/in.h'
20 AC_CHECK_HEADERS([netinet/in.h])
21 gl_CHECK_NEXT_HEADERS([netinet/in.h])
22 if test $ac_cv_header_netinet_in_h = yes; then
23 HAVE_NETINET_IN_H=1
24 else
25 HAVE_NETINET_IN_H=0
26 fi
27 AC_SUBST([HAVE_NETINET_IN_H])
16 fi 28 fi
17 AC_SUBST(NETINET_IN_H) 29 AC_SUBST([NETINET_IN_H])
18]) 30])