diff options
Diffstat (limited to 'contrib/amd/m4/macros/check_mnttab_location.m4')
-rw-r--r-- | contrib/amd/m4/macros/check_mnttab_location.m4 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/contrib/amd/m4/macros/check_mnttab_location.m4 b/contrib/amd/m4/macros/check_mnttab_location.m4 new file mode 100644 index 0000000..8bf4231 --- /dev/null +++ b/contrib/amd/m4/macros/check_mnttab_location.m4 @@ -0,0 +1,26 @@ +dnl ###################################################################### +dnl check if the mount table is kept in a file or in the kernel. +AC_DEFUN(AMU_CHECK_MNTTAB_LOCATION, +[ +AMU_CACHE_CHECK_DYNAMIC(where mount table is kept, +ac_cv_mnttab_location, +[ +# assume location is on file +ac_cv_mnttab_location=file +AC_CHECK_FUNCS(mntctl getmntinfo getmountent, +ac_cv_mnttab_location=kernel) +# Solaris 8 Beta Refresh and up use the mntfs pseudo filesystem to store the +# mount table in kernel (cf. mnttab(4): the MS_NOMNTTAB option in +# <sys/mount.h> inhibits that a mount shows up there and thus can be used to +# check for the in-kernel mount table +if test "$ac_cv_mnt2_gen_opt_nomnttab" != notfound +then + ac_cv_mnttab_location=kernel +fi +]) +if test "$ac_cv_mnttab_location" = file +then + AC_DEFINE(MOUNT_TABLE_ON_FILE) +fi +]) +dnl ====================================================================== |