54 lines
1.4 KiB
Diff
54 lines
1.4 KiB
Diff
Interactive Tests.
|
|
|
|
http://bugzilla.o-hand.com/show_bug.cgi?id=1618
|
|
|
|
--
|
|
--- configure.ac
|
|
+++ configure.ac
|
|
@@ -718,6 +718,18 @@
|
|
|
|
AM_CONDITIONAL(ENABLE_MANUAL, [test "x$enable_manual" = "xyes"])
|
|
|
|
+dnl = tests ================================================================
|
|
+AC_ARG_ENABLE(tests,
|
|
+ AS_HELP_STRING([--enable-tests],[Enable building of tests and examples]),
|
|
+ [case "${enableval}" in
|
|
+ yes) ENABLE_TESTS=yes ;;
|
|
+ no) ENABLE_TESTS=no ;;
|
|
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-tests) ;;
|
|
+ esac],
|
|
+ [ENABLE_TESTS=no])
|
|
+
|
|
+AM_CONDITIONAL([ENABLE_TESTS], [test "x$ENABLE_TESTS" = "xyes"])
|
|
+
|
|
dnl === I18N ==================================================================
|
|
|
|
GETTEXT_PACKAGE="clutter-$CLUTTER_API_VERSION"
|
|
@@ -803,6 +815,7 @@
|
|
echo " Compiler flags: ${CPPFLAGS} ${MAINTAINER_CFLAGS}"
|
|
echo " Build API documentation: ${enable_gtk_doc}"
|
|
echo " Build manual documentation: ${enable_manual}"
|
|
+echo " Enable tests: ${enable_tests}"
|
|
echo " Build introspection data: ${enable_introspection}"
|
|
echo ""
|
|
|
|
--- Makefile.am
|
|
+++ Makefile.am
|
|
@@ -1,11 +1,15 @@
|
|
NULL =
|
|
|
|
-SUBDIRS = build clutter tests po
|
|
+SUBDIRS = build clutter po
|
|
|
|
if BUILD_GTK_DOC
|
|
SUBDIRS += doc
|
|
endif
|
|
|
|
+if ENABLE_TESTS
|
|
+SUBDIRS += tests
|
|
+endif
|
|
+
|
|
DIST_SUBDIRS = build clutter tests doc po
|
|
|
|
ACLOCAL_AMFLAGS = -I build/autotools
|