提交 a0dfd8a4 编写于 作者: L Loïc Minier 提交者: Blue Swirl

Check for sdl-config before calling it

Check whether sdl-config is available before calling it, otherwise
./configure triggers a warning:
    ./configure: 957: sdl-config: not found

If neither the .pc file not sdl-config are present, disable SDL support.
Signed-off-by: NLoïc Minier <lool@dooz.org>
Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 82617d7c
......@@ -997,9 +997,14 @@ fi
if $pkgconfig sdl --modversion >/dev/null 2>&1; then
sdlconfig="$pkgconfig sdl"
_sdlversion=`$sdlconfig --modversion 2>/dev/null | sed 's/[^0-9]//g'`
else
elif which sdl-config >/dev/null 2>&1; then
sdlconfig='sdl-config'
_sdlversion=`$sdlconfig --version | sed 's/[^0-9]//g'`
else
if test "$sdl" = "yes" ; then
feature_not_found "sdl"
fi
sdl=no
fi
sdl_too_old=no
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册