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

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Fri Feb 5 18:30:54 EST 2010


Author: matju
Date: Fri Feb  5 18:30:54 2010
New Revision: 4969

Log:
allow --force-gcc3 to be used for real (because of win32)

Modified:
    trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Fri Feb  5 18:30:54 2010
@@ -249,8 +249,11 @@
 	name "GNU C++ Compiler 3 (or 4)"
 	options ["HAVE_GCC3"]
 	defines :GCC_VERSION => proc {
-		/GCC_VERSION\s+(.*)/.match(File.popen("tmp/#{$$}","r"){|f| f.read })[1]
-		#"3.666"
+		begin
+			/GCC_VERSION\s+(.*)/.match(File.popen("tmp/#{$$}","r"){|f| f.read })[1]
+		rescue
+			"3.666" # version number unknown, sorry.
+		end
 	}
 	# how does this handle two test procs again?
 	test proc {



More information about the Gridflow-cvs mailing list