From 72107960c1a36e4b1364060f64a6850acbb1fc59 Mon Sep 17 00:00:00 2001 From: Gonzalo Paniagua Javier Date: Fri, 11 Feb 2005 21:54:22 +0000 Subject: [PATCH] 2005-02-11 Gonzalo Paniagua Javier * configure.in: detect if gmcs actually works. Patch by Robert Jordan. svn path=/trunk/xsp/; revision=40499 --- ChangeLog | 4 ++++ configure.in | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4993e39..d8fc5f8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-02-11 Gonzalo Paniagua Javier + + * configure.in: detect if gmcs actually works. Patch by Robert Jordan. + 2005-02-08 Raja R Harinath * test/2.0/treeview/Makefile.am (install-data-hook,uninstall-hook): diff --git a/configure.in b/configure.in index 2ac312c..2da4caf 100644 --- a/configure.in +++ b/configure.in @@ -19,6 +19,25 @@ if test "x$MCS" = "xno" ; then MCS=$CSC fi +if test "x$GMCS" != "xno" ; then + AC_MSG_CHECKING([whether gmcs is actually able to compile...]) + + tmpin=`mktemp` + tmpout=`mktemp` + + echo "class Foo { public static void Main() {} }" > $tmpin + + if [ gmcs -r:System.Web.dll -out:$tmpout $tmpin > /dev/null 2>&1 ] + then + AC_MSG_RESULT(yes) + else + GMCS=no + AC_MSG_RESULT(no) + fi + + rm -f $tmpin $tmpout +fi + case "$host" in *-*-mingw*|*-*-cygwin*) platform_win32=yes