Commit 7e099ab4 by Paweł Wegner

configure.ac: use fuse2 when fuse3 not present.

parent e1ad4178
......@@ -70,17 +70,23 @@ AS_IF([test "x$with_microhttpd" != "xno"], [
AM_CONDITIONAL([WITH_MICROHTTPD], [test "$HAVE_MICROHTTPD" -eq 1])
HAVE_FUSE=0
HAVE_LEGACY_FUSE=0
AC_ARG_WITH([fuse], AS_HELP_STRING([--with-fuse]))
AS_IF([test "x$with_fuse" != "xno"], [
PKG_CHECK_MODULES([fuse], [fuse3], [
HAVE_FUSE=1
AC_DEFINE(WITH_FUSE)
], [
HAVE_FUSE=0
AS_IF([test "x$with_fuse" = "xyes"], [AC_MSG_ERROR([fuse3 not found])])
PKG_CHECK_MODULES([fuse2], [fuse], [
HAVE_LEGACY_FUSE=1
AC_DEFINE(WITH_LEGACY_FUSE)
], [
AS_IF([test "x$with_fuse" = "xyes"], [AC_MSG_ERROR([fuse3 not found])])
])
])
])
AM_CONDITIONAL([WITH_FUSE], [test "$HAVE_FUSE" -eq 1])
AM_CONDITIONAL([WITH_LEGACY_FUSE], [test "$HAVE_LEGACY_FUSE" -eq 1])
case "${host_os}" in
*mingw32*)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment