configure: add --disable-examples switch
authorSebastian Rasmussen <sebras@hotmail.com>
Wed, 17 Dec 2014 19:02:05 +0000 (20:02 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 18 Dec 2014 09:36:51 +0000 (09:36 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=741678

Makefile.am
configure.ac

index 43483ed..9624f7e 100644 (file)
@@ -1,14 +1,20 @@
 DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
 
+if BUILD_EXAMPLES
+SUBDIRS_EXAMPLES = examples
+else
+SUBDIRS_EXAMPLES =
+endif
+
 SUBDIRS =              \
        gst \
        common \
        pkgconfig \
        docs \
-       examples \
+       $(SUBDIRS_EXAMPLES)
        tests
 
-DIST_SUBDIRS = $(SUBDIRS)
+DIST_SUBDIRS = gst common pkgconfig docs examples tests
 
 EXTRA_DIST = \
        ChangeLog autogen.sh depcomp \
index 4d804ba..4ac95c1 100644 (file)
@@ -87,6 +87,8 @@ AG_GST_ARG_WITH_PKG_CONFIG_PATH
 AG_GST_ARG_WITH_PACKAGE_NAME
 AG_GST_ARG_WITH_PACKAGE_ORIGIN
 
+AG_GST_ARG_EXAMPLES
+
 AG_GST_PKG_CONFIG_PATH
 
 AG_GST_SET_PACKAGE_RELEASE_DATETIME_WITH_NANO([$PACKAGE_VERSION_NANO],