[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] configure: replace \n with space in optarg
From: |
Hu Tao |
Subject: |
[Qemu-devel] [PATCH] configure: replace \n with space in optarg |
Date: |
Mon, 4 Aug 2014 15:12:55 +0800 |
When optarg happens to contain \n like:
../configure --target-list='i386-softmmu
x86_64-softmmu'
make will fail with message:
config-host.mak:45: *** missing separator. Stop.
This patch fix this problem by replacing \n with space in optarg.
Signed-off-by: Hu Tao <address@hidden>
---
configure | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index f7685b5..0ee9de1 100755
--- a/configure
+++ b/configure
@@ -338,7 +338,7 @@ numa=""
# parse CC options first
for opt do
- optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'`
+ optarg=`expr "x$opt" : 'x[^=]*=\(.*\)' | tr '\n' ' '`
case "$opt" in
--cross-prefix=*) cross_prefix="$optarg"
;;
@@ -722,7 +722,7 @@ fi
werror=""
for opt do
- optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'`
+ optarg=`expr "x$opt" : 'x[^=]*=\(.*\)' | tr '\n' ' '`
case "$opt" in
--help|-h) show_help=yes
;;
--
1.9.3
- [Qemu-devel] [PATCH] configure: replace \n with space in optarg,
Hu Tao <=