Merge branch '2134_am_silent_rules'
[kaloumi3.git] / m4.include / vfs / mc-mvfs.m4
blobb19258a62fb772fece53ce9271af70920cc73b06
1 AC_DEFUN([AC_PREPARE_MVFS],
3      AM_CONDITIONAL(ENABLE_MVFS, [test x"$enable_mvfs" = x"yes"])
4 ])
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"
11     else
12         PKG_CHECK_MODULES([MVFS], [libmvfs])
13         AC_DEFINE(ENABLE_MVFS, 1, [Enabled mvfs-based virtual filesystems])
14         got_mvfs="yes"
15         AC_MC_VFS_ADDNAME([mvfs])
16     fi
17     AM_CONDITIONAL(ENABLE_MVFS, [test x"$enable_mvfs" = x"yes"])
20 AC_DEFUN([AC_MVFS_FS], [
21     AC_PREPARE_MVFS
22     AC_ARG_ENABLE([mvfs-$1],[  --enable-mvfs-$1     Support for $3 (via libmvfs)])
23     if test x"$enable_mvfs_$1" = x"yes" ; then
24         AC_REQUIRE_MVFS
25         AC_DEFINE(ENABLE_MVFS_$2, 1, [$1 (via libmvfs)])
26         AC_MC_VFS_ADDNAME([mvfs-$1])
27     fi
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],
37     AC_PREPARE_MVFS
38     AC_MVFS_NINEP
39     AC_MVFS_LOCAL
40     AC_MVFS_FISH