]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: gate sulogin on shadow.h
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 29 Apr 2026 12:13:34 +0000 (14:13 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 12 May 2026 11:56:27 +0000 (13:56 +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 41217c8d4b827e9f3a0aba4e52b3799312be4d6c..bc0a7397f5209dd18ce759b38b13b167d13d5605 100644 (file)
@@ -2868,7 +2868,9 @@ if opt and not is_disabler(exe)
   manadocs += login_manadocs
 endif
 
-opt = get_option('build-sulogin').allowed()
+opt = get_option('build-sulogin') \
+      .require(conf.get('HAVE_SHADOW_H').to_string() == '1') \
+      .allowed()
 exe = executable(
   'sulogin',
   sulogin_sources,