]> Git Repo - qemu.git/commit
configure: Fix shell syntax to placate OpenBSD's pdksh
authorPeter Maydell <[email protected]>
Mon, 14 Dec 2015 15:02:36 +0000 (15:02 +0000)
committerPeter Maydell <[email protected]>
Fri, 18 Dec 2015 13:32:49 +0000 (13:32 +0000)
commit18f49881cf8359e89396aac12f5d3cf3f8a632ba
treebafdf27aa19fa0810e6124f766a838ec4823fc6c
parent67a708406221f476c0f8fa60c192c186150c5185
configure: Fix shell syntax to placate OpenBSD's pdksh

Unfortunately the OpenBSD pdksh does not like brackets inside
the right part of a ${variable+word} parameter expansion:

  $ echo "${a+($b)}"
  ksh: ${a+($b)}": bad substitution

though both bash and dash accept them. In any case this line
was causing odd output in the case where nettle is not present:
  nettle    no ()

(because if nettle is not present then $nettle will be "no",
not a null string or unset).

Rewrite it to just use an if.

This bug was originally introduced in becaeb726 and was present
in the 2.4.0 release.

Fixes: https://bugs.launchpad.net/qemu/+bug/1525682
Reported-by: Dmitrij D. Czarkoff
Cc: [email protected]
Signed-off-by: Peter Maydell <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Message-id: 1450105357[email protected]
configure
This page took 0.02408 seconds and 4 git commands to generate.