From: Ivan Maidanski Date: Mon, 27 Feb 2012 03:55:29 +0000 (+0400) Subject: configure: Enable PARALLEL_MARK and THREAD_LOCAL_ALLOC for FreeBSD X-Git-Tag: gc7_3alpha2~84 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0c14ea4825a10cf182963387d1d8b371651f7eb1;p=gc configure: Enable PARALLEL_MARK and THREAD_LOCAL_ALLOC for FreeBSD * configure.ac (PARALLEL_MARK): Define for freebsd if enable_parallel_mark is yes. * configure.ac (THREAD_LOCAL_ALLOC): Always define for freebsd (if posix threads). --- diff --git a/configure.ac b/configure.ac index 47243a32..b467c96d 100644 --- a/configure.ac +++ b/configure.ac @@ -217,6 +217,10 @@ case "$THREADS" in AC_MSG_WARN("FreeBSD does not yet fully support threads with Boehm GC.") AC_DEFINE(GC_FREEBSD_THREADS) INCLUDES="$INCLUDES -pthread" + if test "${enable_parallel_mark}" = yes; then + AC_DEFINE(PARALLEL_MARK) + fi + AC_DEFINE(THREAD_LOCAL_ALLOC) ;; *-*-kfreebsd*-gnu) AC_DEFINE(GC_FREEBSD_THREADS)