From: Ivan Maidanski Date: Thu, 22 Sep 2011 11:40:31 +0000 (+0400) Subject: Fix thread model in configure for MinGW. X-Git-Tag: gc7_3alpha2~333 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2cf0d76c53a98f7b5bcfc917f59154c19137c24;p=gc Fix thread model in configure for MinGW. * configure.ac (THREADS): Change "posix" to "win32" in case of cross-compiling to MinGW. --- diff --git a/configure.ac b/configure.ac index 5f7da9e0..c3698d2a 100644 --- a/configure.ac +++ b/configure.ac @@ -89,6 +89,14 @@ AC_ARG_ENABLE(threads, if test -z "$THREADS"; then THREADS=no fi + if test "$THREADS" = "posix"; then + case "$host" in + *-*-mingw*) + # Adjust thread model if cross-compiling for MinGW. + THREADS=win32 + ;; + esac + fi AC_MSG_RESULT([$THREADS]) ]) AC_ARG_ENABLE(parallel-mark,