Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / bsd / am-utils / dist / m4 / macros / check_unmount_call.m4
blob34a922ae2f39c621b312c1065524bdd98f2230cb
1 dnl ######################################################################
2 dnl check for the correct system call to unmount a filesystem.
3 AC_DEFUN([AMU_CHECK_UNMOUNT_CALL],
5 dnl make sure this one is called before [AC_CHECK_UNMOUNT_ARGS]
6 AC_BEFORE([$0], [AC_CHECK_UNMOUNT_ARGS])
7 AC_CACHE_CHECK(the system call to unmount a filesystem,
8 ac_cv_unmount_call,
10 # check for various unmount a filesystem calls
11 if test "$ac_cv_func_uvmount" = yes ; then
12   ac_cv_unmount_call=uvmount
13 elif test "$ac_cv_func_unmount" = yes ; then
14   ac_cv_unmount_call=unmount
15 elif test "$ac_cv_func_umount" = yes ; then
16   ac_cv_unmount_call=umount
17 else
18   ac_cv_unmount_call=no
21 if test "$ac_cv_unmount_call" != no
22 then
23   am_utils_unmount_call=$ac_cv_unmount_call
24   AC_SUBST(am_utils_unmount_call)
27 dnl ======================================================================