meson/build: fix using correct prefix for "systemdsystemunitdir"

We do the same with autotools.

Well, almost the same. Of course, meson's define_variable only
accepts a list of two strings, to define one variable. So we cannot
also redefine "prefix", unlike configure.ac.
This commit is contained in:
Thomas Haller 2022-05-11 15:23:25 +02:00
parent 331a7c9943
commit c840e56e0a
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -369,7 +369,7 @@ install_systemdunitdir = (systemd_systemdsystemunitdir != 'no')
if install_systemdunitdir and systemd_systemdsystemunitdir == ''
assert(systemd_dep.found(), 'systemd required but not found, please provide a valid systemd user unit dir or disable it')
systemd_systemdsystemunitdir = systemd_dep.get_pkgconfig_variable('systemdsystemunitdir')
systemd_systemdsystemunitdir = systemd_dep.get_pkgconfig_variable('systemdsystemunitdir', define_variable: ['rootprefix', nm_prefix])
endif
enable_systemd_journal = get_option('systemd_journal')