[svn] r6137: nemerle/trunk/configure

malekith svnadmin at nemerle.org
Fri Feb 24 20:35:40 CET 2006


Log:
Try to compile a file with the gmcs/csc found.

Author: malekith
Date: Fri Feb 24 20:35:39 2006
New Revision: 6137

Modified:
   nemerle/trunk/configure

Modified: nemerle/trunk/configure
==============================================================================
--- nemerle/trunk/configure	(original)
+++ nemerle/trunk/configure	Fri Feb 24 20:35:39 2006
@@ -632,20 +632,28 @@
 # Check if we have C# compiler available
 echo_check_for "C# compiler"
 
-try_execute "${netFRAMEWORK}csc"
-if test $? -lt 126; then
-   echo_result found
+cat > conftest.cs <<EOF
+class M {
+  public static void foo<T>() { }
+  public static void Main () {}
+}
+EOF
+
+if try_execute "${netFRAMEWORK}csc conftest.cs" ; then
+   echo_result "found, csc"
    csc="${netFRAMEWORK}csc"
 else
-  try_execute "${monopath}gmcs"
-  if test $? -lt 126; then
-    echo_result found
+  
+  if try_execute "${monopath}gmcs conftest.cs" ; then
+    echo_result "found, gmcs"
     csc="${monopath}gmcs"
   else
     echo_result "not found"
   fi
 fi
 
+rm -f conftest.cs conftest.exe
+
 # Step 11.
 # Check for Python >= 2.3, and other programs required to build
 # complete documentation.



More information about the svn mailing list