From: Ivan Maidanski Date: Thu, 8 Jun 2017 10:11:58 +0000 (+0300) Subject: Fix non-Linux configure-based builds X-Git-Tag: v8.0.0~698 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b45d96b3e3ba0108be0b2abf245e990c132faaee;p=gc Fix non-Linux configure-based builds (fix commit 8240ed0) * configure.ac (pthread_start_standalone): New variable. * configure.ac [*-*-*linux* && THREADS=posix] (pthread_start_standalone): Set to yes (instead of AM_CONDITIONAL(PTHREAD_START_STANDALONE) directly). * configure.ac (PTHREAD_START_STANDALONE): AM_CONDITIONAL if pthread_start_standalone. --- diff --git a/configure.ac b/configure.ac index 65b977e0..6f781540 100644 --- a/configure.ac +++ b/configure.ac @@ -345,9 +345,11 @@ AM_CONDITIONAL(THREAD_LOCAL_ALLOC, test x$enable_thread_local_alloc != xno -a x$THREADS != xnone) compiler_suncc=no +pthread_start_standalone=no case "$host" in *-*-*linux*) - AM_CONDITIONAL(PTHREAD_START_STANDALONE, test x$THREADS = xposix) + # Turn on the workaround described in pthread_start.c. + AS_IF([test "$THREADS" = posix], [pthread_start_standalone=yes]) ;; powerpc-*-darwin*) powerpc_darwin=true @@ -366,6 +368,8 @@ case "$host" in fi ;; esac +AM_CONDITIONAL(PTHREAD_START_STANDALONE, + test x$pthread_start_standalone = xyes) if test "$GCC" = yes; then # Output all warnings.