] m4: use test instead of []
authorWei Liu <wl@xen.org>
Tue, 2 Jun 2020 09:01:38 +0000 (10:01 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Tue, 2 Jun 2020 16:46:32 +0000 (17:46 +0100)
commite181db8ba4e0797b8f9b55996adfa71ffb5b4081
treed8795067dc00e6b21ceb3361b4ff3731e69f5ae3
parentdde6174ada5280cd9a6396e3b12606360a0d29a3
] m4: use test instead of []

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 <wl@xen.org>
Reported-by: Bertrand Marquis <Bertrand.Marquis@arm.com>
Fixes: 8a6b1665d987 ("configure: also add EXTRA_PREFIX to {CPP/LD}FLAGS")
Signed-off-by: Wei Liu <wl@xen.org>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Release-acked-by: Paul Durrant <paul@xen.org>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
m4/set_cflags_ldflags.m4