systemd: use the older version of the systemd pkgconfig variables

For compatibility with older versions of systemd
This commit is contained in:
George Kiagiadakis 2021-02-25 14:10:30 +02:00
parent 9e7f3d4740
commit 92b621ab8a

View file

@ -7,7 +7,7 @@ if systemd.found()
# system service
if get_option('systemd-system-service')
systemd_system_unit_dir = systemd.get_pkgconfig_variable(
'systemd_system_unit_dir',
'systemdsystemunitdir',
define_variable : ['prefix', get_option('prefix')])
if get_option('systemd-system-unit-dir') != ''
@ -20,7 +20,7 @@ if systemd.found()
# user service
if get_option('systemd-user-service')
systemd_user_unit_dir = systemd.get_pkgconfig_variable(
'systemd_user_unit_dir',
'systemduserunitdir',
define_variable : ['prefix', get_option('prefix')])
if get_option('systemd-user-unit-dir') != ''