aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2003-07-21 11:53:26 +0000
committerGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2003-07-21 11:53:26 +0000
commit97ecfa6226bea7c09f78b2b92d807e73467ffc08 (patch)
tree64976001badfb160994d606e1e055f15fb680258 /configure.in
parentf6d1cc53a803f0bc6787fa90ee327018734b099e (diff)
downloadmonitoring-plugins-97ecfa6226bea7c09f78b2b92d807e73467ffc08.tar.gz
test GNU_SOURCE and include features.h if present to clear warning about asprintf definition
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@596 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index b618c777..a6261c63 100644
--- a/configure.in
+++ b/configure.in
@@ -21,6 +21,7 @@ dnl Figure out how to invoke "install" and what install options to use.
AC_PROG_INSTALL
AC_SUBST(INSTALL)
+AC_GNU_SOURCE
AC_PROG_CC
AC_PROG_CPP
AC_PROG_GCC_TRADITIONAL
@@ -31,6 +32,8 @@ AC_MINIX
AC_PROG_MAKE_SET
AC_PROG_AWK
+
+
saved_srcdir=$srcdir
srcdir=$srcdir/lib
test -f $srcdir/getloadavg.c \
@@ -469,7 +472,7 @@ AC_HEADER_STDC
AC_HEADER_TIME
AC_HEADER_SYS_WAIT
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)
-AC_CHECK_HEADERS(stdarg.h sys/unistd.h ctype.h stdlib.h)
+AC_CHECK_HEADERS(features.h stdarg.h sys/unistd.h ctype.h stdlib.h)
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)
# Define HAVE_INTTYPES_H if <inttypes.h> exists,