From d738a56b253dfe24017617faf159740e0d41bd2e Mon Sep 17 00:00:00 2001 From: Petr Salinger Date: Mon, 18 Sep 2006 18:45:08 +0000 Subject: 2006-06-07 Petr Salinger * configure.ac: add support for GNU/kFreeBSD, accepted by upstream for gc 6.8. * dyn_load.c: Likewise. * include/gc.h: Likewise. * private/gcconfig.h: Likewise. * configure: Regenerate. * include/gc_config.h.in: Regenerate. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@117033 138bc75d-0d04-0410-961f-82ee72b054a4 --- boehm-gc/configure | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'boehm-gc/configure') diff --git a/boehm-gc/configure b/boehm-gc/configure index 3f2f5d835f5..00b14305f95 100755 --- a/boehm-gc/configure +++ b/boehm-gc/configure @@ -5444,6 +5444,32 @@ _ACEOF { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5 echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;} ;; + *-*-kfreebsd*-gnu) + cat >>confdefs.h <<\_ACEOF +#define GC_FREEBSD_THREADS 1 +_ACEOF + + INCLUDES="$INCLUDES -pthread" + THREADDLLIBS=-pthread + cat >>confdefs.h <<\_ACEOF +#define _REENTRANT 1 +_ACEOF + + if test "${enable_parallel_mark}" = yes; then + cat >>confdefs.h <<\_ACEOF +#define PARALLEL_MARK 1 +_ACEOF + + fi + cat >>confdefs.h <<\_ACEOF +#define THREAD_LOCAL_ALLOC 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define USE_COMPILER_TLS 1 +_ACEOF + + ;; *-*-freebsd*) { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5 echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;} -- cgit v1.2.3