Don't bother with mux/ and stream_out/ is sout is disabled
authorRémi Denis-Courmont <rem@videolan.org>
Mon, 28 Apr 2008 20:04:33 +0000 (23:04 +0300)
committerRémi Denis-Courmont <rem@videolan.org>
Mon, 28 Apr 2008 20:04:33 +0000 (23:04 +0300)
configure.ac
modules/Makefile.am

index 1a9514c..b76426d 100644 (file)
@@ -1762,6 +1762,7 @@ then
 
   AC_DEFINE(ENABLE_SOUT, 1, Define if you want the stream output support)
 fi
+AM_CONDITIONAL(ENABLE_SOUT, [test "${enable_sout}" != "no"])
 
 AC_ARG_ENABLE(switcher,
   [  --enable-switcher       Stream-out switcher plugin (default disabled)])
index 9a19d31..4289188 100644 (file)
@@ -11,14 +11,20 @@ SUBDIRS = \
        gui \
        meta_engine \
        misc \
-       mux \
        packetizer \
        services_discovery \
-       stream_out \
        video_chroma \
        video_filter \
        video_output \
        visualization
+EXTRA_SUBDIRS = \
+       mux \
+       stream_out
+if ENABLE_SOUT
+SUBDIRS += mux stream_out
+endif
+
+DIST_SUBDIRS = $(SUBDIRS) $(EXTRA_SUBDIRS)
 
 dist_noinst_SCRIPTS = genmf list.sh
 dist_noinst_DATA = LIST