(svn r7961) [Configure] -Fix: "" in config params didn't survive --reconfig. They should now.

This commit is contained in:
truelight 2007-01-07 13:13:01 +00:00
parent c6da059f7b
commit 025d8dd224
2 changed files with 5 additions and 4 deletions

View File

@ -257,10 +257,10 @@ save_params() {
configure="$0 --ignore-extra-parameters" configure="$0 --ignore-extra-parameters"
for p in $save_params_array; do for p in $save_params_array; do
eval "v=\$$p" eval "v=\"\$$p\""
p=`echo "$p" | sed 's/_/-/g;s/\n//g;'` p=`echo "$p" | sed 's/_/-/g;s/\n//g;'`
# Only save those params that aren't empty # Only save those params that aren't empty
configure="$configure --$p=$v" configure="$configure --$p=\"$v\""
done done
echo "$configure" >> $config_log echo "$configure" >> $config_log

5
configure vendored
View File

@ -25,8 +25,9 @@ if [ "$1" = "--reconfig" ]; then
exit 1 exit 1
fi fi
# Make sure we don't lock config.cache # Make sure we don't lock config.cache
configure=`cat config.cache` cat config.cache > cache.tmp
$configure sh cache.tmp
rm -f cache.tmp
exit $? exit $?
fi fi