]> git.proxmox.com Git - qemu.git/commitdiff
configure: avoid basename usage message
authorScott Wood <scottwood@freescale.com>
Fri, 8 Apr 2011 19:15:50 +0000 (14:15 -0500)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Sat, 9 Apr 2011 09:57:52 +0000 (10:57 +0100)
basename prints a missing-argument error when sdlconfig is empty
and we're cross-compiling.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
configure

index ae97e11a97ec1446c02355c746d9712dd6fcc9ed..2bb3faa07e6a393872676aad9fdb3129300e84d8 100755 (executable)
--- a/configure
+++ b/configure
@@ -1233,7 +1233,7 @@ else
   fi
   sdl=no
 fi
-if test -n "$cross_prefix" && test "`basename $sdlconfig`" = sdl-config; then
+if test -n "$cross_prefix" && test "$(basename "$sdlconfig")" = sdl-config; then
   echo warning: using "\"$sdlconfig\"" to detect cross-compiled sdl >&2
 fi