diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-03-26 05:37:11 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-03-26 05:37:11 (GMT) |
commit | 112bcdc626d3c9650450266d397f49e02d7bb9b2 (patch) | |
tree | e23974d09d4cba4f2611a68858ef3a391b29becf /configure.in | |
parent | 118b845d236f9cf4aa2a4e68aa999dec2e619729 (diff) | |
download | monitoring-plugins-112bcdc626d3c9650450266d397f49e02d7bb9b2.tar.gz |
ipv6 check requires unistd.h for Darwin
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@464 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/configure.in b/configure.in index 5e5ee36..994f3be 100644 --- a/configure.in +++ b/configure.in | |||
@@ -283,9 +283,14 @@ AC_ARG_WITH(openssl, | |||
283 | [sets path to openssl installation]), | 283 | [sets path to openssl installation]), |
284 | OPENSSL=$withval,) | 284 | OPENSSL=$withval,) |
285 | 285 | ||
286 | dnl Check for AF_INET6 support | 286 | AC_CHECK_HEADERS(unistd.h) |
287 | |||
288 | dnl Check for AF_INET6 support - unistd.h required for Darwin | ||
287 | AC_CACHE_CHECK([for IPv6 support], with_ipv6, [ | 289 | AC_CACHE_CHECK([for IPv6 support], with_ipv6, [ |
288 | AC_TRY_COMPILE([#include <netinet/in.h> | 290 | AC_TRY_COMPILE([#ifdef HAVE_UNISTD_H |
291 | #include <unistd.h> | ||
292 | #endif | ||
293 | #include <netinet/in.h> | ||
289 | #include <sys/socket.h>], | 294 | #include <sys/socket.h>], |
290 | [struct sockaddr_in6 sin6; | 295 | [struct sockaddr_in6 sin6; |
291 | void *p; | 296 | void *p; |
@@ -465,8 +470,8 @@ dnl | |||
465 | AC_HEADER_STDC | 470 | AC_HEADER_STDC |
466 | AC_HEADER_TIME | 471 | AC_HEADER_TIME |
467 | AC_HEADER_SYS_WAIT | 472 | AC_HEADER_SYS_WAIT |
468 | AC_CHECK_HEADERS(signal.h strings.h string.h syslog.h unistd.h uio.h errno.h regex.h sys/types.h sys/time.h sys/socket.h sys/loadavg.h) | 473 | AC_CHECK_HEADERS(signal.h strings.h string.h syslog.h uio.h errno.h regex.h sys/types.h sys/time.h sys/socket.h sys/loadavg.h) |
469 | AC_CHECK_HEADERS(stdarg.h sys/unistd.h unistd.h ctype.h stdlib.h) | 474 | AC_CHECK_HEADERS(stdarg.h sys/unistd.h ctype.h stdlib.h) |
470 | AC_CHECK_HEADERS(limits.h sys/param.h sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h fcntl.h sys/statfs.h sys/dustat.h sys/statvfs.h) | 475 | AC_CHECK_HEADERS(limits.h sys/param.h sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h fcntl.h sys/statfs.h sys/dustat.h sys/statvfs.h) |
471 | 476 | ||
472 | # Define HAVE_INTTYPES_H if <inttypes.h> exists, | 477 | # Define HAVE_INTTYPES_H if <inttypes.h> exists, |