diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 1d4055b02e170ec07d623fbb4c16809c97211208..a74bd448151170986a502725348e3bc195e8005e 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,8 @@
+2007-08-13  Danny Smith  <dannysmit@users.sourceforge.net>
+
+	* acinclude.m4 (GTHREAD_USE_WEAK) Define to 0 for mingw32.
+	* configure: Regenerate.
+
 2007-08-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
 
 	PR fortran/30964
diff --git a/libgfortran/acinclude.m4 b/libgfortran/acinclude.m4
index 1660b6e75e6af03e3170eced7b4fb0f8b03faa30..1270a98c04ee8da7ef76a03f099ab939c44e50f5 100644
--- a/libgfortran/acinclude.m4
+++ b/libgfortran/acinclude.m4
@@ -128,7 +128,7 @@ AC_DEFUN([LIBGFOR_GTHREAD_WEAK], [
 	      [Define to 1 if the target supports #pragma weak])
   fi
   case "$host" in
-    *-*-darwin* | *-*-hpux* | *-*-cygwin*)
+    *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* )
       AC_DEFINE(GTHREAD_USE_WEAK, 0,
 		[Define to 0 if the target shouldn't use #pragma weak])
       ;;
diff --git a/libgfortran/configure b/libgfortran/configure
index b9a0cf5bf4b8799cb8de309dc5ec1a2d8cbe2a62..c68cb7436b7a9b390a2c5913825e6ea1baddfdd3 100755
--- a/libgfortran/configure
+++ b/libgfortran/configure
@@ -32613,7 +32613,7 @@ _ACEOF
 
   fi
   case "$host" in
-    *-*-darwin* | *-*-hpux* | *-*-cygwin*)
+    *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* )
 
 cat >>confdefs.h <<\_ACEOF
 #define GTHREAD_USE_WEAK 0