From c40d7ebfe2365229275bcfb778ba41a0ec83d2fe Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 25 Apr 2006 22:57:06 +0000 Subject: r15257: Look for headers before trying to use them in any tests. This should fix the OpenBSD build (This used to be commit 6172731af1f91d4e5f9d49284a179b0966ba19ef) --- source4/lib/util/fsusage.m4 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source4/lib/util') diff --git a/source4/lib/util/fsusage.m4 b/source4/lib/util/fsusage.m4 index ce8489493c..6d5d13fe25 100644 --- a/source4/lib/util/fsusage.m4 +++ b/source4/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 +#endif]) + space=no # Test for statvfs64. -- cgit