All of
 help / color / mirror / Atom feed
From: Wei Liu <>
To: Xen Development List <>
Cc:, Roger Pau Monne <>,
	Ian Jackson <>, Wei Liu <>,
	Bertrand Marquis <>
Subject: [[PATCH v2 for-4.14]] m4: use test instead of []
Date: Tue,  2 Jun 2020 09:01:38 +0000	[thread overview]
Message-ID: <> (raw)

It is reported that [] was removed by autoconf, which caused the
following error:

  ./configure: line 4681: -z: command not found

Switch to test. That's what is used throughout our configure scripts.
Also put the variable expansion in quotes.

Signed-off-by: Wei Liu <>
Reported-by: Bertrand Marquis <>
Fixes: 8a6b1665d987 ("configure: also add EXTRA_PREFIX to {CPP/LD}FLAGS")
Signed-off-by: Wei Liu <>
v2: Address Ian's comment.

Run before committing.

Cc: Bertrand Marquis <>
Cc: Roger Pau Monne <>
 m4/set_cflags_ldflags.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/m4/set_cflags_ldflags.m4 b/m4/set_cflags_ldflags.m4
index 08f5c983cc63..23706e256b42 100644
--- a/m4/set_cflags_ldflags.m4
+++ b/m4/set_cflags_ldflags.m4
@@ -15,7 +15,7 @@ for ldflag in $APPEND_LIB
-if [ ! -z $EXTRA_PREFIX ]; then
+if test ! -z "$EXTRA_PREFIX" ; then

             reply	other threads:[~2020-06-02  9:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-02  9:01 Wei Liu [this message]
2020-06-02  9:14 ` [[PATCH v2 for-4.14]] m4: use test instead of [] Paul Durrant
2020-06-02  9:59 ` Roger Pau Monné
2020-06-02 16:47   ` Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.