build-sys: find split systemd libraries
With4e7f4237
and5e73c832
, systemd library detection through pkg-config was changed to unconditionally look for unified libsystemd. This adds a fallback to match the previous behavior and find the split libs as well. References: procps-ng/procps!128 Signed-off-by: Craig Small <csmall@dropbear.xyz>
This commit is contained in:
parent
6c36ab4fc7
commit
d40db79c60
@ -226,7 +226,9 @@ AC_ARG_WITH([systemd],
|
||||
[], [with_systemd=no]
|
||||
)
|
||||
AS_IF([test "x$with_systemd" != "xno"], [
|
||||
PKG_CHECK_MODULES([SYSTEMD], [libsystemd])
|
||||
PKG_CHECK_MODULES([SYSTEMD], [libsystemd],,
|
||||
[PKG_CHECK_MODULES([SYSTEMD], [libsystemd-login])]
|
||||
)
|
||||
AC_DEFINE(WITH_SYSTEMD, 1, [enable systemd support])
|
||||
])
|
||||
AM_CONDITIONAL([WITH_SYSTEMD], [test x$with_systemd != xno])
|
||||
|
Loading…
Reference in New Issue
Block a user