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

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Sat Mar 5 18:58:33 EST 2011


Author: matju
Date: Sat Mar  5 18:58:33 2011
New Revision: 6717

Log:
failed attempt to detect mmx on osx

Modified:
    trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Sat Mar  5 18:58:33 2011
@@ -241,14 +241,16 @@
 	uses_feature [:pentium]
 	produces_o ["src/mmx.o","src/mmx_loader.o"]
 	test proc {
-		asm_test '
-		global main
-		extern exit
+		_=""
+		_="_" if OSX
+		asm_test %{
+		global #{_}main
+		extern #{_}exit
 		align 16
 		SECTION .data
 		foo: dd 42,0
 		SECTION .text
-	main:	lea esi,[foo]
+	#{_}main: lea esi,[foo]
 		movq mm0,qword[esi]
 		paddd mm0,qword[esi]
 		movq qword [esi],mm0
@@ -256,9 +258,9 @@
 		cmp dword [foo], 84
 		je yes
 		push long 1
-		call exit
+		call #{_}exit
 	yes:	push long 0
-		call exit'}}
+		call #{_}exit}}}
 Feature.add(:x11,"X11 Display Protocol") {
 	uses_so LIBX11
 	uses_h ["X11/Xlib.h"]



More information about the Gridflow-cvs mailing list