From 6eefb6fd5b7ae19c9da0ba52ba9fdd492180c222 Mon Sep 17 00:00:00 2001 From: Måns Rullgård Date: Wed, 5 Jul 2006 19:31:48 +0000 Subject: set CONFIG_ENCODERS/CONFIG_DECODERS only if any encoders/decoders are enabled Originally committed as revision 5629 to svn://svn.ffmpeg.org/ffmpeg/trunk --- configure | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'configure') diff --git a/configure b/configure index ee7ce4edaf..e315b5f6ee 100755 --- a/configure +++ b/configure @@ -1732,12 +1732,16 @@ fi echo "EXTRALIBS=$extralibs" >> config.mak # If you do not want to use encoders, disable them. -echo "#define CONFIG_ENCODERS 1" >> $TMPH -echo "CONFIG_ENCODERS=yes" >> config.mak +if echo "$CODEC_LIST" | grep -q encoder; then + echo "#define CONFIG_ENCODERS 1" >> $TMPH + echo "CONFIG_ENCODERS=yes" >> config.mak +fi # If you do not want to use decoders, disable them. -echo "#define CONFIG_DECODERS 1" >> $TMPH -echo "CONFIG_DECODERS=yes" >> config.mak +if echo "$CODEC_LIST" | grep -q decoder; then + echo "#define CONFIG_DECODERS 1" >> $TMPH + echo "CONFIG_DECODERS=yes" >> config.mak +fi # muxers if test "$muxers" = "yes" ; then -- cgit v1.2.3