gnome-games r8157 - trunk



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

Log:
Add checking for clutter to configure.in

Conflicts:

	configure.in

Modified:
   trunk/configure.in

Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in	(original)
+++ trunk/configure.in	Tue Oct 21 19:46:33 2008
@@ -441,6 +441,30 @@
 
 AM_CONDITIONAL([HAVE_RSVG],[test "$have_rsvg" = "yes"])
 
+# Check for libclutter
+
+have_clutter=no
+if test "$need_clutter" = "yes"; then
+  PKG_CHECK_MODULES([CLUTTER],[
+    clutter-0.8
+    clutter-gtk-0.8
+    clutter-cairo-0.8],
+    [have_clutter=yes],[have_clutter=no])
+fi
+
+if test "$need_clutter" = "yes" -a "$have_clutter" = "no"; then
+  AC_MSG_ERROR([Clutter and Clutter-GTK are required for some games but are missing])
+fi
+
+if test "$have_clutter" = "yes"; then
+  AC_SUBST(CLUTTER_CFLAGS)
+  AC_SUBST(CLUTTER_LIBS)
+  AC_SUBST(CLUTTER_GTK_CFLAGS)
+  AC_SUBST(CLUTTER_GTK_LIBS)
+  
+  AM_CONDITIONAL([HAVE_CLUTTER],[test "$have_clutter" = "yes"])
+fi
+
 # Check for PyGTK
 
 if test "$have_python" = "yes"; then



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