summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-03-16 21:22:54 +0000
committerMåns Rullgård <mans@mansr.com>2010-03-16 21:22:54 +0000
commite0e335a023e1afe3b8cfde5ff56b5473db58f7b0 (patch)
tree4ed5262653f72985f2f5ba47894a59852cf478e0
parent2f821b036c7689c1e1bc6a8da96a28e8772f7668 (diff)
configure: do not use $_
Both bash and ksh abuse this variable even in POSIX mode, leading to unpleasant surprises. Originally committed as revision 22568 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure b/configure
index e12f85862a..c1ea817ca3 100755
--- a/configure
+++ b/configure
@@ -317,7 +317,7 @@ filter(){
map(){
m=$1
shift
- for _; do eval $m; done
+ for v; do eval $m; done
}
set_all(){
@@ -1592,7 +1592,7 @@ for opt do
--enable-debug=*) debuglevel="$optval"
;;
--disable-everything)
- map 'eval disable \${$(toupper ${_%s})_LIST}' $COMPONENT_LIST
+ map 'eval disable \${$(toupper ${v%s})_LIST}' $COMPONENT_LIST
;;
--enable-*=*|--disable-*=*)
eval $(echo "${opt%%=*}" | sed 's/--/action=/;s/-/ thing=/')
@@ -2955,8 +2955,8 @@ if enabled source_path_used; then
libpostproc/Makefile
libswscale/Makefile
"
- map 'mkdir -p $_' $DIRS;
- map '$ln_s "$source_path/$_" $_' $FILES
+ map 'mkdir -p $v' $DIRS;
+ map '$ln_s "$source_path/$v" $v' $FILES
fi
enabled stripping || strip="echo skipping strip"