diff configure @ 558:30d9f61e9c0b

fixed sdl detection (showed outdated even if not detected)
author atmosfear
date Sat, 21 Apr 2001 12:26:29 +0000
parents c5c2d4e41a4a
children e1b8c0b3ec35
line wrap: on
line diff
--- a/configure	Sat Apr 21 02:24:36 2001 +0000
+++ b/configure	Sat Apr 21 12:26:29 2001 +0000
@@ -399,11 +399,13 @@
 
 # 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