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".
This commit is contained in:
Simon Ser 2021-04-07 13:30:18 +02:00 committed by Kenny Levinsen
parent 385cc0039d
commit 392da918e6

View file

@ -239,6 +239,6 @@ endif
summary({ summary({
'seatd': get_option('seatd').enabled(), 'seatd': get_option('seatd').enabled(),
'builtin': get_option('builtin').enabled(), 'builtin': get_option('builtin').enabled(),
'systemd': logind_provider == 'systemd', 'systemd': logind.found() and logind_provider == 'systemd',
'elogind': logind_provider == 'elogind', 'elogind': logind.found() and logind_provider == 'elogind',
}, bool_yn: true) }, bool_yn: true)