1 dnl ######################################################################
2 dnl check if the mount table is kept in a file or in the kernel.
3 AC_DEFUN([AMU_CHECK_MNTTAB_LOCATION],
5 AMU_CACHE_CHECK_DYNAMIC(where mount table is kept,
8 # assume location is on file
9 ac_cv_mnttab_location=file
10 AC_CHECK_FUNCS(mntctl getmntinfo getmountent,
11 ac_cv_mnttab_location=kernel)
12 # Solaris 8 Beta Refresh and up use the mntfs pseudo filesystem to store the
13 # mount table in kernel (cf. mnttab(4): the MS_NOMNTTAB option in
14 # <sys/mount.h> inhibits that a mount shows up there and thus can be used to
15 # check for the in-kernel mount table
16 if test "$ac_cv_mnt2_gen_opt_nomnttab" != notfound
18 ac_cv_mnttab_location=kernel
21 if test "$ac_cv_mnttab_location" = file
23 AC_DEFINE(MOUNT_TABLE_ON_FILE)
26 dnl ======================================================================