]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
If libsystemd-daemon.pc is not found, look for libsystemd
authorNick Mathewson <nickm@torproject.org>
Mon, 12 Jan 2015 14:49:52 +0000 (09:49 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 12 Jan 2015 15:03:06 +0000 (10:03 -0500)
(Thanks to toralf for noting that the build was broken, and to
Sebastian for telling me that my fix still wasn't right.)

configure.ac

index b89ae8d7c3a772e55aa44971e99d9f8049b41ec9..c254725c60e35097809fce0b20c4c02df78dc438 100644 (file)
@@ -126,6 +126,13 @@ else
         [libsystemd-daemon],
         have_systemd=yes,
         have_systemd=no)
+    if test x$have_systemd=xno; then
+        AC_MSG_NOTICE([Okay, checking for systemd a different way...])
+        PKG_CHECK_MODULES(SYSTEMD,
+            [libsystemd],
+            have_systemd=yes,
+            have_systemd=no)
+    fi
 fi
 
 if test x$have_systemd = xyes; then