if test "x$enable_systemd" != xno; then :
+
pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
$as_echo_n "checking for SYSTEMD... " >&6; }
;;
esac
+
fi
if test "x$have_systemd" = xyes; then
USE_SYSTEMD_TRUE=
+13 February 2017: Wouter
+ - Fix autoconf of systemd check for lack of pkg-config.
+
10 February 2017: Wouter
- Fix pythonmod for typedef changes.
- Fix dnstap for warning of set but not used.
[], [enable_systemd=no])
have_systemd=no
AS_IF([test "x$enable_systemd" != xno], [
+ ifdef([PKG_CHECK_MODULES], [
dnl systemd v209 or newer
PKG_CHECK_MODULES([SYSTEMD], [libsystemd], [have_systemd=yes], [have_systemd=no])
dnl old systemd library
LIBS="$LIBS $SYSTEMD_LIBS"
]
)
+ ], [
+ AC_MSG_ERROR([systemd enabled but need pkg-config to configure for it])
+ ])
])
AM_CONDITIONAL([USE_SYSTEMD], [test "x$have_systemd" = xyes])