summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authoratmosfear <atmosfear@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-04-21 12:26:29 +0000
committeratmosfear <atmosfear@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-04-21 12:26:29 +0000
commit9614ba33d6f15d162fe9eb6ec550894f2cca5bfd (patch)
tree88b5e82dce385be7abeee0f4c27f51c54068d05f /configure
parent7f9753b1031700bee194fb5be045a13016a1e4e3 (diff)
downloadmpv-9614ba33d6f15d162fe9eb6ec550894f2cca5bfd.tar.bz2
mpv-9614ba33d6f15d162fe9eb6ec550894f2cca5bfd.tar.xz
fixed sdl detection (showed outdated even if not detected)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@559 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 7 insertions, 5 deletions
diff --git a/configure b/configure
index 661e147f0d..4bf66fc149 100755
--- a/configure
+++ b/configure
@@ -399,11 +399,13 @@ $_cc $TMPC -o $TMPO -lpthread &> /dev/null || \
# Atmosfear: added SDL versioncheck and autodetect; removed warnings.
_sdl=no
-if test `sdl-config --version | sed s/[=[:punct:]=]//g` -gt 116 ; then
- $_cc $TMPC -o $TMPO -L/usr/lib/ -L/usr/local/lib/ -lSDL -lpthread &> /dev/null && _sdl=yes
-else
- _sdl=outdated
-fi
+if $_cc $TMPC -o $TMPO -L/usr/lib/ -L/usr/local/lib/ -lSDL -lpthread &> /dev/null ; then
+ if test `sdl-config --version | sed s/[=[:punct:]=]//g` -gt 116 ; then
+ _sdl=yes
+ else
+ _sdl=outdated
+ fi
+fi
_termcap=no
$_cc $TMPC -o $TMPO -ltermcap &> /dev/null && _termcap=yes