From 2ad91211830d46536be022bd57c2aa942035f4de Mon Sep 17 00:00:00 2001 From: Martin Ebourne Date: Sun, 25 Dec 2005 18:41:55 +0000 Subject: Fix FreeBSD not finding sys/mount.h --- infrastructure/m4/ax_check_mount_point.m4 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'infrastructure/m4') 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 ]]) + AC_CHECK_HEADERS([sys/param.h]) + AC_CHECK_HEADERS([mntent.h sys/mnttab.h sys/mount.h],,, [[ + #include + #ifdef HAVE_SYS_PARAM_H + #include + #endif + ]]) # BSD AC_CHECK_MEMBERS([struct statfs.f_mntonname],,, [[ - #include + #ifdef HAVE_SYS_PARAM_H + #include + #endif #include ]]) # Linux -- cgit v1.2.3