1 AC_DEFUN([AC_PREPARE_MVFS],
3 AM_CONDITIONAL(ENABLE_MVFS, [test x"$enable_mvfs" = x"yes"])
6 AC_DEFUN([AC_REQUIRE_MVFS],
8 echo "libmvfs required ... checking ...";
9 if test x"$got_mvfs" = x"yes" ; then
10 echo "mvfs already enabled"
12 PKG_CHECK_MODULES([MVFS], [libmvfs])
13 AC_DEFINE(ENABLE_MVFS, 1, [Enabled mvfs-based virtual filesystems])
15 AC_MC_VFS_ADDNAME([mvfs])
17 AM_CONDITIONAL(ENABLE_MVFS, [test x"$enable_mvfs" = x"yes"])
20 AC_DEFUN([AC_MVFS_FS], [
22 AC_ARG_ENABLE([mvfs-$1],[ --enable-mvfs-$1 Support for $3 (via libmvfs)])
23 if test x"$enable_mvfs_$1" = x"yes" ; then
25 AC_DEFINE(ENABLE_MVFS_$2, 1, [$1 (via libmvfs)])
26 AC_MC_VFS_ADDNAME([mvfs-$1])
28 AM_CONDITIONAL(ENABLE_MVFS_$2, [test x"$enable_mvfs_$1" = x"yes"])
31 AC_DEFUN([AC_MVFS_NINEP], [AC_MVFS_FS([9p], [NINEP], [9P Filesystem])])
32 AC_DEFUN([AC_MVFS_LOCAL], [AC_MVFS_FS([local], [LOCAL], [Local filesystem])])
33 AC_DEFUN([AC_MVFS_FISH], [AC_MVFS_FS([fish], [FISH], [Fish remote filesystem])])
35 AC_DEFUN([AC_MC_MVFS_FILESYSTEMS],