Skip to content

Commit

Permalink
configure: fix composefs default to on, if appropriate
Browse files Browse the repository at this point in the history
composefs should be included by default. If the appropriate headers are
not present, have_mount_attr_idmap should be set to no. If this is no,
don't build composefs as part of the build.
  • Loading branch information
ericcurtin committed Oct 10, 2023
1 parent befd844 commit 6811cf3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ AC_COMPILE_IFELSE(
)],
[AC_MSG_RESULT(yes)
have_mount_attr_idmap=yes],
[AC_MSG_RESULT(no)])
[AC_MSG_RESULT(no)
have_mount_attr_idmap=no])
dnl These are needed by libcomposefs to use the new mount API optionally
AC_MSG_CHECKING([for new mount API (fsconfig)])
AC_COMPILE_IFELSE(
Expand All @@ -307,7 +308,7 @@ AC_COMPILE_IFELSE(
[AC_MSG_RESULT(no)])

composefs_default=yes
if test x"$have_mount_attr_idmap" != xyes; then
if test x"$have_mount_attr_idmap" == xno; then
composefs_default=no
fi
AC_ARG_WITH(composefs,
Expand Down

0 comments on commit 6811cf3

Please sign in to comment.