From: Henrik Lindström Date: Sat, 21 Sep 2024 08:23:10 +0000 (+0200) Subject: autotools: allow enabling dmesg with --disable-all-programs X-Git-Tag: v2.42-start~192 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=42aa4cd4f6383875d4163620b0590c4ab659b68b;p=thirdparty%2Futil-linux.git autotools: allow enabling dmesg with --disable-all-programs Signed-off-by: Henrik Lindström --- diff --git a/configure.ac b/configure.ac index 3f26eb8cd..96519e088 100644 --- a/configure.ac +++ b/configure.ac @@ -2167,7 +2167,11 @@ UL_BUILD_INIT([readprofile], [check]) UL_REQUIRES_LINUX([readprofile]) AM_CONDITIONAL([BUILD_READPROFILE], [test "x$build_readprofile" = xyes]) -UL_BUILD_INIT([dmesg], [check]) +AC_ARG_ENABLE([dmesg], + AS_HELP_STRING([--disable-dmesg], [do not build dmesg]), + [], [UL_DEFAULT_ENABLE([dmesg], [check])] +) +UL_BUILD_INIT([dmesg]) UL_REQUIRES_LINUX([dmesg]) AM_CONDITIONAL([BUILD_DMESG], [test "x$build_dmesg" = xyes])