aboutsummaryrefslogtreecommitdiffstats
path: root/m4/macros/check_unmount_args.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/macros/check_unmount_args.m4')
-rw-r--r--m4/macros/check_unmount_args.m421
1 files changed, 21 insertions, 0 deletions
diff --git a/m4/macros/check_unmount_args.m4 b/m4/macros/check_unmount_args.m4
new file mode 100644
index 000000000000..678f5ba9c997
--- /dev/null
+++ b/m4/macros/check_unmount_args.m4
@@ -0,0 +1,21 @@
+dnl ######################################################################
+dnl check the unmount system call arguments needed for
+AC_DEFUN([AMU_CHECK_UNMOUNT_ARGS],
+[
+AC_CACHE_CHECK(unmount system-call arguments,
+ac_cv_unmount_args,
+[
+# select the correct style to mount(2) a filesystem
+case "${host_os_name}" in
+ aix* )
+ ac_cv_unmount_args="mnt->mnt_passno, 0" ;;
+ ultrix* )
+ ac_cv_unmount_args="mnt->mnt_passno" ;;
+ * )
+ ac_cv_unmount_args="mnt->mnt_dir" ;;
+esac
+])
+am_utils_unmount_args=$ac_cv_unmount_args
+AC_SUBST(am_utils_unmount_args)
+])
+dnl ======================================================================