configure: Quote the configure args printed in config.log
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 7 Mar 2012 12:16:29 +0000 (12:16 +0000)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Thu, 8 Mar 2012 15:22:12 +0000 (15:22 +0000)
Use the same mechanism we use for printing the configure command
line to config-host.mak to print it to config.log. This fixes a
bug where the config.log version didn't quote arguments with spaces.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
configure

index ed3d907911972f39d4d63b581347d323dd47d274..66a65d9d45a75506a743e41c875ca4163b60409a 100755 (executable)
--- a/configure
+++ b/configure
@@ -22,7 +22,9 @@ rm -f config.log
 
 # Print a helpful header at the top of config.log
 echo "# QEMU configure log $(date)" >> config.log
-echo "# produced by $0 $*" >> config.log
+printf "# Configured with:" >> config.log
+printf " '%s'" "$0" "$@" >> config.log
+echo >> config.log
 echo "#" >> config.log
 
 compile_object() {