Permalink
Browse files

This commit was manufactured by cvs2svn to create tag 'MONO_1_0_2'.

svn path=/tags/MONO_1_0_2/mono/; revision=34179
  • Loading branch information...
nobody
nobody committed Sep 21, 2004
16 parents 26c7b44 + de4717d + 8b95383 + ca744bd + 4dcf4e1 + cd43890 + f363291 + c80e116 + 773b295 + 99a49e2 + 255302e + 71d7550 + 152ab7f + 92cf05a + e7f43be + e297e11 commit 1bae59437320c2cdbcda814b06f43993327ed5a5
Showing with 2,223 additions and 1,165 deletions.
  1. +34 −0 ChangeLog
  2. +102 −10 configure.in
  3. +0 −246 doc/pending-classes.in
  4. +1 −0 mono/dis/get.c
  5. +6 −0 mono/interpreter/ChangeLog
  6. +1 −1 mono/interpreter/interp.c
  7. +10 −0 mono/interpreter/mintops.h
  8. +96 −0 mono/io-layer/ChangeLog
  9. +35 −27 mono/io-layer/daemon.c
  10. +8 −0 mono/io-layer/error.c
  11. +52 −0 mono/io-layer/handles-private.h
  12. +141 −25 mono/io-layer/handles.c
  13. +382 −40 mono/io-layer/io.c
  14. +18 −2 mono/io-layer/mutexes.c
  15. +154 −193 mono/io-layer/sockets.c
  16. +9 −3 mono/io-layer/threads.c
  17. +2 −0 mono/io-layer/timed-thread.c
  18. +9 −3 mono/io-layer/wait.c
  19. +2 −1 mono/io-layer/wapi-private.h
  20. +179 −1 mono/metadata/ChangeLog
  21. +25 −5 mono/metadata/appdomain.c
  22. +12 −2 mono/metadata/assembly.c
  23. +1 −1 mono/metadata/class.c
  24. +29 −8 mono/metadata/debug-mono-symfile.c
  25. +9 −4 mono/metadata/filewatcher.c
  26. +60 −12 mono/metadata/gc.c
  27. +17 −4 mono/metadata/image.c
  28. +41 −13 mono/metadata/loader.c
  29. +12 −10 mono/metadata/locales.c
  30. +184 −71 mono/metadata/marshal.c
  31. +55 −51 mono/metadata/metadata.c
  32. +49 −17 mono/metadata/mono-debug.c
  33. +25 −14 mono/metadata/object.c
  34. +6 −0 mono/metadata/object.h
  35. +4 −2 mono/metadata/process.c
  36. +43 −3 mono/metadata/reflection.c
  37. +1 −0 mono/metadata/reflection.h
  38. +51 −1 mono/metadata/socket-io.c
  39. +14 −1 mono/metadata/socket-io.h
  40. +69 −0 mono/mini/ChangeLog
  41. +6 −0 mono/mini/basic-long.cs
  42. +2 −0 mono/mini/cpu-g4.md
  43. +2 −0 mono/mini/cpu-pentium.md
  44. +2 −0 mono/mini/cpu-s390.md
  45. +2 −0 mono/mini/cpu-sparc.md
  46. +3 −3 mono/mini/exceptions-x86.c
  47. +19 −4 mono/mini/inssel-long32.brg
  48. +10 −10 mono/mini/inssel-ppc.brg
  49. +2 −0 mono/mini/inssel-x86.brg
  50. +8 −1 mono/mini/inssel.brg
  51. +2 −0 mono/mini/mini-ops.h
  52. +23 −8 mono/mini/mini-ppc.c
  53. +4 −0 mono/mini/mini-s390.c
  54. +3 −0 mono/mini/mini-sparc.c
  55. +4 −0 mono/mini/mini-x86.c
  56. +77 −25 mono/mini/mini.c
  57. +1 −0 mono/mini/mini.h
  58. +6 −0 mono/tests/ChangeLog
  59. +1 −0 mono/tests/Makefile.am
  60. +40 −0 mono/tests/libtest.c
  61. +18 −0 mono/tests/pinvoke2.cs
  62. +14 −0 mono/tests/pinvoke3.cs
  63. +26 −0 mono/tests/typeof-ptr.cs
  64. +0 −246 web/pending-classes.in
  65. +0 −1 web/web/masterinfos/.cvsignore
  66. +0 −96 web/web/masterinfos/Makefile
