summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2014-02-08 04:39:27 -0500
committerColin Walters <walters@verbum.org>2014-02-08 04:39:27 -0500
commit2cbbbc55a0dd54d333aeb30520683e563e847fd9 (patch)
tree7d4404d3e62e2b3f05ea6761456ede45e7cec789
parent9363cfc28ede912e2f06d4ccb42a646bb8a4bd2e (diff)
downloadlibgsystem-2cbbbc55a0dd54d333aeb30520683e563e847fd9.tar.gz
Fix systemd journal detection
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index c2e435a..b3999b2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -48,9 +48,12 @@ AC_ARG_WITH(systemd-journal,
AS_HELP_STRING([--without-systemd-journal], [Use systemd journal @<:@default=auto@:>@]),
[], [with_systemd_journal=auto])
AS_IF([test x$with_systemd_journal != xno], [
- PKG_CHECK_MODULES([SYSTEMD_JOURNAL], [libsystemd-journal >= 200], have_systemd_journal=yes, have_systemd_journal=no)
+ PKG_CHECK_MODULES([BUILDDEP_SYSTEMD_JOURNAL], [libsystemd-journal >= 200], have_systemd_journal=yes, have_systemd_journal=no)
])
AM_CONDITIONAL(ENABLE_SYSTEMD_JOURNAL, test x$have_systemd_journal = xyes)
+AS_IF([test x$have_systemd_journal = xyes], [
+ AC_DEFINE([ENABLE_SYSTEMD_JOURNAL],[1],[Define if you want to build with systemd journal support])
+])
AC_CONFIG_FILES([
Makefile