(svn r7961) [Configure] -Fix: "" in config params didn't survive --reconfig. They should now.
authortruelight
Sun, 07 Jan 2007 13:13:01 +0000
changeset 5811 cb94a44f0e29
parent 5810 7959ee2ab55a
child 5812 cfb97d0d3ffd
(svn r7961) [Configure] -Fix: "" in config params didn't survive --reconfig. They should now.
config.lib
configure
--- a/config.lib	Sun Jan 07 13:00:56 2007 +0000
+++ b/config.lib	Sun Jan 07 13:13:01 2007 +0000
@@ -257,10 +257,10 @@
 
 	configure="$0 --ignore-extra-parameters"
 	for p in $save_params_array; do
-		eval "v=\$$p"
+		eval "v=\"\$$p\""
 		p=`echo "$p" | sed 's/_/-/g;s/\n//g;'`
 		# Only save those params that aren't empty
-		configure="$configure --$p=$v"
+		configure="$configure --$p=\"$v\""
 	done
 
 	echo "$configure" >> $config_log
--- a/configure	Sun Jan 07 13:00:56 2007 +0000
+++ b/configure	Sun Jan 07 13:13:01 2007 +0000
@@ -25,8 +25,9 @@
 		exit 1
 	fi
 	# Make sure we don't lock config.cache
-	configure=`cat config.cache`
-	$configure
+	cat config.cache > cache.tmp
+	sh cache.tmp
+	rm -f cache.tmp
 	exit $?
 fi