configure: Enable PARALLEL_MARK and THREAD_LOCAL_ALLOC for FreeBSD
authorIvan Maidanski <ivmai@mail.ru>
Mon, 27 Feb 2012 03:55:29 +0000 (07:55 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 27 Feb 2012 11:55:49 +0000 (15:55 +0400)
* 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).

configure.ac

index 47243a3..b467c96 100644 (file)
@@ -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)