From 70fa78452d645735f028f43c4ad8bbce42b3f189 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Wed, 2 Sep 2026 16:02:15 +0900 Subject: [PATCH] Add support for elogind. Elogind provides the systemd/sd-device.h and systemd/sd-hwdb.h headers, can be used as a drop-in replacement of systemd. * meson.build ([systemd]): Add elogind alternative name for dependency check. * meson_options.txt [systemd]: Mention elogind in description. --- meson.build | 2 +- meson_options.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index c84392ee..b1bc44ee 100644 --- a/meson.build +++ b/meson.build @@ -202,7 +202,7 @@ else zstd_dep = dependency('', required: false) endif if get_option('systemd') - libsystemd_dep = dependency('libsystemd', required: get_option('systemd')) + libsystemd_dep = dependency('libsystemd', 'libelogind', required: get_option('systemd')) else libsystemd_dep = dependency('', required: false) endif diff --git a/meson_options.txt b/meson_options.txt index ac364979..62d4102b 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -6,7 +6,7 @@ option('stemming', option('systemd', type : 'boolean', value : true, - description : 'Build with systemd support' + description : 'Build with systemd/elogind support' ) option('vapi', type : 'boolean',