[gedit-plugins] Add a way to disable zeitgeist
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] Add a way to disable zeitgeist
- Date: Mon, 23 Mar 2015 21:16:22 +0000 (UTC)
commit f88e0523a7a5a8a06cb891085fb858d2322569a1
Author: Paolo Borelli <pborelli gnome org>
Date: Mon Mar 23 22:15:57 2015 +0100
Add a way to disable zeitgeist
configure.ac | 37 +++++++++++++++++++++++++++----------
1 files changed, 27 insertions(+), 10 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c7434e8..542a2a5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -107,11 +107,22 @@ AM_CONDITIONAL([ENABLE_PYTHON], [test "x$enable_python" = "xyes"])
dnl ================================================================
dnl zeitgeist (libzeitgeist)
dnl ================================================================
-LIBZEITGEIST_REQUIRED=0.9.12
-PKG_CHECK_MODULES([ZEITGEIST], \
- [zeitgeist-2.0 >= $LIBZEITGEIST_REQUIRED],
- [have_zeitgeist=yes],
- [have_zeitgeist=no])
+AC_MSG_CHECKING([whether Zeitgeist support is requested])
+AC_ARG_ENABLE([zeitgeist],
+ AS_HELP_STRING([--enable-zeitgeist], [Enable zeitgeist support]),
+ [enable_zeitgeist=$enableval],
+ [enable_zeitgeist="yes"])
+
+if test "x$enable_zeitgeist" = "xyes"
+then
+ LIBZEITGEIST_REQUIRED=0.9.12
+ PKG_CHECK_MODULES([ZEITGEIST], \
+ [zeitgeist-2.0 >= $LIBZEITGEIST_REQUIRED],
+ [have_zeitgeist=yes],
+ [have_zeitgeist=no])
+else
+ have_zeitgeist=no
+fi
if test "x$have_zeitgeist" = "xyes"; then
PLUGINS="$PLUGINS zeitgeist"
@@ -172,14 +183,20 @@ then
# ================================================================
# Dashboard (Zeitgeist)
# ================================================================
- AC_MSG_CHECKING([for dashboard dependency zeitgeist])
- if `$PYTHON -c "import gi; gi.require_version('Zeitgeist', '2.0')" 2>/dev/null`;
+ if test "x$enable_zeitgeist" = "xyes"
then
- have_dashboard=yes
- PLUGINS="$PLUGINS dashboard"
+ AC_MSG_CHECKING([for dashboard dependency zeitgeist])
+ if `$PYTHON -c "import gi; gi.require_version('Zeitgeist', '2.0')" 2>/dev/null`;
+ then
+ have_dashboard=yes
+ PLUGINS="$PLUGINS dashboard"
+ else
+ have_dashboard=no
+ disabled_plugins="$disabled_plugins dashboard (Zeitgeist gi not found)"
+ fi
else
have_dashboard=no
- disabled_plugins="$disabled_plugins dashboard (Zeitgeist gi not found)"
+ disabled_plugins="$disabled_plugins dashboard (Zeitgeist disabled)"
fi
AC_MSG_RESULT($have_dashboard)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]