]> granicus.if.org Git - gc/commitdiff
Enable parallel marker in configure for Solaris.
authorIvan Maidanski <ivmai@mail.ru>
Thu, 22 Sep 2011 11:30:02 +0000 (15:30 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 22 Sep 2011 11:54:45 +0000 (15:54 +0400)
* configure.ac (PARALLEL_MARK): Check --enable-parallel-mark also for
Solaris.

configure.ac

index b6c60efda325734ba712a5c4e2fd6e74f1721e2c..01296f491df7d24e03cc14c96b8707f5580395e6 100644 (file)
@@ -180,6 +180,9 @@ case "$THREADS" in
         ;;
      *-*-solaris*)
         AC_DEFINE(GC_SOLARIS_THREADS)
+        if test "${enable_parallel_mark}" = yes; then
+          AC_DEFINE(PARALLEL_MARK)
+        fi
         AC_DEFINE(THREAD_LOCAL_ALLOC)
         # Need to use alternate thread library, otherwise gctest hangs
         # on Solaris 8.
@@ -212,12 +215,12 @@ case "$THREADS" in
         ;;
      *-*-darwin*)
         AC_DEFINE(GC_DARWIN_THREADS)
-        AC_DEFINE(THREAD_LOCAL_ALLOC)
         AC_MSG_WARN("Explicit GC_INIT() calls may be required.");
         # Parallel-mark is not well-tested on Darwin
         if test "${enable_parallel_mark}" = yes; then
           AC_DEFINE(PARALLEL_MARK)
         fi
+        AC_DEFINE(THREAD_LOCAL_ALLOC)
         darwin_threads=true
         ;;
      *-*-osf*)