From 392da918e626641edb337d0afd9c0d72695babed Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 7 Apr 2021 13:30:18 +0200 Subject: build: fix logind feature summary when auto-detected If -Dlogind=auto but systemd/elogind isn't available, logind_provider would get set to the last item of the foreach loop. This would incorrectly report "systemd: YES". --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 5454053..8f7efb2 100644 --- a/meson.build +++ b/meson.build @@ -239,6 +239,6 @@ endif summary({ 'seatd': get_option('seatd').enabled(), 'builtin': get_option('builtin').enabled(), - 'systemd': logind_provider == 'systemd', - 'elogind': logind_provider == 'elogind', + 'systemd': logind.found() and logind_provider == 'systemd', + 'elogind': logind.found() and logind_provider == 'elogind', }, bool_yn: true) -- cgit v1.2.3