From 70b3937425b6a280e5bf47606ad1ab8e0b1f34a2 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sun, 11 Jan 2015 20:47:15 -0500 Subject: [PATCH] Fix build on systemdless systems Fixes bug 14170. --- configure.ac | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index dedfb7e5bd..b89ae8d7c3 100644 --- a/configure.ac +++ b/configure.ac @@ -132,13 +132,12 @@ if test x$have_systemd = xyes; then AC_DEFINE(HAVE_SYSTEMD,1,[Have systemd]) TOR_SYSTEMD_CFLAGS="${SYSTEMD_CFLAGS}" TOR_SYSTEMD_LIBS="${SYSTEMD_LIBS}" + PKG_CHECK_MODULES(SYSTEMD209, [systemd >= 209], + [AC_DEFINE(HAVE_SYSTEMD_209,1,[Have systemd v209 or more])], []) fi AC_SUBST(TOR_SYSTEMD_CFLAGS) AC_SUBST(TOR_SYSTEMD_LIBS) -PKG_CHECK_MODULES(SYSTEMD209, [systemd >= 209], - [AC_DEFINE(HAVE_SYSTEMD_209,1,[Have systemd v209 or more])], []) - if test x$enable_systemd = xyes -a x$have_systemd != xyes ; then AC_MSG_ERROR([Explicitly requested systemd support, but systemd not found]) fi