[tracker/evo-0.10] build: Support build with evolution 2.91.6 and later



commit f8211c8d74a55935ddb9a74407b2cc985b5d1a5c
Author: Jürg Billeter <j bitron ch>
Date:   Wed Mar 30 16:44:51 2011 +0200

    build: Support build with evolution 2.91.6 and later
    
    Fixes GB#645934.

 configure.ac |   34 ++++++++++++++++++++++------------
 1 files changed, 22 insertions(+), 12 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 0395db2..395321b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -357,11 +357,9 @@ PKG_CHECK_MODULES(TRACKER_MINER_FS, [$TRACKER_MINER_FS_REQUIRED])
 TRACKER_MINER_FS_LIBS="$TRACKER_MINER_FS_LIBS -lz -lm"
 
 # Check requirements for tracker-miner-evolution
-evolution_plugin_name="evolution-plugin"
-
 TRACKER_MINER_EVOLUTION_REQUIRED="glib-2.0                  >= $GLIB_REQUIRED
-                                  evolution-shell           >= $EVO_SHELL_REQUIRED
-                                  evolution-plugin          >= $EVO_REQUIRED
+                                  evolution-shell-3.0
+                                  evolution-plugin-3.0
                                   evolution-data-server-1.2 >= $EDS_REQUIRED
                                   camel-1.2                 >= $CAMEL_REQUIRED"
 
@@ -369,6 +367,26 @@ PKG_CHECK_MODULES(TRACKER_MINER_EVOLUTION, [$TRACKER_MINER_EVOLUTION_REQUIRED],
                   [have_tracker_miner_evolution=yes],
                   [have_tracker_miner_evolution=no])
 
+if test "x$have_tracker_miner_evolution" = "xyes"; then
+   evolution_plugin_name="evolution-plugin-3.0"
+
+   AC_DEFINE(EVOLUTION_SHELL_2_91, 1, [Use new evolution-shell API])
+else
+   evolution_plugin_name="evolution-plugin"
+
+
+   TRACKER_MINER_EVOLUTION_REQUIRED="glib-2.0                  >= $GLIB_REQUIRED
+                                     evolution-shell           >= $EVO_SHELL_REQUIRED
+                                     evolution-plugin          >= $EVO_REQUIRED
+                                     evolution-data-server-1.2 >= $EDS_REQUIRED
+                                     camel-1.2                 >= $CAMEL_REQUIRED"
+
+   PKG_CHECK_MODULES(TRACKER_MINER_EVOLUTION, [$TRACKER_MINER_EVOLUTION_REQUIRED],
+                     [have_tracker_miner_evolution=yes],
+                     [have_tracker_miner_evolution=no])
+
+fi
+
 # Check requirements for tracker-miner-rss
 TRACKER_MINER_RSS_REQUIRED="glib-2.0     >= $GLIB_REQUIRED
                             libgrss-0    >= $LIBGRSS_REQUIRED"
@@ -1119,10 +1137,6 @@ fi
 
 if test "x$have_tracker_miner_evolution" = "xyes"; then
 
-   PKG_CHECK_MODULES(MINER_EVOLUTION_SHELL, evolution-shell > 2.91,
-                     [miner_evolution_2_91=yes],
-                     [miner_evolution_2_91=no])
-
    AC_ARG_WITH([evolution_plugin_dir],
                AS_HELP_STRING([--with-evolution-plugin-dir],
                               [path to Evolution plugin directory]))
@@ -1135,10 +1149,6 @@ if test "x$have_tracker_miner_evolution" = "xyes"; then
    if test -z $tracker_miner_evolution_install_dir; then
       AC_MSG_ERROR([Couldn't find evolution plugin dir, consider using --with-evolution-plugin-dir.])
    fi
-
-   if test "x$miner_evolution_2_91" = "xyes"; then
-      AC_DEFINE(EVOLUTION_SHELL_2_91, 1, [Use new evolution-shell API])
-   fi
 fi
 
 TRACKER_MINER_EVOLUTION_INSTALL_DIR=$tracker_miner_evolution_install_dir



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]