[PATCH 2/7] configure.ac: fix disable fuse2fs/fuse4fs by default path

Theodore Ts'o
2026-05-04T23:33:25Z

If the fuse.h header file is not present, fix the "Disabling
fuse[24]fs by default" codepath to actually disable trying to build
fuse2fs or fuse4fs.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Fixes: 239f4b7ac05b ("fuse2fs: separate libfuse3 and fuse2fs detection in configure")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
---
configure | 2 ++
configure.ac | 2 ++
2 files changed, 4 insertions(+)

diff --git a/configure b/configure
index a1a270e63..d941ff1f1 100755
--- a/configure
+++ b/configure
@@ -14737,6 +14737,7 @@ else case e in #(
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default" >&5
printf "%s\n" "Enabling fuse2fs by default" >&6; }
else
+ FUSE2FS_CMT="#"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs by default" >&5
printf "%s\n" "Disabling fuse2fs by default" >&6; }
fi
@@ -14804,6 +14805,7 @@ else case e in #(
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse4fs by default" >&5
printf "%s\n" "Enabling fuse4fs by default" >&6; }
else
+ FUSE4FS_CMT="#"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling fuse4fs by default" >&5
printf "%s\n" "Disabling fuse4fs by default" >&6; }
fi
diff --git a/configure.ac b/configure.ac
index abce79594..d8f40f5df 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1459,6 +1459,7 @@ AS_HELP_STRING([--disable-fuse2fs],[do not build fuse2fs]),
then
AC_MSG_RESULT([Enabling fuse2fs by default])
else
+ FUSE2FS_CMT="#"
AC_MSG_RESULT([Disabling fuse2fs by default])
fi
]
@@ -1496,6 +1497,7 @@ AS_HELP_STRING([--disable-fuse4fs],[do not build fuse4fs]),
then
AC_MSG_RESULT([Enabling fuse4fs by default])
else
+ FUSE4FS_CMT="#"
AC_MSG_RESULT([Disabling fuse4fs by default])
fi
]
--
2.53.0