aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2024-04-10 11:44:49 +0200
committerKarel Zak <kzak@redhat.com>2024-04-10 11:51:16 +0200
commit0c44599f92dc556364c18bd8c1e65808776dd614 (patch)
tree9200e9a82971164360e98335271895a7a055caa9
parent5ebf0edb0a0531cba801c7791543c610725bf944 (diff)
downloadutil-linux-0c44599f92dc556364c18bd8c1e65808776dd614.tar.gz
autotools: check for sys/vfs.h and linux/bpf.h
Addresses: https://github.com/util-linux/util-linux/pull/2933 Addresses: https://github.com/util-linux/util-linux/issues/2945 Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 2fff2de09d..33e5e4a68f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -328,6 +328,7 @@ AC_CHECK_HEADERS([ \
inttypes.h \
lastlog.h \
libutil.h \
+ linux/bpf.h \
linux/blkzoned.h \
linux/btrfs.h \
linux/capability.h \
@@ -515,6 +516,8 @@ have_shadow_h=$ac_cv_header_shadow_h
have_sys_signalfd_h=$ac_cv_header_sys_signalfd_h
have_utmpx_h=$ac_cv_header_utmpx_h
have_mntent_h=$ac_cv_header_mntent_h
+have_sys_vfs_h=$ac_cv_header_sys_vfs_h
+have_linux_bpf_h=$ac_cv_header_linux_bpf_h
AS_CASE([$linux_os:$have_linux_version_h],
[yes:no],
@@ -1286,6 +1289,7 @@ UL_BUILD_INIT([libmount])
UL_REQUIRES_BUILD([libmount], [libblkid])
UL_REQUIRES_HAVE([libmount], [dirfd,ddfd], [dirfd or ddfd function])
UL_REQUIRES_HAVE([libmount], [mntent_h], [mntent.h header file])
+UL_REQUIRES_HAVE([libmount], [sys_vfs_h], [sys/vfs.h header file])
AM_CONDITIONAL([BUILD_LIBMOUNT], [test "x$build_libmount" = xyes])
AM_CONDITIONAL([BUILD_LIBMOUNT_TESTS], [test "x$build_libmount" = xyes && test "x$enable_static" = xyes])
AS_IF([test "x$build_libmount" = xyes], [
@@ -1848,6 +1852,7 @@ AC_ARG_ENABLE([lsfd],
UL_BUILD_INIT([lsfd])
UL_REQUIRES_LINUX([lsfd])
UL_REQUIRES_BUILD([lsfd], [libsmartcols])
+UL_REQUIRES_HAVE([lsfd], [linux_bpf_h], [linux/bpf.h header file])
AM_CONDITIONAL([BUILD_LSFD], [test "x$build_lsfd" = xyes])
AC_ARG_ENABLE([lslogins],