[gnome-games] build: Fix gdk target check for gtk3



commit 0e321fc1c83ba9d419d5e749c8b9e11e88412e5f
Author: Christian Persch <chpe gnome org>
Date:   Sun Jan 9 21:42:12 2011 +0100

    build: Fix gdk target check for gtk3
    
    This fixes the smclient being disabled because the gdk target
    couldn't be recognised.

 configure.in |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/configure.in b/configure.in
index 595efeb..f4fddda 100644
--- a/configure.in
+++ b/configure.in
@@ -754,7 +754,21 @@ AM_CONDITIONAL([ENABLE_SOUND],[test "$enable_sound" = "yes"])
 
 SMCLIENT_PKGS=
 if test "$allow_smclient" = "yes"; then
-  GDK_TARGET="$($PKG_CONFIG --variable target gdk-$GTK_API_VERSION)"
+  AC_MSG_CHECKING([for GDK target])
+  case "$with_gtk" in
+    2.0) GDK_TARGET="$($PKG_CONFIG --variable target gdk-$GTK_API_VERSION)" ;;
+    3.0) for target in $($PKG_CONFIG --variable targets gdk-$GTK_API_VERSION); do
+           GDK_TARGET="$target"
+           break
+         done
+         ;;
+  esac
+  AC_MSG_RESULT([$GDK_TARGET])
+
+  case "$GDK_TARGET" in
+    x11|win32|quartz) ;;
+    *) AC_MSG_ERROR([unknown GDK target])
+  esac
 
   AC_MSG_CHECKING([which smclient backend to use])
   AC_ARG_WITH([smclient],



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