提交 29e5bada 编写于 作者: S Scott Wood 提交者: Stefan Hajnoczi

configure: avoid basename usage message

basename prints a missing-argument error when sdlconfig is empty
and we're cross-compiling.
Signed-off-by: NScott Wood <scottwood@freescale.com>
Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
上级 72b310e9
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册