From 04f46ced8c6e309b561ba315ef7d3a5421bd26fa Mon Sep 17 00:00:00 2001 From: Gildas Bazin Date: Sat, 21 Jan 2006 18:36:32 +0000 Subject: Add --disable-protocols option to configure to disable I/O protocol from libavformat. Also fix build with --disable-muxers and --disable-ffserver. patch by Gildas Bazin < gbazin **@** altern **.** org > Originally committed as revision 4879 to svn://svn.ffmpeg.org/ffmpeg/trunk --- configure | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 7757f60dc5..ccc04416b9 100755 --- a/configure +++ b/configure @@ -74,6 +74,7 @@ echo " --disable-debug disable debugging symbols" echo " --disable-opts disable compiler optimizations" echo " --disable-mpegaudio-hp faster (but less accurate)" echo " MPEG audio decoding [default=no]" +echo " --disable-protocols disable I/O protocols support [default=no]" echo " --disable-ffserver disable ffserver build" echo " --disable-ffplay disable ffplay build" echo " --enable-small optimize for size instead of speed" @@ -220,6 +221,7 @@ mpegaudio_hp="yes" SHFLAGS='-shared -Wl,-soname,$@.$(LIBMAJOR)' netserver="no" need_inet_aton="no" +protocols="yes" ffserver="yes" ffplay="yes" LIBOBJFLAGS="" @@ -551,6 +553,8 @@ for opt do ;; --disable-mpegaudio-hp) mpegaudio_hp="no" ;; + --disable-protocols) protocols="no"; network="no"; ffserver="no" + ;; --disable-ffserver) ffserver="no" ;; --disable-ffplay) ffplay="no" @@ -587,7 +591,7 @@ for opt do ;; --disable-decoders) CODEC_LIST="`echo $CODEC_LIST | sed 's/[-_a-zA-Z0-9]*decoder//g'`" ;; - --disable-muxers) muxers="no" + --disable-muxers) muxers="no"; ffserver="no" ;; --disable-demuxers) demuxers="no" ;; @@ -1731,6 +1735,11 @@ if test "$simpleidct" = "yes" ; then echo "#define SIMPLE_IDCT 1" >> $TMPH fi +if test "$protocols" = "yes" ; then + echo "#define CONFIG_PROTOCOLS 1" >> $TMPH + echo "CONFIG_PROTOCOLS=yes" >> config.mak +fi + if test "$ffserver" = "yes" ; then echo "#define CONFIG_FFSERVER 1" >> $TMPH echo "CONFIG_FFSERVER=yes" >> config.mak -- cgit v1.2.3