diff options
author | Martin Pärtel <martin.partel@gmail.com> | 2023-07-15 14:56:16 +0300 |
---|---|---|
committer | Martin Pärtel <martin.partel@gmail.com> | 2023-07-15 14:56:16 +0300 |
commit | ae0c8e730693bacf42b2eac9ccd0dd3350bf9d4b (patch) | |
tree | 9b475f12c50e6837285498906debbe0a70088181 /configure.ac | |
parent | 9b1057f2e57cf0b304d94fe422e126bbc7f6d24b (diff) | |
download | bindfs-ae0c8e730693bacf42b2eac9ccd0dd3350bf9d4b.tar.gz |
Support for fuse-t
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 7764e5b..6c08bb2 100644 --- a/configure.ac +++ b/configure.ac @@ -88,11 +88,25 @@ AC_DEFUN([CHECK_FUSE3], )] ) +AC_DEFUN([CHECK_FUSE_T], + [PKG_CHECK_MODULES([fuse_t], [fuse-t >= 1.0.0], + [ + AC_DEFINE([HAVE_FUSE_T], [1], [Have FUSE >= 1.0.0]) + AC_DEFINE([FUSE_USE_VERSION], [34], [FUSE API VERSION = 3.4]) + ], + [$1] + )] +) + + AS_IF([test "x$with_fuse2" == "xyes"], [CHECK_FUSE2([AC_MSG_ERROR([FUSE 2 not found])])], [AS_IF([test "x$with_fuse3" == "xyes"], [CHECK_FUSE3([AC_MSG_ERROR([FUSE 3 not found])])], - [CHECK_FUSE3([CHECK_FUSE2([AC_MSG_ERROR([FUSE not found])])])] + [AS_IF([test "x$with_fuse_t" == "xyes"], + [CHECK_FUSE_T([AC_MSG_ERROR([FUSE-T not found])])], + [CHECK_FUSE3([CHECK_FUSE2([CHECK_FUSE_T([AC_MSG_ERROR([FUSE not found])])])])] + )] )] ) |