From bcd42e5ef3e4bada89e889c7e82a04b0d3a9e5cd Mon Sep 17 00:00:00 2001 From: Erik Larsson Date: Fri, 26 Feb 2021 08:09:18 +0200 Subject: [PATCH] configure.ac: Respect 'with_fuse' user setting on non-Linux/Solaris. Previously the configure script simply disregarded the value of the 'with_fuse' flag on non-Linux/Solaris systems. This is not unreasonable since the 'internal' option doesn't work on those systems, however in some situations we want to specify the libfuse CFLAGS/LDFLAGS manually and bypass the pkg-config check with '--with-fuse=none' and this was not possible with this logic. So add a special test to bypass the automatic determination when the user has specified a 'with_fuse' value. --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 88733eb5..0b483c20 100644 --- a/configure.ac +++ b/configure.ac @@ -226,7 +226,9 @@ case "${target}" in ;; esac -if test "x${enable_ntfs_3g}" = "xyes"; then +if test "x${enable_ntfs_3g}" != "xyes"; then + with_fuse="none" +elif test "x${with_fuse}" == "x"; then AC_MSG_CHECKING([fuse compatibility]) case "${target_os}" in linux*|solaris*) @@ -248,8 +250,6 @@ if test "x${enable_ntfs_3g}" = "xyes"; then ;; esac AC_MSG_RESULT([${with_fuse}]) -else - with_fuse="none" fi case "${target_os}" in