summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2010-01-28 21:15:18 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-01-28 21:15:18 +0000
commita0dfd8a4152ff33f98f4a94218a25c960d301114 (patch)
treec2852e05399ab2c6ab447e1cddcaa4bccfa81a1c /configure
parent82617d7ce3bdeef6fa32f71f9976b2f4bf3589e9 (diff)
downloadhqemu-a0dfd8a4152ff33f98f4a94218a25c960d301114.zip
hqemu-a0dfd8a4152ff33f98f4a94218a25c960d301114.tar.gz
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: Loïc Minier <lool@dooz.org> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure b/configure
index 1f6de41..27ab724 100755
--- a/configure
+++ b/configure
@@ -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
OpenPOWER on IntegriCloud