+2011-04-13 Ivan Maidanski <ivmai@mail.ru> (mostly really Rainer Orth)
+
+ * configure.ac (THREADDLLIBS): Use alternate thread library on
+ Solaris 8.
+ * configure.ac (need_atomic_ops_asm): Set to true only for Sparc
+ Solaris.
+ * configure.ac: Don't use libdl on mips-sgi-irix6.
+ * configure: Regenerate.
+
2011-04-11 Ivan Maidanski <ivmai@mail.ru> (really Jie Liu)
* mach_dep.c (NO_GETCONTEXT); Define for RTEMS.
$as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
- THREADDLLIBS="-lpthread -lrt"
- if test "$GCC" != yes; then
- CFLAGS="$CFLAGS -O"
- need_atomic_ops_asm=true
- fi
+ # Need to use alternate thread library, otherwise gctest hangs
+ # on Solaris 8.
+ multi_os_directory=`$CC -print-multi-os-directory`
+ THREADDLLIBS="-L/usr/lib/lwp/$multi_os_directory \
+ -R/usr/lib/lwp/$multi_os_directory -lpthread -lrt"
;;
*-*-irix*)
$as_echo "#define GC_IRIX_THREADS 1" >>confdefs.h
as_fn_error $? "\"Pthreads not supported by the GC on this platform.\"" "$LINENO" 5
;;
esac
+ case "$host" in
+ sparc*-*-solaris*)
+ if test "$GCC" != yes; then
+ CFLAGS="$CFLAGS -O"
+ need_atomic_ops_asm=true
+ fi
+ ;;
+ esac
;;
win32)
$as_echo "#define GC_THREADS 1" >>confdefs.h
fi
+case "$host" in
+# While IRIX 6 has libdl for the O32 and N32 ABIs, it's missing for N64
+# and unnecessary everywhere.
+ mips-sgi-irix6*) ;;
# We never want libdl on darwin. It is a fake libdl that just ends up making
# dyld calls anyway. The same applies to Cygwin.
-case "$host" in
*-*-darwin*) ;;
*-*-cygwin*) ;;
*)
AC_CONFIG_SRCDIR(gcj_mlc.c)
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_TARGET
-AC_PREREQ(2.53)
-AC_REVISION($Revision: 1.64 $)
+AC_PREREQ(2.64)
+AC_REVISION($Revision: 1.65 $)
GC_SET_VERSION
AM_INIT_AUTOMAKE([foreign dist-bzip2 nostdinc])
AM_CONFIG_HEADER([include/private/config.h])
*-*-solaris*)
AC_DEFINE(GC_SOLARIS_THREADS)
AC_DEFINE(THREAD_LOCAL_ALLOC)
- THREADDLLIBS="-lpthread -lrt"
- if test "$GCC" != yes; then
- CFLAGS="$CFLAGS -O"
- need_atomic_ops_asm=true
- fi
+ # Need to use alternate thread library, otherwise gctest hangs
+ # on Solaris 8.
+ multi_os_directory=`$CC -print-multi-os-directory`
+ THREADDLLIBS="-L/usr/lib/lwp/$multi_os_directory \
+ -R/usr/lib/lwp/$multi_os_directory -lpthread -lrt"
;;
*-*-irix*)
AC_DEFINE(GC_IRIX_THREADS)
AC_MSG_ERROR("Pthreads not supported by the GC on this platform.")
;;
esac
+ case "$host" in
+ sparc*-*-solaris*)
+ if test "$GCC" != yes; then
+ CFLAGS="$CFLAGS -O"
+ need_atomic_ops_asm=true
+ fi
+ ;;
+ esac
;;
win32)
AC_DEFINE(GC_THREADS)
AC_DEFINE([DARWIN_DONT_PARSE_STACK], 1, [See doc/README.macros.])
fi
+case "$host" in
+# While IRIX 6 has libdl for the O32 and N32 ABIs, it's missing for N64
+# and unnecessary everywhere.
+ mips-sgi-irix6*) ;;
# We never want libdl on darwin. It is a fake libdl that just ends up making
# dyld calls anyway. The same applies to Cygwin.
-case "$host" in
*-*-darwin*) ;;
*-*-cygwin*) ;;
*)