configure: Clarify libfuse version

Many distros package libfuse's versions as different packages. For
example, Ubuntu (jammy for example) has a package for libfuse2 and
libfuse3. Now the issue is that libfuse-dev pulls is libfuse2 while
there is no libfuse2-dev. This patch clarifies the version of fuse in
the configure error.

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
This commit is contained in:
Andrei Gherzan 2022-07-13 12:07:38 +02:00
parent cb91bc9930
commit a3e5e30f9a
No known key found for this signature in database
GPG Key ID: 73BBE86B7E7AB7CF

View File

@ -30,7 +30,7 @@ AC_CHECK_TYPES([ptrdiff_t])
AC_DEFINE([USE_DIFF_HASH], 1, [Use the same hashing function as GNU diff])
PKG_CHECK_MODULES([FUSE], [fuse3 >= 3.2.1], [AC_DEFINE([HAVE_FUSE], 1, [Define if libfuse is available])], [AC_MSG_ERROR([*** libfuse not found])]])
PKG_CHECK_MODULES([FUSE], [fuse3 >= 3.2.1], [AC_DEFINE([HAVE_FUSE], 1, [Define if libfuse3 is available])], [AC_MSG_ERROR([*** libfuse3 not found])]])
old_CFLAGS=$CFLAGS
old_LDFLAGS=$LDFLAGS