Build was broken if systemd was not installed

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by:   Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Daniel Walton 2016-02-10 20:47:05 +00:00
parent 858aa29c68
commit f87adf0a5f
2 changed files with 2 additions and 2 deletions

View File

@ -326,7 +326,7 @@ if test x"${enable_time_check}" != x"no" ; then
fi fi
fi fi
if test x"${enable_systemd}" != x"no" ; then if test "${enable_systemd}" = "yes" ; then
AC_DEFINE(HAVE_SYSTEMD,,Compile systemd support in) AC_DEFINE(HAVE_SYSTEMD,,Compile systemd support in)
LIBS="$LIBS -lsystemd " LIBS="$LIBS -lsystemd "
fi fi

2
debian/rules vendored
View File

@ -66,7 +66,7 @@ override_dh_auto_configure:
--enable-werror \ --enable-werror \
--enable-gcc-rdynamic \ --enable-gcc-rdynamic \
--with-libpam \ --with-libpam \
--enable-systemd \ --enable-systemd=yes \
--enable-dependency-tracking; \ --enable-dependency-tracking; \
fi fi
if ! diff -b -IHAVE_SNMP -IHAVE_NETSNMP -IUCD_COMPAT -IGETIFADDR debian/my/config.h.reference config.h; then \ if ! diff -b -IHAVE_SNMP -IHAVE_NETSNMP -IUCD_COMPAT -IGETIFADDR debian/my/config.h.reference config.h; then \