From 8bd857fcc710e3bdfb6f477799c4c3d4aa997964 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Wed, 27 Oct 2004 20:40:41 +0000 Subject: [PATCH] Fix for detecting mono with non-gnu sed (for Solaris) git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6531 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- configure.in | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index ae68dcad1..8b494430d 100644 --- a/configure.in +++ b/configure.in @@ -1341,15 +1341,18 @@ if test -z "$CSHARPBIN" ; then # Check that mcs is the C# compiler and not the Unix mcs utility by examining the output of 'mcs --version' # The Mono compiler should emit: Mono C# compiler version a.b.c.d csharp_version_raw=`(mcs --version) 2>/dev/null` - csharp_version_searched=`(mcs --version | sed -n "/C#\|Mono/p") 2>/dev/null` + csharp_version_searched=`(mcs --version | sed -e "/C#/b" -e "/Mono/b" -e d) 2>/dev/null` # return string if contains 'Mono' or 'C#' CSHARPCOMPILER=""; if test -n "$csharp_version_raw" ; then if test "$csharp_version_raw" = "$csharp_version_searched" ; then CSHARPCOMPILER="mcs" fi fi - - AC_CHECK_PROGS(CSHARPCILINTERPRETER, mono) # Mono JIT + if test "mcs" = "$CSHARPCOMPILER" ; then + AC_CHECK_PROGS(CSHARPCILINTERPRETER, mono) # Mono JIT + else + echo "mcs is not the Mono C# compiler" + fi else if test "csc" = "$CSHARPCOMPILER"; then CSHARPPATHSEPARATOR="\\\\"