From: Rogerio Guerra Borin Date: Wed, 7 Feb 2024 03:19:45 +0000 (-0300) Subject: configure: Expose MOUNT_ATTR_IDMAP detection result to C code X-Git-Tag: archive/raspbian/2024.8-1+rpi1^2~7^2~5^2~5^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cdfdfed27d37c50d57f0cd0be7988611ec04d365;p=ostree.git configure: Expose MOUNT_ATTR_IDMAP detection result to C code This is to allow compiling composefs on machines having somewhat old Linux kernel headers. Signed-off-by: Rogerio Guerra Borin --- diff --git a/configure.ac b/configure.ac index 5e90c559..c534ec73 100644 --- a/configure.ac +++ b/configure.ac @@ -295,7 +295,8 @@ AC_COMPILE_IFELSE( ],[int foo = MOUNT_ATTR_IDMAP;] )], [AC_MSG_RESULT(yes) - have_mount_attr_idmap=yes], + AC_DEFINE([HAVE_MOUNT_ATTR_IDMAP], 1, [Define if MOUNT_ATTR_IDMAP is available in linux/mount.h]) + have_mount_attr_idmap=yes], [AC_MSG_RESULT(no)]) dnl These are needed by libcomposefs to use the new mount API optionally AC_MSG_CHECKING([for new mount API (fsconfig)])