* [Qemu-devel] [PATCH] configure: Fix bad shell expression for non-Linux hosts
@ 2011-07-29 20:40 Stefan Weil
2011-07-30 7:20 ` Wolfgang Mauerer
2011-08-02 15:31 ` Stefan Hajnoczi
0 siblings, 2 replies; 3+ messages in thread
From: Stefan Weil @ 2011-07-29 20:40 UTC (permalink / raw)
To: QEMU Developers; +Cc: Wolfgang Mauerer, Stefan Hajnoczi
With vhost_net="" (most non-Linux hosts), configure prints an
error message:
test: 2551: =: unexpected operator
Fix this and similar code by adding the missing "".
Cc: Wolfgang Mauerer <wolfgang.mauerer@siemens.com>
Cc: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
---
configure | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/configure b/configure
index b582f5e..001208d 100755
--- a/configure
+++ b/configure
@@ -2521,7 +2521,7 @@ fi
# __sync_fetch_and_and requires at least -march=i486. Many toolchains
# use i686 as default anyway, but for those that don't, an explicit
# specification is necessary
-if test $vhost_net = "yes" && test $cpu = "i386"; then
+if test "$vhost_net" = "yes" && test "$cpu" = "i386"; then
cat > $TMPC << EOF
int sfaa(unsigned *ptr)
{
@@ -2700,7 +2700,7 @@ echo "nss used $smartcard_nss"
echo "usb net redir $usb_redir"
echo "OpenGL support $opengl"
-if test $sdl_too_old = "yes"; then
+if test "$sdl_too_old" = "yes"; then
echo "-> Your SDL version is too old - please upgrade to have SDL support"
fi
@@ -2788,7 +2788,7 @@ fi
if test "$static" = "yes" ; then
echo "CONFIG_STATIC=y" >> $config_host_mak
fi
-if test $profiler = "yes" ; then
+if test "$profiler" = "yes" ; then
echo "CONFIG_PROFILER=y" >> $config_host_mak
fi
if test "$slirp" = "yes" ; then
@@ -3342,7 +3342,7 @@ case "$target_arch2" in
\( "$target_arch2" = "x86_64" -a "$cpu" = "i386" \) -o \
\( "$target_arch2" = "i386" -a "$cpu" = "x86_64" \) \) ; then
echo "CONFIG_KVM=y" >> $config_target_mak
- if test $vhost_net = "yes" ; then
+ if test "$vhost_net" = "yes" ; then
echo "CONFIG_VHOST_NET=y" >> $config_target_mak
fi
fi
--
1.7.2.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] configure: Fix bad shell expression for non-Linux hosts
2011-07-29 20:40 [Qemu-devel] [PATCH] configure: Fix bad shell expression for non-Linux hosts Stefan Weil
@ 2011-07-30 7:20 ` Wolfgang Mauerer
2011-08-02 15:31 ` Stefan Hajnoczi
1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Mauerer @ 2011-07-30 7:20 UTC (permalink / raw)
To: Stefan Weil; +Cc: QEMU Developers, Stefan Hajnoczi
On 29/07/11 22:40, Stefan Weil wrote:
> With vhost_net="" (most non-Linux hosts), configure prints an
> error message:
>
> test: 2551: =: unexpected operator
>
> Fix this and similar code by adding the missing "".
>
> Cc: Wolfgang Mauerer <wolfgang.mauerer@siemens.com>
> Cc: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
> Signed-off-by: Stefan Weil <weil@mail.berlios.de>
good catch, I've tested the code only on Linux hosts.
Cheers, Wolfgang
> ---
> configure | 8 ++++----
> 1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/configure b/configure
> index b582f5e..001208d 100755
> --- a/configure
> +++ b/configure
> @@ -2521,7 +2521,7 @@ fi
> # __sync_fetch_and_and requires at least -march=i486. Many toolchains
> # use i686 as default anyway, but for those that don't, an explicit
> # specification is necessary
> -if test $vhost_net = "yes" && test $cpu = "i386"; then
> +if test "$vhost_net" = "yes" && test "$cpu" = "i386"; then
> cat > $TMPC << EOF
> int sfaa(unsigned *ptr)
> {
> @@ -2700,7 +2700,7 @@ echo "nss used $smartcard_nss"
> echo "usb net redir $usb_redir"
> echo "OpenGL support $opengl"
>
> -if test $sdl_too_old = "yes"; then
> +if test "$sdl_too_old" = "yes"; then
> echo "-> Your SDL version is too old - please upgrade to have SDL support"
> fi
>
> @@ -2788,7 +2788,7 @@ fi
> if test "$static" = "yes" ; then
> echo "CONFIG_STATIC=y" >> $config_host_mak
> fi
> -if test $profiler = "yes" ; then
> +if test "$profiler" = "yes" ; then
> echo "CONFIG_PROFILER=y" >> $config_host_mak
> fi
> if test "$slirp" = "yes" ; then
> @@ -3342,7 +3342,7 @@ case "$target_arch2" in
> \( "$target_arch2" = "x86_64" -a "$cpu" = "i386" \) -o \
> \( "$target_arch2" = "i386" -a "$cpu" = "x86_64" \) \) ; then
> echo "CONFIG_KVM=y" >> $config_target_mak
> - if test $vhost_net = "yes" ; then
> + if test "$vhost_net" = "yes" ; then
> echo "CONFIG_VHOST_NET=y" >> $config_target_mak
> fi
> fi
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] configure: Fix bad shell expression for non-Linux hosts
2011-07-29 20:40 [Qemu-devel] [PATCH] configure: Fix bad shell expression for non-Linux hosts Stefan Weil
2011-07-30 7:20 ` Wolfgang Mauerer
@ 2011-08-02 15:31 ` Stefan Hajnoczi
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2011-08-02 15:31 UTC (permalink / raw)
To: Stefan Weil; +Cc: Wolfgang Mauerer, QEMU Developers
On Fri, Jul 29, 2011 at 10:40:45PM +0200, Stefan Weil wrote:
> With vhost_net="" (most non-Linux hosts), configure prints an
> error message:
>
> test: 2551: =: unexpected operator
>
> Fix this and similar code by adding the missing "".
>
> Cc: Wolfgang Mauerer <wolfgang.mauerer@siemens.com>
> Cc: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
> Signed-off-by: Stefan Weil <weil@mail.berlios.de>
> ---
> configure | 8 ++++----
> 1 files changed, 4 insertions(+), 4 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-08-02 15:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-29 20:40 [Qemu-devel] [PATCH] configure: Fix bad shell expression for non-Linux hosts Stefan Weil
2011-07-30 7:20 ` Wolfgang Mauerer
2011-08-02 15:31 ` Stefan Hajnoczi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).