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
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 #
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)