diff options
author | Stefano Karapetsas <stefano@karapetsas.com> | 2013-03-05 20:39:33 +0100 |
---|---|---|
committer | Stefano Karapetsas <stefano@karapetsas.com> | 2013-03-05 20:39:33 +0100 |
commit | 31fdf9eb550e0f2e69fa1ba96a1d7d78b8d2e060 (patch) | |
tree | 832bb7dcfcbdbba34eaf2b66cbbb659a7c692c93 /configure.ac | |
parent | 29e5cd2f28f6ddc253d393064c0b24130af0ee35 (diff) | |
download | mate-session-manager-31fdf9eb550e0f2e69fa1ba96a1d7d78b8d2e060.tar.bz2 mate-session-manager-31fdf9eb550e0f2e69fa1ba96a1d7d78b8d2e060.tar.xz |
Add initial systemd support
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index d450884..26025e3 100644 --- a/configure.ac +++ b/configure.ac @@ -104,6 +104,29 @@ dnl GSettings dnl ==================================================================== GLIB_GSETTINGS + +dnl ==================================================================== +dnl Systemd +dnl ==================================================================== + +AC_ARG_WITH(systemd, + AS_HELP_STRING([--with-systemd], + [Add systemd support]),, + with_systemd=auto) + +use_systemd=no +if test "x$with_systemd" != "xno" ; then + PKG_CHECK_MODULES(SYSTEMD, libsystemd-login libsystemd-daemon, use_systemd=yes, use_systemd=no) + + if test "x$use_systemd" = "xyes"; then + AC_DEFINE(HAVE_SYSTEMD, 1, [systemd support]) + AC_SUBST(SYSTEMD_CFLAGS) + AC_SUBST(SYSTEMD_LIBS) + fi +fi +AM_CONDITIONAL(HAVE_SYSTEMD, test "x$use_systemd" = "xyes") +AC_SUBST(HAVE_SYSTEMD) + dnl ==================================================================== dnl X development libraries check dnl ==================================================================== @@ -137,7 +160,7 @@ fi AC_CHECK_LIB(Xau, XauFileName, [X_LIBS="$X_LIBS -lXau"], [AC_MSG_ERROR([ -*** Can't find the Xauth library. It is needed to compile mate-session.])], +*** Cant find the Xauth library. It is needed to compile mate-session.])], $X_LIBS) AC_SUBST(X_LIBS) @@ -361,6 +384,7 @@ echo " GTK+ version: ${with_gtk} Default WM: ${with_default_wm} + Systemd support: ${use_systemd} IPv6 support: ${have_full_ipv6} Backtrace support: ${have_backtrace} XRender support: ${have_xrender} |