View
@@ -1,3 +1,37 @@
+2004-09-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * configure.in: added check for kqueue. Patch from Geoff Norton
+ in HEAD.
+
+2004-08-17 Dick Porter <dick@ximian.com>
+
+ * configure.in: Correct intl library for FreeBSD and OpenBSD.
+ Fixes bug 62884, patch by Tom McLaughlin (tmclaugh@sdf.lonestar.org).
+
+2004-07-27 John Merryweather Cooper <john_m_cooper@yahoo.com>
+ * configure.in: Disable __thread test (TLS) for FreeBSD as
+ it succeeds on FreeBSD 5.x when it should fail. Fix pthread
+ library detection for FreeBSD 4.x since pthread is embedded
+ in libc_r on this platform. Fix some typos in my host
+ regexes for freebsd.
+
+2004-07-23 Dick Porter <dick@ximian.com>
+
+ * configure.in: Changes for FreeBSD thread support by John
+ Merryweather Cooper <john_m_cooper@yahoo.com>.
+
+2004-07-03 Zoltan Varga <vargaz@freemail.hu>
+
+ * configure.in: Add --with-tls option to replace the misnamed
+ --with-nptl option.
+
+2004-06-30 Zoltan Varga <vargaz@freemail.hu>
+
+ * configure.in: Fix trunc check + add SPARC64 defines.
+
+ * marshal.c (mono_marshal_get_managed_wrapper): Handle returning
+ delegates from a delegate. Fixes #61033.
+
2004-06-29 Jackson Harper <jackson@ximian.com>
* man/gacutil.1: Update man with new command line options.
View
@@ -1,7 +1,7 @@
AC_INIT(README)
AC_CANONICAL_SYSTEM
AM_CONFIG_HEADER(config.h)
-AM_INIT_AUTOMAKE(mono,1.0)
+AM_INIT_AUTOMAKE(mono,1.0.2)
AM_MAINTAINER_MODE
AC_PROG_LN_S
@@ -67,7 +67,62 @@ case "$host" in
libdl=
libgc_threads=no
;;
- *-*-*freebsd*|*-*-*openbsd*)
+# these flags will work for all versions of -STABLE
+#
+ *-*-*freebsd4*)
+ platform_win32=no
+ if test "x$PTHREAD_CFLAGS" = "x"; then
+ CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE -DGC_FREEBSD_THREADS"
+ libmono_cflags="-D_THREAD_SAFE"
+ else
+ CPPFLAGS="$CPPFLAGS $PTHREAD_CFLAGS -DGC_FREEBSD_THREADS"
+ libmono_cflags="$PTHREAD_CFLAGS"
+ fi
+ if test "x$PTHREAD_LIBS" = "x"; then
+ LDFLAGS="$LDFLAGS -pthread"
+ libmono_ldflags="-pthread"
+ else
+ LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
+ libmono_ldflags="$PTHREAD_LIBS"
+ fi
+ need_link_unlink=yes
+ AC_DEFINE(PTHREAD_POINTER_ID)
+ libdl=
+ libgc_threads=pthreads
+# TLS isn't implemented at all on -STABLE
+ with_nptl=no
+ with_tls=pthread
+ ;;
+# older versions of -CURRENT will break with these flags but testing
+# indicates these older versions won't run Mono anyway
+#
+ *-*-*freebsd5*)
+ platform_win32=no
+ if test "x$PTHREAD_CFLAGS" = "x"; then
+ CPPFLAGS="$CPPFLAGS -DGC_FREEBSD_THREADS"
+ libmono_cflags=
+ else
+ CPPFLAGS="$CPPFLAGS $PTHREAD_CFLAGS -DGC_FREEBSD_THREADS"
+ libmono_cflags="$PTHREAD_CFLAGS"
+ fi
+ if test "x$PTHREAD_LIBS" = "x"; then
+ LDFLAGS="$LDFLAGS -lpthread"
+ libmono_ldflags="-lpthread"
+ else
+ LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
+ libmono_ldflags="$PTHREAD_LIBS"
+ fi
+ need_link_unlink=yes
+ AC_DEFINE(PTHREAD_POINTER_ID)
+ libdl=
+ libgc_threads=pthreads
+# TLS is only partially implemented on -CURRENT (compiler support
+# but NOT library support)
+#
+ with_nptl=no
+ with_tls=pthread
+ ;;
+ *-*-*openbsd*)
platform_win32=no
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE -DGC_FREEBSD_THREADS"
libmono_cflags="-D_THREAD_SAFE"
@@ -248,9 +303,21 @@ AC_ARG_WITH(gc, [ --with-gc=boehm,included,none],[gc=$with_gc],[gc=$gc_default]
# Enable support for fast thread-local storage
# Some systems have broken support, so we allow to disable it.
-# This is misnamed: __thread support has no relation to NPTL,
-# but people already use it...
-AC_ARG_WITH(nptl, [ --with-nptl=yes,no enable/disable support for __thread support],[],[with_nptl=yes])
+AC_ARG_WITH(tls, [ --with-tls=__thread,pthread select Thread Local Storage implementation],[],[with_tls=__thread])
+
+# Kept for compatibility
+AC_ARG_WITH(nptl, [ --with-nptl=yes,no deprecated, use --with-tls instead],[],[with_nptl=default])
+
+if test "x$with_nptl" != "xdefault"; then
+ if test "x$with_nptl" = "xyes"; then
+ AC_MSG_WARN([--with-nptl=yes is deprecated, use --with-tls=__thread option instead.])
+ with_tls=__thread
+ fi
+ if test "x$with_nptl" = "xno"; then
+ AC_MSG_WARN([--with-nptl=no is deprecated, use --with-tls=pthread option instead.])
+ with_tls=pthread
+ fi
+fi
# Enable support for using sigaltstack for SIGSEGV and stack overflow handling
# This does not work on some platforms (bug #55253)
@@ -399,6 +466,7 @@ if test x$platform_win32 = xno; then
AC_CHECK_FUNCS(getpwuid_r)
AC_CHECK_FUNCS(getresuid)
AC_CHECK_FUNCS(setresuid)
+ AC_CHECK_FUNCS(kqueue)
dnl ******************************************************************
dnl *** Check for large file support ***
@@ -641,7 +709,17 @@ if test x$platform_win32 = xno; then
dnl *****************************
dnl *** Checks for libpthread ***
dnl *****************************
- AC_CHECK_LIB(pthread, main, LIBS="$LIBS -lpthread")
+# on FreeBSD -STABLE, the pthreads functions all reside in libc_r
+# and libpthread does not exist
+#
+ case "${host}" in
+ *-*-*freebsd4*)
+ AC_CHECK_LIB(pthread, main, LIBS="$LIBS -pthread")
+ ;;
+ *)
+ AC_CHECK_LIB(pthread, main, LIBS="$LIBS -lpthread")
+ ;;
+ esac
AC_CHECK_HEADERS(pthread.h)
AC_CHECK_FUNCS(pthread_mutex_timedlock)
AC_CHECK_FUNCS(pthread_getattr_np pthread_attr_get_np)
@@ -662,7 +740,7 @@ if test x$platform_win32 = xno; then
dnl *** Checks for working __thread ***
dnl ***********************************
AC_MSG_CHECKING(for working __thread)
- if test "x$with_nptl" != "xyes"; then
+ if test "x$with_tls" != "x__thread"; then
AC_MSG_RESULT(disabled)
else
AC_TRY_RUN([
@@ -954,8 +1032,9 @@ ac_cv_c_socklen_t=yes
])
AC_CHECK_FUNCS(trunc, , AC_MSG_CHECKING(for trunc in math.h)
+ # Simply calling trunc (0.0) is no good since gcc will optimize the call away
AC_TRY_LINK([#include <math.h>],
- [ trunc(0.0); ],
+ [ static void *p = &trunc; ],
[
AC_DEFINE(HAVE_TRUNC)
AC_MSG_RESULT(yes)
@@ -1096,7 +1175,11 @@ case "$host" in
JIT_SUPPORTED=no
;;
sparc*-*-*)
- TARGET=SPARC;
+ if test "x$ac_cv_sizeof_void_p" = "x8"; then
+ TARGET=SPARC64
+ else
+ TARGET=SPARC
+ fi
arch_target=sparc;
JIT_SUPPORTED=yes
ACCESS_UNALIGNED="no"
@@ -1184,6 +1267,14 @@ case "$host" in
LIBC="libc.so.12"
INTL="libintl.so.0"
;;
+ *-*-*freebsd*)
+ LIBC="libc.so"
+ INTL="libintl.so"
+ ;;
+ *-*-*openbsd*)
+ LIBC="libc.so"
+ INTL="libintl.so"
+ ;;
esac
AC_SUBST(libsuffix)
@@ -1227,6 +1318,7 @@ AM_CONDITIONAL(INSTALL_2_0, test x$PREVIEW = xyes)
AM_CONDITIONAL(MIPS_GCC, test ${TARGET}${ac_cv_prog_gcc} = MIPSyes)
AM_CONDITIONAL(MIPS_SGI, test ${TARGET}${ac_cv_prog_gcc} = MIPSno)
AM_CONDITIONAL(SPARC, test x$TARGET = xSPARC)
+AM_CONDITIONAL(SPARC64, test x$TARGET = xSPARC64)
AM_CONDITIONAL(X86, test x$TARGET = xX86)
AM_CONDITIONAL(AMD64, test x$TARGET = xAMD64)
AM_CONDITIONAL(ALPHA, test x$TARGET = xALPHA)
@@ -1299,7 +1391,7 @@ echo "
GC: $gc
ICU: $enable_icu
- __thread: $with_nptl
+ TLS: $with_tls
SIGALTSTACK: $with_sigaltstack
Engine: $jit_status
2.0 Alpha: $PREVIEW
Oops, something went wrong.

0 comments on commit 1bae594

Please sign in to comment.