]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
header check needed before our own compilerflagtest(tm)
authorJelte Jansen <jelte@NLnetLabs.nl>
Wed, 30 Jan 2008 09:06:52 +0000 (09:06 +0000)
committerJelte Jansen <jelte@NLnetLabs.nl>
Wed, 30 Jan 2008 09:06:52 +0000 (09:06 +0000)
drill/configure.ac

index bdc11dc93592701af9ba0c9327266a1c093bdf5f..107d810017722e93261d2aa5d8c48cc0a3a6e13a 100644 (file)
@@ -82,6 +82,16 @@ $4
 fi
 ])
 
+AC_CHECK_HEADERS([getopt.h stdlib.h stdio.h assert.h netinet/in.h ctype.h time.h],,, [AC_INCLUDES_DEFAULT])
+AC_CHECK_HEADERS(sys/param.h sys/mount.h,,, [AC_INCLUDES_DEFAULT]
+[ 
+  [
+   #if HAVE_SYS_PARAM_H
+   # include <sys/param.h>
+   #endif
+  ] 
+])
+
 CHECK_COMPILER_FLAG(O2, [CFLAGS="$CFLAGS -O2"])
 CHECK_COMPILER_FLAG_NEEDED(-std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600,
 [
@@ -146,17 +156,6 @@ int test() {
 }
 ], [CFLAGS="$CFLAGS -D__EXTENSIONS__"])
 
-
-AC_CHECK_HEADERS([getopt.h stdlib.h stdio.h assert.h netinet/in.h ctype.h time.h],,, [AC_INCLUDES_DEFAULT])
-AC_CHECK_HEADERS(sys/param.h sys/mount.h,,, [AC_INCLUDES_DEFAULT]
-[ 
-  [
-   #if HAVE_SYS_PARAM_H
-   # include <sys/param.h>
-   #endif
-  ] 
-])
-
 AC_ARG_WITH(ssl, AC_HELP_STRING([--with-ssl=pathname],
                                     [enable SSL (will check /usr/local/ssl
                             /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr/sfw /usr)]),[