INN commit: trunk (configure.ac)

INN Commit Russ_Allbery at isc.org
Thu Jan 29 18:47:54 UTC 2009


    Date: Thursday, January 29, 2009 @ 10:47:54
  Author: iulius
Revision: 8299

sys/mount.h requires sys/param.h on some systems (a warning
is issued by configure).

Modified:
  trunk/configure.ac

--------------+
 configure.ac |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Modified: configure.ac
===================================================================
--- configure.ac	2009-01-29 18:46:36 UTC (rev 8298)
+++ configure.ac	2009-01-29 18:47:54 UTC (rev 8299)
@@ -484,7 +484,13 @@
 dnl Probe for the appropriate stat functions.
 AC_CHECK_FUNCS([statvfs], ,
     [AC_CHECK_FUNCS([statfs])
-     AC_CHECK_HEADERS([sys/vfs.h sys/param.h sys/mount.h])])
+     AC_CHECK_HEADERS([sys/vfs.h sys/param.h])
+     AC_CHECK_HEADERS(sys/mount.h, [], [],
+         [#ifdef HAVE_SYS_PARAM_H
+          # include <sys/param.h>
+          #endif
+         ])
+    ])
 
 dnl If we can't find any of the following, we have replacements for them.
 AC_REPLACE_FUNCS(asprintf getaddrinfo getnameinfo getpagesize hstrerror \




More information about the inn-committers mailing list