diff options
author | Stefano Karapetsas <[email protected]> | 2014-03-07 00:08:41 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-03-07 00:08:41 +0100 |
commit | 5d80fd351b650f467e063d57d8eca8b42700a9a9 (patch) | |
tree | f85c6f94cf4250e3a8141f23e1bdb05aee413ab6 /configure.ac | |
parent | a467222c3a66b4b8c2cc64b76cc97cc3c2262919 (diff) | |
parent | 4e0fec5a1833324cbc74a59e0b285971e4b6ad9e (diff) | |
download | mate-session-manager-5d80fd351b650f467e063d57d8eca8b42700a9a9.tar.bz2 mate-session-manager-5d80fd351b650f467e063d57d8eca8b42700a9a9.tar.xz |
Merge pull request #50 from cygwinports/master
Fix build with --disable-upower
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 39b6465..99f287c 100644 --- a/configure.ac +++ b/configure.ac @@ -137,9 +137,12 @@ AC_ARG_ENABLE(upower, enable_upower=yes) if test "x$enable_upower" = "xyes"; then PKG_CHECK_MODULES(UPOWER, upower-glib >= $UPOWER_REQUIRED, has_upower=yes, has_upower=no) - AC_DEFINE(HAVE_UPOWER, 1, [upower support]) - AC_SUBST(UPOWER_CFLAGS) - AC_SUBST(UPOWER_LIBS) + + if test "x$has_upower" = "xyes"; then + AC_DEFINE(HAVE_UPOWER, 1, [upower support]) + AC_SUBST(UPOWER_CFLAGS) + AC_SUBST(UPOWER_LIBS) + fi fi AM_CONDITIONAL(HAVE_UPOWER, test "x$has_upower" = "xyes") AC_SUBST(HAVE_UPOWER) |