configure.sh: only execute toupper when necessary

speeds up windows configure by ~40%

Change-Id: Ie3138b8fe39ff4c901c35c5d689c1ed12da34866
This commit is contained in:
James Zern 2014-05-19 11:36:12 -07:00
parent 0249531bb9
commit e5b8bd020a

View File

@ -1284,8 +1284,8 @@ print_config_mk() {
local makefile=$2
shift 2
for cfg; do
upname="`toupper $cfg`"
if enabled $cfg; then
upname="`toupper $cfg`"
echo "${prefix}_${upname}=yes" >> $makefile
fi
done