From fcbcb0cdaad26bda55984eda2630130095a2e5b8 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 3 May 2021 11:10:10 +0200 Subject: [PATCH] meson: fix systemd dependence Fixes: https://github.com/karelzak/util-linux/issues/1301 Signed-off-by: Karel Zak --- meson.build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index ddf1015fc0..898c55d726 100644 --- a/meson.build +++ b/meson.build @@ -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) -- 2.47.3