Added options --disable-tests and --disable-examples for quicker builds for the impat...
authorAndrew Mitchell <ajmitch@ajmitch.dhis.org>
Sat, 2 Jun 2001 13:38:57 +0000 (13:38 +0000)
committerAndrew Mitchell <ajmitch@ajmitch.dhis.org>
Sat, 2 Jun 2001 13:38:57 +0000 (13:38 +0000)
Original commit message from CVS:
Added options --disable-tests and --disable-examples for quicker builds for the impatient...

Makefile.am
configure.base

index e81b6ee..162ce91 100644 (file)
@@ -14,7 +14,19 @@ else
 SUBDIRS_DOCS =
 endif
 
-SUBDIRS = include gst libs plugins tools test tests testsuite examples \
+if BUILD_TESTS
+SUBDIRS_TESTS = test tests testsuite
+else
+SUBDIRS_TESTS =
+endif
+
+if BUILD_EXAMPLES
+SUBDIRS_EXAMPLES = examples
+else
+SUBDIRS_EXAMPLES =
+endif
+
+SUBDIRS = include gst libs plugins tools $(SUBDIRS_TESTS) $(SUBDIRS_EXAMPLES) components\
 $(SUBDIRS_LGG) $(SUBDIRS_DOCS)
 
 # These are all the possible subdirs
index 6d28163..e306803 100644 (file)
@@ -775,7 +775,23 @@ AC_ARG_ENABLE(plugin-docs,
 esac], 
 [BUILD_PLUGIN_DOCS=no]) dnl Default value
 
+AC_ARG_ENABLE(tests,
+[  --disable-tests              disable building test apps],
+[case "${enableval}" in
+  yes) BUILD_TESTS=no ;;
+  no)  BUILD_TESTS=yes ;;
+  *) AC_MSG_ERROR(bad value ${enableval} for --disable-tests) ;;
+esac], 
+[BUILD_TESTS=yes]) dnl Default value
 
+AC_ARG_ENABLE(examples,
+[  --disable-examples           disable building examples],
+[case "${enableval}" in
+  yes) BUILD_EXAMPLES=no ;;
+  no)  BUILD_EXAMPLES=yes ;;
+  *) AC_MSG_ERROR(bad value ${enableval} for --disable-examples) ;;
+esac], 
+[BUILD_EXAMPLES=yes]) dnl Default value
 
 
 dnl ################################################
@@ -919,6 +935,8 @@ AM_CONDITIONAL(HAVE_GNOME,          test "x$HAVE_GNOME" = "xyes")
 AM_CONDITIONAL(HAVE_LIBXV,          test "x$HAVE_LIBXV" = "xyes")
 AM_CONDITIONAL(HAVE_GTK_DOC,        $HAVE_GTK_DOC)
 AM_CONDITIONAL(BUILD_DOCS,          test "x$BUILD_DOCS" = "xyes")
+AM_CONDITIONAL(BUILD_TESTS,         test "x$BUILD_TESTS" ="xyes")
+AM_CONDITIONAL(BUILD_EXAMPLES,      test "x$BUILD_EXAMPLES" ="xyes")
 AM_CONDITIONAL(BUILD_PLUGIN_DOCS,   test "x$BUILD_PLUGIN_DOCS" = "xyes")
 AM_CONDITIONAL(HAVE_DB2HTML,        $HAVE_DB2HTML)
 AM_CONDITIONAL(HAVE_DB2PS,          $HAVE_DB2PS)