From 17f7fffa2a0b5b3d3f92a7cd69c59713ad2d2544 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 2 Oct 2010 20:20:31 +0200 Subject: build: Add support for systemd configuration --- configure.ac | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 58f4b08d..eff967e1 100644 --- a/configure.ac +++ b/configure.ac @@ -112,6 +112,19 @@ else fi AC_SUBST(DBUS_DATADIR) +AC_ARG_ENABLE(systemd, AC_HELP_STRING([--enable-systemd], + [enable systemd support]), [enable_systemd=${enableval}]) +if (test "${enable_systemd}" = "yes"); then + PKG_CHECK_MODULES(SYSTEMD, systemd, dummy=yes, + AC_MSG_ERROR(systemd is required)) + SYSTEMD_UNITDIR="`$PKG_CONFIG --variable=systemdsystemunitdir systemd`" + if (test -z "${SYSTEM_UNITDIR}"); then + SYSTEMD_UNITDIR="/lib/systemd/system" + fi + AC_SUBST(SYSTEMD_UNITDIR) +fi +AM_CONDITIONAL(SYSTEMD, test "${enable_systemd}" = "yes") + AC_ARG_ENABLE(capng, AC_HELP_STRING([--enable-capng], [enable capabilities support]), [enable_capng=${enableval}]) if (test "${enable_capng}" = "yes"); then -- cgit v1.2.3