]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
enable build support without systemd compatibility libraries
authorUmut Tezduyar Lindskog <umut@tezduyar.com>
Tue, 2 Sep 2014 07:02:31 +0000 (09:02 +0200)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 12 Sep 2014 11:24:18 +0000 (12:24 +0100)
systemd 209 merged all the libraries to libsystemd. Old
libraries can still be enabled with --enable-compat-libs
switch in systemd but this increases the binary size.

Implement a fallback library check in case compat libraries
dont exist.

[Fixed underquoting; switched priority so we try libsystemd first -smcv]
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
configure.ac

index 5412db2ef9ec439282dd68d8381b66346fcbd727..b7b91beca46df26776e0889a1afbd22ebd9b82f9 100644 (file)
@@ -1143,10 +1143,13 @@ dnl systemd detection
 if test x$enable_systemd = xno ; then
     have_systemd=no;
 else
-    PKG_CHECK_MODULES(SYSTEMD,
-        [libsystemd-login >= 32, libsystemd-daemon >= 32, libsystemd-journal >= 32],
-        have_systemd=yes,
-        have_systemd=no)
+    PKG_CHECK_MODULES([SYSTEMD],
+        [libsystemd >= 209],
+        [have_systemd=yes],
+        [PKG_CHECK_MODULES([SYSTEMD],
+            [libsystemd-login >= 32, libsystemd-daemon >= 32, libsystemd-journal >= 32],
+            [have_systemd=yes],
+            [have_systemd=no])])
 fi
 
 if test x$have_systemd = xyes; then