]> granicus.if.org Git - gc/commitdiff
Fix thread model in configure for MinGW.
authorIvan Maidanski <ivmai@mail.ru>
Thu, 22 Sep 2011 11:40:31 +0000 (15:40 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 22 Sep 2011 11:55:15 +0000 (15:55 +0400)
* configure.ac (THREADS): Change "posix" to "win32" in case of
cross-compiling to MinGW.

configure.ac

index 01296f491df7d24e03cc14c96b8707f5580395e6..5040363d9339e1274c67001b3b7baf26157c7fa8 100644 (file)
@@ -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,