added configure option to turn on building of docs, else they aren't built
authorErik Walthinsen <omega@temple-baptist.org>
Wed, 7 Feb 2001 22:23:54 +0000 (22:23 +0000)
committerErik Walthinsen <omega@temple-baptist.org>
Wed, 7 Feb 2001 22:23:54 +0000 (22:23 +0000)
Original commit message from CVS:
added configure option to turn on building of docs, else they aren't built

Makefile.am
configure.in

index 888cc6b..447e151 100644 (file)
@@ -8,10 +8,17 @@ else
 SUBDIRS_LGG =
 endif
 
-SUBDIRS = include gst libs plugins tools test tests examples $(SUBDIRS_LGG) docs
+if BUILD_DOCS
+SUBDIRS_DOCS = docs
+else
+SUBDIRS_DOCS =
+endif
+
+SUBDIRS = include gst libs plugins tools test tests examples \
+$(SUBDIRS_LGG) $(SUBDIRS_DOCS)
 
 # These are all the possible subdirs
-DIST_SUBDIRS = intl po include gst libs plugins tools test tests examples gstplay editor docs
+DIST_SUBDIRS = include gst libs plugins tools test tests examples gstplay editor docs
 
 
 bin_SCRIPTS = gstreamer-config
index 4823941..ab19030 100644 (file)
@@ -487,6 +487,16 @@ AC_ARG_WITH(win32_libdir,
 esac],
 [:]) dnl Default value
 
+AC_ARG_ENABLE(docs-build,
+[  --enable-docs-build          enable the building of the documentation],
+[case "${enableval}" in
+  yes) BUILD_DOCS=yes ;;
+  no)  BUILD_DOCS=no ;;
+  *) AC_MSG_ERROR(bad value ${enableval} for --enable-docs-build) ;;
+esac], 
+[BUILD_DOCS=no]) dnl Default value
+
+
 
 dnl ################################################
 dnl # Set defines according to variables set above #
@@ -564,6 +574,7 @@ AM_CONDITIONAL(HAVE_LIBGLADE_GNOME, test "x$HAVE_LIBGLADE_GNOME" = "xyes")
 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(HAVE_DB2HTML,        $HAVE_DB2HTML)
 AM_CONDITIONAL(HAVE_DB2PS,          $HAVE_DB2PS)
 AM_CONDITIONAL(HAVE_PS2PDF,         $HAVE_PS2PDF)