Commit 14f1a2a0 authored by mru's avatar mru

configure: do not use $_

Both bash and ksh abuse this variable even in POSIX mode, leading
to unpleasant surprises.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22568 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9aa6235c
...@@ -317,7 +317,7 @@ filter(){ ...@@ -317,7 +317,7 @@ filter(){
map(){ map(){
m=$1 m=$1
shift shift
for _; do eval $m; done for v; do eval $m; done
} }
set_all(){ set_all(){
...@@ -1592,7 +1592,7 @@ for opt do ...@@ -1592,7 +1592,7 @@ for opt do
--enable-debug=*) debuglevel="$optval" --enable-debug=*) debuglevel="$optval"
;; ;;
--disable-everything) --disable-everything)
map 'eval disable \${$(toupper ${_%s})_LIST}' $COMPONENT_LIST map 'eval disable \${$(toupper ${v%s})_LIST}' $COMPONENT_LIST
;; ;;
--enable-*=*|--disable-*=*) --enable-*=*|--disable-*=*)
eval $(echo "${opt%%=*}" | sed 's/--/action=/;s/-/ thing=/') eval $(echo "${opt%%=*}" | sed 's/--/action=/;s/-/ thing=/')
...@@ -2955,8 +2955,8 @@ if enabled source_path_used; then ...@@ -2955,8 +2955,8 @@ if enabled source_path_used; then
libpostproc/Makefile libpostproc/Makefile
libswscale/Makefile libswscale/Makefile
" "
map 'mkdir -p $_' $DIRS; map 'mkdir -p $v' $DIRS;
map '$ln_s "$source_path/$_" $_' $FILES map '$ln_s "$source_path/$v" $v' $FILES
fi fi
enabled stripping || strip="echo skipping strip" enabled stripping || strip="echo skipping strip"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment