aboutsummaryrefslogtreecommitdiffstats
path: root/aclocal.m4
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>1998-04-01 11:15:47 +0000
committerH. Peter Anvin <hpa@zytor.com>1998-04-01 11:15:47 +0000
commitb71338e3f424c1b37af3c2695810da9557043a4a (patch)
treea759f66314d18a3484f0d503f2c09c98787abf6e /aclocal.m4
parent17fa2145a79fe7e49f2f7d78dee8a7f28eaee861 (diff)
downloadautofs3-b71338e3f424c1b37af3c2695810da9557043a4a.tar.gz
autofs3-b71338e3f424c1b37af3c2695810da9557043a4a.tar.xz
autofs3-b71338e3f424c1b37af3c2695810da9557043a4a.zip
Add "-s" (sloppy) option to mount if it is supported.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m416
1 files changed, 16 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index c50de12..5e4e73c 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -15,3 +15,19 @@ else
HAVE_$1=0
fi
AC_SUBST(HAVE_$1)])
+
+dnl --------------------------------------------------------------------------
+dnl AF_SLOPPY_MOUNT
+dnl
+dnl Check to see if mount(8) supports the sloppy (-s) option, and define
+dnl the cpp variable HAVE_SLOPPY_MOUNT if so. This requires that MOUNT is
+dnl already defined by a call to AF_PATH_INCLUDE or AC_PATH_PROGS.
+dnl --------------------------------------------------------------------------
+AC_DEFUN(AF_SLOPPY_MOUNT,
+[AC_MSG_CHECKING([if mount accepts the -s option])
+if "$MOUNT" -s > /dev/null 2>&1 ; then
+ AC_DEFINE(HAVE_SLOPPY_MOUNT)
+ AC_MSG_RESULT(yes)
+else
+ AC_MSG_RESULT(no)
+fi])