Commit d45610fe authored by Ray Strode's avatar Ray Strode
Browse files

wip: start adding systemd support

Only started, still more to do, just sketching at this point.
parent 1f0356a6
...@@ -161,10 +161,22 @@ AC_PATH_PROG([XSLTPROC], [xsltproc]) ...@@ -161,10 +161,22 @@ AC_PATH_PROG([XSLTPROC], [xsltproc])
# systemd # systemd
PKG_CHECK_MODULES(SYSTEMD, [libsystemd-login libsystemd-daemon],
[have_systemd=yes], [have_systemd=no])
AC_SUBST(SYSTEMD_CFLAGS)
AC_SUBST(SYSTEMD_LIBS)
LIBACCOUNTSSERVICE_LIBS="$LIBACCOUNTSSERVICE_LIBS $SYSTEMD_LIBS"
LIBACCOUNTSSERVICE_CFLAGS="$LIBACCOUNTSSERVICE_CFLAGS $SYSTEMD_CFLAGS"
if test "x$have_systemd" != "no" ; then
AC_DEFINE(WITH_SYSTEMD, 1, [Define to enable systemd support])
fi
AC_ARG_WITH([systemdsystemunitdir], AC_ARG_WITH([systemdsystemunitdir],
AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]), AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
[], [],
[with_systemdsystemunitdir=yes]) [with_systemdsystemunitdir=$have_systemd])
if test "x$with_systemdsystemunitdir" = "xyes"; then if test "x$with_systemdsystemunitdir" = "xyes"; then
with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd) with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
fi fi
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment