From e1030c5bb5742ae6cc50287dd441c6ea4119a0e3 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 22 Sep 2011 15:40:31 +0400 Subject: [PATCH] Fix thread model in configure for MinGW. * configure.ac (THREADS): Change "posix" to "win32" in case of cross-compiling to MinGW. --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.ac b/configure.ac index 01296f49..5040363d 100644 --- a/configure.ac +++ b/configure.ac @@ -52,6 +52,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, -- 2.40.0