changeset 548:c5c2d4e41a4a

added sdl versiondetect and removed sdl warning (it's autodetect now)
author atmosfear
date Fri, 20 Apr 2001 17:27:38 +0000
parents 3e46eab9f782
children c97496b240c1
files configure
diffstat 1 files changed, 14 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Fri Apr 20 16:43:17 2001 +0000
+++ b/configure	Fri Apr 20 17:27:38 2001 +0000
@@ -83,7 +83,7 @@
         --enable-gl             build with OpenGL render support [autodetect]
         --enable-dga            build with DGA 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
                                 is available]
 	--enable-xmga           build with mga_vid X Window support [autodetect,
@@ -397,10 +397,13 @@
 $_cc $TMPC -o $TMPO -lpthread &> /dev/null || \
  { echo "Lib pthread not found."; rm -f $TMPC $TMPO ; exit 1; }
 
-# SDL disabled by default (0.11pre22-) because of the compilation problems
-# this is very buggy & experimental code, use it only if you really need it!!
-_have_sdl=no
-$_cc $TMPC -o $TMPO -L/usr/local/lib/ -lSDL -lpthread &> /dev/null && _have_sdl=yes
+# 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
 
 _termcap=no
 $_cc $TMPC -o $TMPO -ltermcap &> /dev/null && _termcap=yes
@@ -1062,16 +1065,14 @@
  echo
 fi
 
-if [ $_sdl = no ]; then
-if [ $_have_sdl = yes ]; then
- echo "You have libSDL installed, but SDL support is disabled by default."
- echo "If you want to compile MPlayer with SDL support, re-run ./configure"
- echo "with --enable-sdl. But it's very buggy & experimental code, use it"
- echo "only if you really need it! And it works(?) *ONLY* with SDL v1.1.7 !"
- echo "(SDL driver is NOT supported, so do NOT report bugs relating to SDL!)"
+if [ $_sdl = outdated ]; then
+ echo "You have libSDL installed, but your version is outdated (earlier then"
+ echo "v.1.1.7), SDL support has been disabled please update, if you want to"
+ echo "use it (libSDL v1.1.8 and v1.2.0 are tested and known to work, recent"
+ echo "versions are available from http://www.libsdl.org/)."
+ echo "After updating you need to re-run ./configure and recompile to enable SDL."
  echo
 fi
-fi
 
 if [ $_win32libdirnotify = yes ]; then
  echo "Missing WIN32 codecs dir at $_win32libdir !"