gnome-games r8128 - trunk



Author: jclinton
Date: Tue Oct 21 19:42:59 2008
New Revision: 8128
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8128&view=rev

Log:
Require Clutter in the configure script when building Aisleriot

Modified:
   trunk/configure.in

Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in	(original)
+++ trunk/configure.in	Tue Oct 21 19:42:59 2008
@@ -110,6 +110,7 @@
 need_guile=no
 need_gnome=no
 need_python=no
+need_clutter=no
 want_gstreamer=no
 allow_gnuchess=no
 allow_smclient=no
@@ -159,6 +160,10 @@
     aisleriot|glines|gnobots2|gnomine|gnotravex|gnotski|iagno) allow_smclient=yes ;;
     *) ;;
   esac
+  case $game in
+    aisleriot) need_clutter=yes ;;
+    *) ;;
+  esac
 done
 
 # Locate various programs
@@ -694,6 +699,23 @@
 AM_CONDITIONAL([HAVE_GUILE],[test "$have_guile" = "yes"])
 AM_CONDITIONAL([HAVE_GUILE_1_8],[test "$have_guile_1_8" = "yes"])
 
+have_clutter=no
+have_clutter_gtk=no
+if test "$need_clutter" = "yes"; then
+  PKG_CHECK_MODULES(CLUTTER, "clutter-0.8", [have_clutter=yes], [have_clutter=no])
+  PKG_CHECK_MODULES(CLUTTER_GTK, "clutter-gtk-0.8", [have_clutter_gtk=yes], [have_clutter_gtk=no])
+
+  if test "x$have_clutter" = "xno" \
+     -o "x$have_clutter_gtk" = "xno"; then
+     AC_MSG_ERROR([Clutter and Clutter-GTK are required for some games but are missing])
+  fi;
+
+  AC_SUBST(CLUTTER_CFLAGS)
+  AC_SUBST(CLUTTER_LIBS)
+  AC_SUBST(CLUTTER_GTK_CFLAGS)
+  AC_SUBST(CLUTTER_GTK_LIBS)
+fi;
+
 # Possibly disable the included gnuchess
 
 if test "$allow_gnuchess" = "yes"; then



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