[Gridflow-cvs] [svn] commit: r6727 - /trunk/configure

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Sat Mar 5 21:36:53 EST 2011


Author: matju
Date: Sat Mar  5 21:36:53 2011
New Revision: 6727

Log:
use sdl-config --libs

Modified:
    trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Sat Mar  5 21:36:53 2011
@@ -258,15 +258,8 @@
 		#include <sys/ipc.h>
 		int main () {return XShmPutImage==0;}"}}
 Feature.add(:sdl,"Simple Directmedia Layer (experimental support)") {
-	uses_so {
-		a=["-lSDL","-lpthread"]
-		a=["-lSDL","-lpthreadGC2"] if WIN
-		a=["-lSDL","-lpthread","-lobjc"] if OSX
-		#a=["$$(sdl-config --libs)"] # can't really work because of exec and stuff.
-		a
-	}
-	uses_h ["SDL/SDL.h"]
-	#uses_h ["$$(sdl-config --cflags)"]
+	uses_so {`sdl-config --libs`.split" "} # doesn't work if special chars in --libs
+	uses_h ["SDL/SDL.h"] # should use $(sdl-config --cflags) with this
 	produces_o ["src/sdl.o"]
 	test proc {c_test "
 		#include#



More information about the Gridflow-cvs mailing list