summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-04-25 22:57:06 +0000
committerJelmer Vernooij <jelmer@samba.org>2006-04-25 22:57:06 +0000
commit7aadf26d4b9513afd682ae19f112a4a35ece6c67 (patch)
treecc4c35f4099dd98f8e2703f82d1d0e2ec9ca3cfd
parent97bb54557cc1d123aef3be86b2b288a331e8a12b (diff)
downloadsamba-7aadf26d4b9513afd682ae19f112a4a35ece6c67.tar.gz
samba-7aadf26d4b9513afd682ae19f112a4a35ece6c67.tar.xz
samba-7aadf26d4b9513afd682ae19f112a4a35ece6c67.zip
r15257: Look for headers before trying to use them in any tests. This
should fix the OpenBSD build
-rw-r--r--source/build/m4/rewrite.m47
-rw-r--r--source/lib/util/fsusage.m48
2 files changed, 8 insertions, 7 deletions
diff --git a/source/build/m4/rewrite.m4 b/source/build/m4/rewrite.m4
index e6709f0727a..545e933940c 100644
--- a/source/build/m4/rewrite.m4
+++ b/source/build/m4/rewrite.m4
@@ -55,7 +55,7 @@ AC_CHECK_HEADERS(sys/select.h fcntl.h sys/fcntl.h sys/time.h stdarg.h)
AC_CHECK_HEADERS(utime.h grp.h sys/id.h limits.h compat.h math.h)
AC_CHECK_HEADERS(ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h)
AC_CHECK_HEADERS(sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h)
-AC_CHECK_HEADERS(sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h)
+AC_CHECK_HEADERS(sys/fs/s5param.h sys/filsys.h termios.h termio.h)
AC_CHECK_HEADERS(fnmatch.h pwd.h sys/termio.h sys/time.h)
AC_CHECK_HEADERS(locale.h shadow.h)
AC_CHECK_HEADERS(nss.h nss_common.h ns_api.h sys/security.h)
@@ -63,11 +63,6 @@ AC_CHECK_HEADERS(sys/acl.h)
AC_CHECK_HEADERS(sys/capability.h)
-AC_CHECK_HEADERS(sys/mount.h, , , [AC_INCLUDES_DEFAULT
-#ifdef HAVE_SYS_PARAM_H
-#include <sys/param.h>
-#endif])
-
AC_TYPE_SIGNAL
AC_TYPE_UID_T
diff --git a/source/lib/util/fsusage.m4 b/source/lib/util/fsusage.m4
index ce8489493c3..6d5d13fe253 100644
--- a/source/lib/util/fsusage.m4
+++ b/source/lib/util/fsusage.m4
@@ -1,7 +1,13 @@
#################################################
# these tests are taken from the GNU fileutils package
AC_CHECKING(how to get filesystem space usage)
-AC_CHECK_HEADERS(sys/statfs.h sys/statvfs.h)
+AC_CHECK_HEADERS(sys/statfs.h sys/statvfs.h sys/vfs.h)
+
+AC_CHECK_HEADERS(sys/mount.h, , , [AC_INCLUDES_DEFAULT
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif])
+
space=no
# Test for statvfs64.