]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: gate setterm on sys/klog.h
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 29 Apr 2026 12:12:51 +0000 (14:12 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Mon, 4 May 2026 13:52:04 +0000 (15:52 +0200)
The target needs this header, encode this in the build system.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
meson.build

index 5cb29c7c39bc2a2f7e10a27005f2cf183341e6c0..99d713cf220930e765acf271937571012be4e3e1 100644 (file)
@@ -2746,7 +2746,9 @@ if opt and not is_disabler(exe)
   manadocs += agetty_manadocs
 endif
 
-opt = get_option('build-setterm').allowed()
+opt = get_option('build-setterm') \
+      .require(conf.get('HAVE_SYS_KLOG_H').to_string() == '1') \
+      .allowed()
 exe = executable(
   'setterm',
   setterm_sources,