[anjuta] bgo#652047 - Support linking against libgda-5.0



commit da51a8d0dd3231396516a30cce1ab21f23b1b95f
Author: Dominique Leuenberger <dimstar opensuse org>
Date:   Sun Aug 14 08:17:17 2011 +1000

    bgo#652047 - Support linking against libgda-5.0

 configure.ac |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 84fa437..f18346d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -35,7 +35,8 @@ GLIB_REQUIRED=2.28.0
 GTK_REQUIRED=3.0.0
 GTHREAD_REQUIRED=2.22.0
 GDK_PIXBUF_REQUIRED=2.0.0
-GDA_REQUIRED=4.2.0
+GDA4_REQUIRED=4.2.0
+GDA5_REQUIRED=4.99.0
 VTE_REQUIRED=0.27.6
 LIBXML_REQUIRED=2.4.23
 GDL_REQUIRED=2.91.4
@@ -161,7 +162,9 @@ PKG_CHECK_MODULES([GDL],
    [gdl-3.0 >= $GDL_REQUIRED])
 
 PKG_CHECK_MODULES([GDA],
-   [libgda-4.0 >= $GDA_REQUIRED])
+   [libgda-5.0 >= $GDA5_REQUIRED],,
+   [PKG_CHECK_MODULES([GDA],
+      [libgda-4.0 >= $GDA4_REQUIRED])])
 	
 PKG_CHECK_MODULES([VTE],
    [vte-2.90 >= $VTE_REQUIRED])
@@ -285,8 +288,10 @@ fi
 
 AM_CONDITIONAL(HAVE_PYTHON, [test x$have_python = xyes])
 
-PKG_CHECK_MODULES(PLUGIN_SYMBOL_DB,
-		[libgda-4.0 >= $GDA_REQUIRED])
+PKG_CHECK_MODULES([PLUGIN_SYMBOL_DB],
+     [libgda-5.0 >= $GDA5_REQUIRED],,
+     [PKG_CHECK_MODULES([PLUGIN_SYMBOL_DB],
+         [libgda-4.0 >= $GDA4_REQUIRED])])
 
 dnl Setup Anjuta Library flags
 dnl --------------------------



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