diff options
author | Daiki Ueno <dueno@src.gnome.org> | 2021-02-12 10:14:24 +0100 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2021-03-26 17:36:32 +0000 |
commit | d38011124e554c6c1dd57d859acfae4389c05699 (patch) | |
tree | cc22870f45f1ff712f36e4b54fddbf4fa0c85331 /configure.ac | |
parent | 23294af736984655d03b5c58b504a96fe58cdd33 (diff) | |
download | gnome-keyring-d38011124e554c6c1dd57d859acfae4389c05699.tar.gz |
daemon: Make it systemd-activatable through the control socket
This enables gnome-keyring-daemon to be launched through the systemd
socket activation mechanism, rather than through pam_gnome_keyring.so.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 752d2ffa..c1f8afe4 100644 --- a/configure.ac +++ b/configure.ac @@ -435,6 +435,30 @@ AC_SUBST(LIBSELINUX) AM_CONDITIONAL([HAVE_LIBSELINUX], [test ! -z "$LIBSELINUX"]) # ---------------------------------------------------------------------- +# systemd + +AC_ARG_WITH([systemd], + AS_HELP_STRING([--without-systemd], + [Disable systemd socket activation])) + +AS_IF([test "$with_systemd" != "no"], [ + PKG_CHECK_MODULES([LIBSYSTEMD], [libsystemd], [], + [with_systemd=no]) + + PKG_CHECK_VAR([systemduserunitdir], [systemd], [systemduserunitdir], [], + [with_systemd=no]) + + AS_IF([test "$with_systemd" != "no"], [ + with_systemd=yes + AC_DEFINE_UNQUOTED(WITH_SYSTEMD, 1, [Build with systemd socket activation]) + DAEMON_CFLAGS="$DAEMON_CFLAGS $LIBSYSTEMD_CFLAGS" + DAEMON_LIBS="$DAEMON_LIBS $LIBSYSTEMD_LIBS" + ]) +]) + +AM_CONDITIONAL(WITH_SYSTEMD, [test "$with_systemd" = "yes"]) + +# ---------------------------------------------------------------------- # dotlock.c support AC_DEFINE(DOTLOCK_USE_PTHREAD,1,[Define if POSIX threads are in use.]) @@ -662,6 +686,7 @@ echo "OPTIONAL DEPENDENCIES" echo " PAM: $pam_status" echo " Linux capabilities: $libcapng_status" echo " SELinux: $selinux_status" +echo " systemd: $with_systemd" echo echo "CONFIGURATION" echo " SSH Agent: $ssh_status" |