[gnome-games] build: Fix clutter-gtk check for clutter 1.2



commit 60eb5a4a853fa366740c9202af9845ed5a9c9dfc
Author: Christian Persch <chpe gnome org>
Date:   Thu Mar 4 19:05:57 2010 +0100

    build: Fix clutter-gtk check for clutter 1.2
    
    The corresponding clutter-gtk API version is 0.90.

 configure.in |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/configure.in b/configure.in
index cbb158f..ca4a22c 100644
--- a/configure.in
+++ b/configure.in
@@ -615,15 +615,16 @@ AM_CONDITIONAL([HAVE_RSVG],[test "$have_rsvg" = "yes"])
 
 if test "$need_clutter" = "yes"; then
   CLUTTER_REQUIRED=1.0.0
-  CLUTTER_GTK_REQUIRED=0.10.2
 
-  PKG_CHECK_MODULES([CLUTTER],[
-    clutter-1.0 >= $CLUTTER_REQUIRED])
+  PKG_CHECK_MODULES([CLUTTER],[clutter-1.0 >= $CLUTTER_REQUIRED])
   AC_SUBST([CLUTTER_CFLAGS])
   AC_SUBST([CLUTTER_LIBS])
 
-  PKG_CHECK_MODULES([CLUTTER_GTK],[
-    clutter-gtk-0.10  >= $CLUTTER_GTK_REQUIRED])
+  PKG_CHECK_EXISTS([clutter-1.0 >= 1.2.0],
+    [CLUTTER_GTK_API_VERSION=0.90 CLUTTER_GTK_REQUIRED=0.90.0],
+    [CLUTTER_GTK_API_VERSION=0.10 CLUTTER_GTK_REQUIRED=0.10.2])
+
+  PKG_CHECK_MODULES([CLUTTER_GTK],[clutter-gtk-$CLUTTER_GTK_API_VERSION  >= $CLUTTER_GTK_REQUIRED])
   AC_SUBST([CLUTTER_GTK_CFLAGS])
   AC_SUBST([CLUTTER_GTK_LIBS])
 fi



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