summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaakov Selkowitz <[email protected]>2014-03-05 10:51:15 -0600
committerYaakov Selkowitz <[email protected]>2014-03-05 10:51:15 -0600
commit4e0fec5a1833324cbc74a59e0b285971e4b6ad9e (patch)
treef85c6f94cf4250e3a8141f23e1bdb05aee413ab6
parenta467222c3a66b4b8c2cc64b76cc97cc3c2262919 (diff)
downloadmate-session-manager-4e0fec5a1833324cbc74a59e0b285971e4b6ad9e.tar.bz2
mate-session-manager-4e0fec5a1833324cbc74a59e0b285971e4b6ad9e.tar.xz
Fix build with --disable-upower
-rw-r--r--configure.ac9
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)