Skip to content

Commit

Permalink
configure.ac: Add support for user services
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-klode authored and hughsie committed Jul 4, 2019
1 parent cd3212d commit d9fe720
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions configure.ac
Expand Up @@ -225,8 +225,15 @@ if test x$enable_systemd = xyes; then
[has_systemdsystemunitdir=$with_systemdsystemunitdir],
[has_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
AC_SUBST([systemdsystemunitdir], [$has_systemdsystemunitdir])
AC_ARG_WITH([systemduserunitdir],
AS_HELP_STRING([--with-systemduserunitdir=DIR], [Directory for systemd user service files]),
[has_systemduserunitdir=$with_systemduserunitdir],
[has_systemduserunitdir=$($PKG_CONFIG --variable=systemduserunitdir systemd)])
AC_SUBST([systemduserunitdir], [$has_systemduserunitdir])
AC_DEFINE(HAVE_SYSTEMD,1,[Build systemd code])
fi
AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$has_systemdsystemunitdir"])
AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$has_systemduserunitdir"])

dnl ---------------------------------------------------------------------------
dnl - Use systemd offline update
Expand Down Expand Up @@ -632,6 +639,7 @@ echo "
Cron scripts: ${build_cron}
python3: ${enable_python3}
systemd system unit dir: ${has_systemdsystemunitdir}
systemd user unit dir: ${has_systemduserunitdir}
Installing python backend: ${have_python_backend}
python package dir: ${with_python_package_dir}

Expand Down

0 comments on commit d9fe720

Please sign in to comment.