qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] configure echo usage


From: Lev Lvovsky
Subject: [Qemu-devel] configure echo usage
Date: Tue, 16 Dec 2008 23:24:56 -0800

I'm new to the list, so please let me know if this isn't the way to go about this:

/bin/sh on my system (OS X 10.5.x) invokes a shell which has a built- in echo command which doesn't have a "-n" option. Subseqently the config output files don't get comments where they should. The following patch should provide the same functionality.

thanks,
-lev

------


bash-3.2$ svn diff configure
Index: configure
===================================================================
--- configure   (revision 6069)
+++ configure   (working copy)
@@ -1094,8 +1094,7 @@
 test -f $config_h && mv $config_h ${config_h}~

echo "# Automatically generated by configure - do not modify" > $config_mak
-echo -n "# Configured with:" >> $config_mak
-printf " '%s'" "$0" "$@" >> $config_mak
+printf "# Configured with: $0 $@" >> $config_mak
 echo >> $config_mak
echo "/* Automatically generated by configure - do not modify */" > $config_h





reply via email to

[Prev in Thread] Current Thread [Next in Thread]