From: Marcel Holtmann Date: Sun, 1 Dec 2013 20:28:32 +0000 (-0800) Subject: build-sys: allow building systemctl with --disable-logind X-Git-Tag: v209~1164 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;ds=sidebyside;h=e4afbb3eac5b20cf2fdf240af1caa576600ce152;p=elogind.git build-sys: allow building systemctl with --disable-logind When logind is disabled, do not attempt to link against the non-existing libsystemd-login-internal.la library. --- diff --git a/Makefile.am b/Makefile.am index a7baea51c..0de03fe76 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1784,8 +1784,14 @@ systemctl_LDADD = \ libsystemd-units.la \ libsystemd-label.la \ libsystemd-bus-internal.la \ - libsystemd-logs.la \ - libsystemd-login-internal.la \ + libsystemd-logs.la + +if ENABLE_LOGIND +systemctl_LDADD += \ + libsystemd-login-internal.la +endif + +systemctl_LDADD += \ libsystemd-journal-internal.la \ libsystemd-id128-internal.la \ libsystemd-daemon-internal.la \