]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: fix systemd dependence
authorKarel Zak <kzak@redhat.com>
Mon, 3 May 2021 09:10:10 +0000 (11:10 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 3 May 2021 09:10:10 +0000 (11:10 +0200)
Fixes: https://github.com/karelzak/util-linux/issues/1301
Signed-off-by: Karel Zak <kzak@redhat.com>
meson.build

index ddf1015fc04e07d7e2d0ba5ed429963aeda5486f..898c55d7269104ac06068909c7e2842acefd5f81 100644 (file)
@@ -710,8 +710,9 @@ if fs_search_path_extra != ''
 endif
 conf.set_quoted('FS_SEARCH_PATH', fs_search_path)
 
-systemdsystemunitdir = systemd.get_pkgconfig_variable('systemdsystemunitdir')
-
+if systemd.found()
+  systemdsystemunitdir = systemd.get_pkgconfig_variable('systemdsystemunitdir')
+endif
 
 chfn_chsh_password = get_option('chfn-chsh-password') or lib_user.found()
 conf.set('CHFN_CHSH_PASSWORD', chfn_chsh_password ? 1 : false)