summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ebourne <martin@ebourne.me.uk>2005-12-25 18:41:55 +0000
committerMartin Ebourne <martin@ebourne.me.uk>2005-12-25 18:41:55 +0000
commit2ad91211830d46536be022bd57c2aa942035f4de (patch)
treec04c22743190bb52db32dacfedf60609802dbecc
parent814337dedb1462451a32cd8a08555e44a60a33df (diff)
Fix FreeBSD not finding sys/mount.h
-rw-r--r--infrastructure/m4/ax_check_mount_point.m412
1 files changed, 10 insertions, 2 deletions
diff --git a/infrastructure/m4/ax_check_mount_point.m4 b/infrastructure/m4/ax_check_mount_point.m4
index 3ed3f85d..8c843379 100644
--- a/infrastructure/m4/ax_check_mount_point.m4
+++ b/infrastructure/m4/ax_check_mount_point.m4
@@ -19,10 +19,18 @@ dnl @license AllPermissive
AC_DEFUN([AX_CHECK_MOUNT_POINT], [
AC_CHECK_FUNCS([getmntent statfs])
- AC_CHECK_HEADERS([mntent.h sys/mnttab.h sys/mount.h],,, [[#include <stdio.h>]])
+ AC_CHECK_HEADERS([sys/param.h])
+ AC_CHECK_HEADERS([mntent.h sys/mnttab.h sys/mount.h],,, [[
+ #include <stdio.h>
+ #ifdef HAVE_SYS_PARAM_H
+ #include <sys/param.h>
+ #endif
+ ]])
# BSD
AC_CHECK_MEMBERS([struct statfs.f_mntonname],,, [[
- #include <sys/param.h>
+ #ifdef HAVE_SYS_PARAM_H
+ #include <sys/param.h>
+ #endif
#include <sys/mount.h>
]])
# Linux