Commit 0e5dcb0e authored by Vincent Untz's avatar Vincent Untz Committed by Luis Medinas

build: Support tracker 0.11/0.12

https://bugzilla.gnome.org/show_bug.cgi?id=658240
parent 1581212c
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment