]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: add --disable-waitpid
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 18 May 2023 16:56:15 +0000 (18:56 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 18 May 2023 16:56:15 +0000 (18:56 +0200)
The new pidfd stuff waitpid uses is not compatible with older kernel
headers, but the rest of the util-linux is still perfectly fine, so
allow disabling just the waitpid utility to make the builds happy again.

configure.ac

index 871f9c19812c1cb9dffa68db15f66007a842b905..2066997cb38f11f1977b989ddc338b219fe1397e 100644 (file)
@@ -1847,7 +1847,11 @@ UL_BUILD_INIT([fadvise], [check])
 UL_REQUIRES_LINUX([fadvise])
 AM_CONDITIONAL([BUILD_FADVISE], [test "x$build_fadvise" = xyes])
 
-UL_BUILD_INIT([waitpid], [check])
+AC_ARG_ENABLE([waitpid],
+  AS_HELP_STRING([--disable-waitpid], [do not build waitpid]),
+  [], [UL_DEFAULT_ENABLE([waitpidd], [check])]
+)
+UL_BUILD_INIT([waitpid])
 UL_REQUIRES_LINUX([waitpid])
 AM_CONDITIONAL([BUILD_WAITPID], [test "x$build_waitpid" = xyes])