Signed-off-by: Henrik Lindström <henrik@xxxxxx> --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 838047720..8a788179d 100644 --- a/configure.ac +++ b/configure.ac @@ -2165,7 +2165,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]) -- 2.39.5