From dc440b47d36169ad9e89a360922eca211be23ec3 Mon Sep 17 00:00:00 2001 From: diego Date: Wed, 17 Mar 2010 13:34:33 +0000 Subject: [PATCH] Make ff_config_enable work with lowercase values. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30920 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 67545f2df2..93576601fc 100755 --- a/configure +++ b/configure @@ -8766,10 +8766,12 @@ EOF ############################################################################# ff_config_enable () { +list=$(echo $1 | tr '[a-z]' '[A-Z]') +item=$(echo $2 | tr '[a-z]' '[A-Z]') _nprefix=$3; test -z "$_nprefix" && _nprefix='CONFIG' -for part in $1; do - if $(echo $2 | grep -q -E "(^| )$part($| )"); then +for part in $list; do + if $(echo $item | grep -q -E "(^| )$part($| )"); then echo "#define ${_nprefix}_$part 1" else echo "#define ${_nprefix}_$part 0"