seed r713 - in trunk: . examples/turtle
- From: hortont svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r713 - in trunk: . examples/turtle
- Date: Mon, 12 Jan 2009 00:26:55 +0000 (UTC)
Author: hortont
Date: Mon Jan 12 00:26:55 2009
New Revision: 713
URL: http://svn.gnome.org/viewvc/seed?rev=713&view=rev
Log:
Only build turtle if we have Gtk.
Modified:
trunk/configure.ac
trunk/examples/turtle/Makefile.am
Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Mon Jan 12 00:26:55 2009
@@ -77,6 +77,11 @@
AM_CONDITIONAL(BUILD_SQLITE3_MODULE, test "x$have_sqlite3_h" = "xyes")
AC_SUBST(BUILD_SQLITE3_MODULE)
+dnl =========================turtle example====================================
+AC_TRY_CPP([#include <gtk/gtk.h>], want_turtle=yes, want_turtle=no)
+AM_CONDITIONAL(BUILD_TURTLE_EXAMPLE, test "x$want_turtle" = "xyes")
+AC_SUBST(BUILD_TURTLE_EXAMPLE)
+
dnl =========================Install Examples==================================
AC_ARG_ENABLE(examples,
AC_HELP_STRING([--enable-examples],
@@ -185,4 +190,7 @@
SQLite.....................$have_sqlite3_h
Canvas.....................$have_cairo_h
readline...................$have_readline_h
+
+Examples:
+ Turtle.....................$want_turtle
"
Modified: trunk/examples/turtle/Makefile.am
==============================================================================
--- trunk/examples/turtle/Makefile.am (original)
+++ trunk/examples/turtle/Makefile.am Mon Jan 12 00:26:55 2009
@@ -1,3 +1,5 @@
+if BUILD_TURTLE_EXAMPLE
+
AM_CPPFLAGS = \
$(SEED_CFLAGS)
@@ -15,3 +17,5 @@
seed_turtle_LDADD = \
$(SEED_LIBS) \
-lseed
+
+endif
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]