mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
meson: Improve initconfdir defaults
Keep /etc/sysconfig as the fallback, but pick more suitable values for various Linux distros. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
6f42d9610c
commit
d18572b4b7
@ -83,8 +83,17 @@ endif
|
||||
|
||||
initconfdir = get_option('initconfdir')
|
||||
if initconfdir == ''
|
||||
if (os_release.contains('alpine') or
|
||||
os_release.contains('arch') or
|
||||
os_release.contains('gentoo'))
|
||||
initconfdir = sysconfdir / 'conf.d'
|
||||
# Ubuntu has ID_LIKE=debian
|
||||
elif os_release.contains('debian')
|
||||
initconfdir = sysconfdir / 'default'
|
||||
else
|
||||
initconfdir = sysconfdir / 'sysconfig'
|
||||
endif
|
||||
endif
|
||||
|
||||
bindir = prefix / get_option('bindir')
|
||||
datadir = prefix / get_option('datadir')
|
||||
|
Loading…
Reference in New Issue
Block a user