fixed sdl detection (showed outdated even if not detected)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@559 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
atmosfear 2001-04-21 12:26:29 +00:00
parent 7f9753b103
commit 9614ba33d6
1 changed files with 7 additions and 5 deletions

12
configure vendored
View File

@ -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