diff options
author | Steve Zesch <[email protected]> | 2012-11-22 14:18:05 -0500 |
---|---|---|
committer | Steve Zesch <[email protected]> | 2012-11-22 14:18:05 -0500 |
commit | de6402cb66f3eecfbb4aa92155f2cec7bc45225a (patch) | |
tree | 1b95148af81aebf1359dab9e55217f1fa1f1eafa /configure.ac | |
parent | f915c8482adab2076b25427517ec6166bb9209a2 (diff) | |
parent | 433b548ea199a66afbb5fc874bfdaa31695c1e3c (diff) | |
download | mate-power-manager-de6402cb66f3eecfbb4aa92155f2cec7bc45225a.tar.bz2 mate-power-manager-de6402cb66f3eecfbb4aa92155f2cec7bc45225a.tar.xz |
Merge branch 'master' of github.com:mate-desktop/mate-power-manager
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 312f220..6e36106 100644 --- a/configure.ac +++ b/configure.ac @@ -270,6 +270,25 @@ AC_MSG_RESULT([$have_applets]) AM_CONDITIONAL([HAVE_APPLETS], [test $have_applets = yes]) dnl --------------------------------------------------------------------------- +dnl systemd inhibit +dnl --------------------------------------------------------------------------- + +AC_ARG_WITH(systemdinhibit, + AS_HELP_STRING([--with-systemdinhibit], + [Add systemdinhibit support]),, + with_systemdinhibit=auto) + +use_systemdinhibit=no +if test "x$with_systemdinhibit" != "xno" ; then + use_systemdinhibit=yes + AC_DEFINE(WITH_SYSTEMD_INHIBIT, 1, [systemdinhibit support]) + + PKG_CHECK_MODULES(SYSTEMD_INHIBIT, libsystemd-login libsystemd-daemon) +fi +AM_CONDITIONAL(WITH_SYSTEMD_INHIBIT, test x$use_systemdinhibit = xyes) +AC_SUBST(WITH_SYSTEMD_INHIBIT) + +dnl --------------------------------------------------------------------------- dnl - DocBook Documentation dnl --------------------------------------------------------------------------- AC_ARG_ENABLE(docbook-docs, @@ -382,6 +401,7 @@ echo " Building extra applets: ${enable_applets} Self test support: ${have_tests} Use libunique: ${enable_libunique} + systemd support: ${use_systemdinhibit} Docbook support: ${enable_docbook_docs} documentation dir: $DOCDIR dbus-1 services dir: $DBUS_SERVICES_DIR |