[brasero] build: Support tracker 0.11/0.12
- From: Luis Medinas <lmedinas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [brasero] build: Support tracker 0.11/0.12
- Date: Tue, 20 Sep 2011 21:27:34 +0000 (UTC)
commit 0e5dcb0eb23e9a62bb27705f7e0c5d27e88ef160
Author: Vincent Untz <vuntz gnome org>
Date: Mon Sep 5 12:21:01 2011 +0200
build: Support tracker 0.11/0.12
https://bugzilla.gnome.org/show_bug.cgi?id=658240
configure.in | 32 ++++++++++++++------------------
1 files changed, 14 insertions(+), 18 deletions(-)
---
diff --git a/configure.in b/configure.in
index e6b4922..1082f73 100644
--- a/configure.in
+++ b/configure.in
@@ -370,33 +370,29 @@ TRACKER_REQUIRED=0.10.0
AC_ARG_ENABLE(search,
AS_HELP_STRING([--enable-search],[Build search pane (if a search backend is available) [[default=auto]]]),
[case "$enableval" in
- "auto") enable_search="yes" ;;
- "yes") enable_search="yes" ;;
- "no") enable_search="no" ;;
- "tracker") enable_search="tracker" ;;
+ "auto"|"yes"|"no") ;;
*) echo "Unknown option"; exit 2 ;;
esac],
- [enable_search="yes"])
+ [enable_search="auto"])
+
+if test x"$enable_search" = "xauto"; then
+ PKG_CHECK_EXISTS([tracker-sparql-0.12 >= $TRACKER_REQUIRED],
+ [enable_search=yes],
+ [PKG_CHECK_EXISTS([tracker-sparql-0.10 >= $TRACKER_REQUIRED],
+ [enable_search=yes],
+ [enable_search=no])]);
+fi
-if test x"$enable_search" = "xtracker"; then
- PKG_CHECK_MODULES(BRASERO_SEARCH, tracker-sparql-0.10 >= $TRACKER_REQUIRED)
+if test x"$enable_search" = "xyes"; then
+ PKG_CHECK_EXISTS([tracker-sparql-0.12 >= $TRACKER_REQUIRED],
+ [tracker_api=0.12], [tracker_api=0.10])
+ PKG_CHECK_MODULES(BRASERO_SEARCH, tracker-sparql-$tracker_api >= $TRACKER_REQUIRED)
AC_DEFINE(BUILD_SEARCH, 1, [define if you want to use search pane])
AC_DEFINE(BUILD_TRACKER, 1, [define if you want to use search pane])
AC_SUBST(BRASERO_SEARCH_CFLAGS)
AC_SUBST(BRASERO_SEARCH_LIBS)
build_tracker="yes"
build_search="yes"
-elif test x"$enable_search" = "xyes"; then
- PKG_CHECK_MODULES(BRASERO_SEARCH, tracker-sparql-0.10 >= $TRACKER_REQUIRED, build_search=yes, build_search=no)
- if test x"$build_search" = "xyes"; then
- AC_DEFINE(BUILD_SEARCH, 1, [define if you want to use search pane])
- AC_DEFINE(BUILD_TRACKER, 1, [define if you want to use search pane])
-
- AC_SUBST(BRASERO_SEARCH_CFLAGS)
- AC_SUBST(BRASERO_SEARCH_LIBS)
-
- build_tracker="yes"
- fi
else
build_search="no"
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]