aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2007-02-14 00:12:27 +0000
committerMåns Rullgård <mans@mansr.com>2007-02-14 00:12:27 +0000
commitac7030a43790ac5354341a42cd9bfe823c84a28a (patch)
treeabc5fc60848da809079c296b0f4a70acf3e98180
parentdd9bfb4666a6d3a8245066c9dfb10d9336c14c27 (diff)
downloadffmpeg-ac7030a43790ac5354341a42cd9bfe823c84a28a.tar.gz
combine handling of --enable/disable-encoder/decoder/muxer/demuxer/parser
Originally committed as revision 7971 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure27
1 files changed, 7 insertions, 20 deletions
diff --git a/configure b/configure
index ca75a430c3..133d577d11 100755
--- a/configure
+++ b/configure
@@ -1044,36 +1044,23 @@ for opt do
;;
--disable-strip) dostrip="no"
;;
- --enable-encoder=*) enable ${optval}_encoder
- ;;
- --enable-decoder=*) enable ${optval}_decoder
- ;;
- --disable-encoder=*) disable ${optval}_encoder
- ;;
- --disable-decoder=*) disable ${optval}_decoder
- ;;
--disable-encoders) disable $ENCODER_LIST
;;
--disable-decoders) disable $DECODER_LIST
;;
- --enable-muxer=*) enable ${optval}_muxer
- ;;
- --disable-muxer=*) disable ${optval}_muxer
- ;;
--disable-muxers) disable $MUXER_LIST
;;
- --enable-demuxer=*) enable ${optval}_demuxer
- ;;
- --disable-demuxer=*) disable ${optval}_demuxer
- ;;
--disable-demuxers) disable $DEMUXER_LIST
;;
- --enable-parser=*) enable ${optval}_parser
- ;;
- --disable-parser=*) disable ${optval}_parser
- ;;
--disable-parsers) disable $PARSER_LIST
;;
+ --enable-*=*|--disable-*=*)
+ eval `echo "$opt" | sed 's/=/-/;s/--/action=/;s/-/ thing=/;s/-/ name=/'`
+ case "$thing" in
+ encoder|decoder|muxer|demuxer|parser) $action ${optval}_${thing} ;;
+ *) die_unknown "$opt" ;;
+ esac
+ ;;
--enable-?*|--disable-?*)
eval `echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g'`
echo "$CMDLINE_SELECT" | grep -q "^ *$option\$" || die_unknown $opt