Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Thu Mar 7 17:19:44 CET 2002 Paolo Molaro <lupus@ximian.com>

	* configure.in: detect Boehm GC libs and add --with-gc switch.
	Boehm GC needs to be explicitly enabled since the JIT currently fails
	in some cases with it.

svn path=/trunk/mono/; revision=2972
  • Loading branch information...
commit 664de759621d743d9d5bb60fba00439a51e78d05 1 parent 8127131
@illupus illupus authored
View
7 ChangeLog
@@ -1,3 +1,10 @@
+
+Thu Mar 7 17:19:44 CET 2002 Paolo Molaro <lupus@ximian.com>
+
+ * configure.in: detect Boehm GC libs and add --with-gc switch.
+ Boehm GC needs to be explicitly enabled since the JIT currently fails
+ in some cases with it.
+
2002-02-27 Dietmar Maurer <dietmar@ximian.com>
* mono/tests/fib.cs: it is now possible to pass a repeat count as
View
1  acconfig.h
@@ -12,3 +12,4 @@
#undef HAVE_NEW_ICONV
#undef NAME_DEV_RANDOM
#undef HAVE_CRYPT_RNG
+#undef HAVE_BOEHM_GC
View
34 config.h.in
@@ -3,12 +3,46 @@
/* Define if you have the ANSI C header files. */
#undef STDC_HEADERS
+#undef HAVE_INET_PTON
+#undef HAVE_INET_ATON
+#undef HAVE_SOL_IP
+#undef HAVE_SOL_TCP
+#undef HAVE_IP_PKTINFO
+#undef HAVE_STRUCT_IP_MREQN
+#undef HAVE_PTHREAD
+#undef HAVE_PTHREAD_MUTEX_TIMEDLOCK
+#undef USE_MONO_MUTEX
+#undef HAVE_LARGE_FILE_SUPPORT
+#undef PLATFORM_WIN32
+#undef HAVE_NEW_ICONV
+#undef NAME_DEV_RANDOM
+#undef HAVE_CRYPT_RNG
+#undef HAVE_BOEHM_GC
+
/* The number of bytes in a void *. */
#undef SIZEOF_VOID_P
+/* Define if you have the inet_aton function. */
+#undef HAVE_INET_ATON
+
+/* Define if you have the inet_pton function. */
+#undef HAVE_INET_PTON
+
/* Define if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
+/* Define if you have the <netdb.h> header file. */
+#undef HAVE_NETDB_H
+
+/* Define if you have the <sys/filio.h> header file. */
+#undef HAVE_SYS_FILIO_H
+
+/* Define if you have the <sys/sockio.h> header file. */
+#undef HAVE_SYS_SOCKIO_H
+
+/* Define if you have the <utime.h> header file. */
+#undef HAVE_UTIME_H
+
/* Name of package */
#undef PACKAGE
View
26 configure.in
@@ -75,6 +75,32 @@ AC_SUBST(GLIB_LIBS)
AC_SUBST(GMODULE_CFLAGS)
AC_SUBST(GMODULE_LIBS)
+AC_CHECK_LIB(gc, GC_malloc, found_boehm="yes")
+
+AC_ARG_WITH(gc, [ --with-gc=bohem,none],
+ if test x$with_gc = "xyes"; then
+ with_gc="boehm"
+ fi
+ if test x$with_gc = "xboehm"; then
+ if test x$found_boehm != "xyes"; then
+ AC_MSG_ERROR(Boehm gc requested but libgc could not be found.)
+ fi
+ else
+ AC_MSG_WARN("Compiling mono without GC.")
+ fi,
+ if test x$found_boehm != "xyes"; then
+ AC_MSG_WARN("Compiling mono without GC.")
+ else
+ with_gc="none"
+ fi
+)
+if test x$with_gc = "xboehm"; then
+ AC_DEFINE(HAVE_BOEHM_GC)
+ AC_SUBST(HAVE_BOEHM_GC)
+ LIBS="$LIBS -lgc"
+ AC_MSG_RESULT("Compiling mono with Boehm GC.")
+fi
+
dnl ****************************************
dnl *** Check if we're building on win32 ***
dnl ****************************************
View
5 mono/tests/params.cs
@@ -2,6 +2,10 @@
public class T {
+ static public void method (int nargs, string arg) {
+ int i;
+ Console.WriteLine ("Got single arg "+arg);
+ }
static public void method (int nargs, params string[] args) {
int i;
Console.Write ("Got "+nargs.ToString()+" args ");
@@ -12,6 +16,7 @@ public class T {
public static int Main() {
method (1, "hello");
method (2, "hello", "World");
+ method (3, "hello", "World", "blah");
return 0;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.