mirror of https://github.com/mpv-player/mpv
Fixed sdl detect on systems without sdl installed.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1104 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5708cc5d71
commit
da4ee7e51d
|
@ -527,6 +527,7 @@ $_cc $TMPC -o $TMPO -lpthread > /dev/null 2>&1 || \
|
|||
|
||||
# Atmosfear: added SDL versioncheck and autodetect; removed warnings.
|
||||
_sdl=no
|
||||
if test ! -z "`$_sdlconfig --version 2>/dev/null`" ; then
|
||||
if $_cc `$_sdlconfig --cflags` $TMPC -o $TMPO `$_sdlconfig --libs` > /dev/null 2>&1 ; then
|
||||
_sdlversion=`$_sdlconfig --version | sed 's/[^0-9]//g'`
|
||||
if test "$_sdlversion" -gt 116 ; then
|
||||
|
@ -541,6 +542,7 @@ if $_cc `$_sdlconfig --cflags` $TMPC -o $TMPO `$_sdlconfig --libs` > /dev/null 2
|
|||
_sdl=outdated
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# Atmosfear: added libcss autodetect
|
||||
_css=no
|
||||
|
|
Loading…
Reference in New Issue