From 31c17ee828765cba03ff933ae622925bc56e2e5d Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Tue, 19 May 2015 15:03:13 +0200 Subject: [PATCH] Add support for libsystemd In systemd v209 the various libsystemd-* libraries were merged into a single libsystemd library. So first check for this library and fall back to libsystemd-journal if not found. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=90519 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=779774 --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 223529a..8306b7a 100644 --- a/configure.ac +++ b/configure.ac @@ -118,7 +118,8 @@ AC_ARG_WITH(systemd-journal, if test "$with_systemd_journal" != "no"; then AC_DEFINE_UNQUOTED(WITH_JOURNAL, 1, [Use systemd's journal]) - PKG_CHECK_MODULES(SYSTEMD_JOURNAL, libsystemd-journal) + PKG_CHECK_MODULES(SYSTEMD_JOURNAL, [libsystemd],, + [PKG_CHECK_MODULES(SYSTEMD_JOURNAL, [libsystemd-journal])]) with_systemd_journal="yes" fi -- 2.1.4