diff options
author | monsta <[email protected]> | 2015-12-13 17:38:01 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2015-12-13 17:38:01 +0300 |
commit | 6b09840cadebe81b1baf7dc13cb67346071f53a2 (patch) | |
tree | 8f51640da087bd680a078eafb8bb95a2eb159783 /configure.ac | |
parent | 2cdcacd350c8c5456ddded9145bb7fbcc65ddbff (diff) | |
parent | f9a2293e611930bab7a799efe2569313a4414348 (diff) | |
download | mate-session-manager-6b09840cadebe81b1baf7dc13cb67346071f53a2.tar.bz2 mate-session-manager-6b09840cadebe81b1baf7dc13cb67346071f53a2.tar.xz |
Merge pull request #110 from oleid/master
compile fix for upower 0.99 series
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 131b480..ff0ea31 100644 --- a/configure.ac +++ b/configure.ac @@ -144,13 +144,18 @@ AC_ARG_ENABLE(upower, enable_upower=$enableval, enable_upower=no) if test "x$enable_upower" = "xyes"; then - PKG_CHECK_MODULES(UPOWER, upower-glib >= $UPOWER_REQUIRED, has_upower=yes, has_upower=no) + PKG_CHECK_MODULES([UPOWER], [upower-glib >= $UPOWER_REQUIRED], has_upower=yes, has_upower=no) if test "x$has_upower" = "xyes"; then AC_DEFINE(HAVE_UPOWER, 1, [upower support]) AC_SUBST(UPOWER_CFLAGS) AC_SUBST(UPOWER_LIBS) fi + PKG_CHECK_MODULES([UPOWER_HIBERNATE], [upower-glib < 0.99], has_upower_hibernate_suspend=yes, has_upower_hibernate_suspend=no) + if test "x$has_upower_hibernate_suspend" = "xyes"; then + AC_DEFINE(HAVE_UPOWER_HIBERNATE_SUSPEND, 1, [upower based support for hibernate and suspend (<0.99) ]) + fi + fi AM_CONDITIONAL(HAVE_UPOWER, test "x$has_upower" = "xyes") AC_SUBST(HAVE_UPOWER) |