simplify ever so slightly
authorMåns Rullgård <mans@mansr.com>
Tue, 13 Feb 2007 23:49:50 +0000 (23:49 +0000)
committerMåns Rullgård <mans@mansr.com>
Tue, 13 Feb 2007 23:49:50 +0000 (23:49 +0000)
Originally committed as revision 7970 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 223dcca..ca75a43 100755 (executable)
--- a/configure
+++ b/configure
@@ -1075,7 +1075,7 @@ for opt do
   --disable-parsers) disable $PARSER_LIST
   ;;
   --enable-?*|--disable-?*)
-  eval `echo "${opt#-}" | sed 's/-/action=/;s/-/ option=/;s/-/_/g'`
+  eval `echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g'`
   echo "$CMDLINE_SELECT" | grep -q "^ *$option\$" || die_unknown $opt
   $action $option
   ;;