]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
autotools: check for statmount and listmount syscalls
authorKarel Zak <kzak@redhat.com>
Wed, 14 Aug 2024 13:26:17 +0000 (15:26 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 8 Jan 2025 12:57:42 +0000 (13:57 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac

index fa58043bb7dce7882c2cf63057d35fa332c3a993..a1d68f0593e4b9c86a5e87e10609b2b777475a46 100644 (file)
@@ -717,7 +717,20 @@ AS_IF([test "x$ul_cv_syscall_fsconfig" = xno ||
        have_mountfd_api="no"
    ],[
         have_mountfd_api="yes"
-       AC_DEFINE([HAVE_MOUNTFD_API], [1], [Define to 1 if you want mount API based on FDs.])
+       AC_DEFINE([HAVE_MOUNTFD_API], [1], [Define to 1 if you want to use mount API based on FDs.])
+   ])
+
+
+UL_CHECK_SYSCALL([statmount])
+UL_CHECK_SYSCALL([listmount])
+
+AS_IF([test "x$ul_cv_syscall_statmount" = xno ||
+       test "x$ul_cv_syscall_listmount" = xno],
+   [
+       have_statmount_api="no"
+   ],[
+       have_statmount_api="yes"
+       AC_DEFINE([HAVE_STATMOUNT_API], [1], [Define to 1 if you want to use statmount API.])
    ])