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,
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
21 if test "$ac_cv_unmount_call" != no
23 am_utils_unmount_call=$ac_cv_unmount_call
24 AC_SUBST(am_utils_unmount_call)
27 dnl ======================================================================