added sdl versiondetect and removed sdl warning (it's autodetect now)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@549 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
atmosfear 2001-04-20 17:27:38 +00:00
parent 09b1f74810
commit 26c1bdbe2d
1 changed files with 14 additions and 13 deletions

27
configure vendored
View File

@ -83,7 +83,7 @@ params:
--enable-gl build with OpenGL render support [autodetect] --enable-gl build with OpenGL render support [autodetect]
--enable-dga build with DGA support [autodetect] --enable-dga build with DGA support [autodetect]
--enable-svga build with SVGAlib support [autodetect] --enable-svga build with SVGAlib support [autodetect]
--enable-sdl build with SDL render support [def.: disabled!] --enable-sdl build with SDL render support [autodetect]
--enable-mga build with mga_vid support [autodetect, if /dev/mga_vid --enable-mga build with mga_vid support [autodetect, if /dev/mga_vid
is available] is available]
--enable-xmga build with mga_vid X Window support [autodetect, --enable-xmga build with mga_vid X Window support [autodetect,
@ -397,10 +397,13 @@ $_cc $TMPC -o $TMPO -lvgagl -lvga &> /dev/null && _svga=yes
$_cc $TMPC -o $TMPO -lpthread &> /dev/null || \ $_cc $TMPC -o $TMPO -lpthread &> /dev/null || \
{ echo "Lib pthread not found."; rm -f $TMPC $TMPO ; exit 1; } { echo "Lib pthread not found."; rm -f $TMPC $TMPO ; exit 1; }
# SDL disabled by default (0.11pre22-) because of the compilation problems # Atmosfear: added SDL versioncheck and autodetect; removed warnings.
# this is very buggy & experimental code, use it only if you really need it!! _sdl=no
_have_sdl=no if test `sdl-config --version | sed s/[=[:punct:]=]//g` -gt 116 ; then
$_cc $TMPC -o $TMPO -L/usr/local/lib/ -lSDL -lpthread &> /dev/null && _have_sdl=yes $_cc $TMPC -o $TMPO -L/usr/lib/ -L/usr/local/lib/ -lSDL -lpthread &> /dev/null && _sdl=yes
else
_sdl=outdated
fi
_termcap=no _termcap=no
$_cc $TMPC -o $TMPO -ltermcap &> /dev/null && _termcap=yes $_cc $TMPC -o $TMPO -ltermcap &> /dev/null && _termcap=yes
@ -1062,16 +1065,14 @@ if [ $_mtrr = yes ]; then
echo echo
fi fi
if [ $_sdl = no ]; then if [ $_sdl = outdated ]; then
if [ $_have_sdl = yes ]; then echo "You have libSDL installed, but your version is outdated (earlier then"
echo "You have libSDL installed, but SDL support is disabled by default." echo "v.1.1.7), SDL support has been disabled please update, if you want to"
echo "If you want to compile MPlayer with SDL support, re-run ./configure" echo "use it (libSDL v1.1.8 and v1.2.0 are tested and known to work, recent"
echo "with --enable-sdl. But it's very buggy & experimental code, use it" echo "versions are available from http://www.libsdl.org/)."
echo "only if you really need it! And it works(?) *ONLY* with SDL v1.1.7 !" echo "After updating you need to re-run ./configure and recompile to enable SDL."
echo "(SDL driver is NOT supported, so do NOT report bugs relating to SDL!)"
echo echo
fi fi
fi
if [ $_win32libdirnotify = yes ]; then if [ $_win32libdirnotify = yes ]; then
echo "Missing WIN32 codecs dir at $_win32libdir !" echo "Missing WIN32 codecs dir at $_win32libdir !"