From ca392637df83efdce9c51dc3f467d382842c0dfb Mon Sep 17 00:00:00 2001
From: sof <unknown>
Date: Tue, 26 Jan 1999 09:59:19 +0000
Subject: [PATCH] [project @ 1999-01-26 09:59:18 by sof] Prepared to support
 i?86-*-mingw32

---
 aclocal.m4   |  5 +++--
 config.sub   |  2 +-
 configure.in | 10 ++++++++++
 3 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/aclocal.m4 b/aclocal.m4
index 1e01c26615b2..b442a354619b 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1,4 +1,4 @@
-dnl $Id: aclocal.m4,v 1.36 1999/01/11 10:15:04 sof Exp $
+dnl $Id: aclocal.m4,v 1.37 1999/01/26 09:59:18 sof Exp $
 dnl 
 dnl Extra autoconf macros for the Glasgow fptools
 dnl
@@ -77,7 +77,8 @@ changequote(<<, >>)dnl
 <<
 case $HostPlatform in
 alpha-dec-osf*) fptools_cv_lead_uscore='no';;
-*cygwin32)      fptools_cv_lead_uscore='yes';;
+*cygwin32) fptools_cv_lead_uscore='yes';;
+*mingw32) fptools_cv_lead_uscore='yes';;
 *) >>
 changequote([, ])dnl
 AC_TRY_RUN([#ifdef HAVE_NLIST_H
diff --git a/config.sub b/config.sub
index c69746757295..e75bb0567de9 100644
--- a/config.sub
+++ b/config.sub
@@ -824,7 +824,7 @@ case $os in
 	      | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
-	      | -cygwin32* | -pe* | -psos*)
+	      | -cygwin32* | -mingw32* | -pe* | -psos*)
 	# Remember, each alternative MUST END IN *, to match a version number.
 		;;
 	# CYGNUS LOCAL
diff --git a/configure.in b/configure.in
index 2454c9141d91..9124666bfeba 100644
--- a/configure.in
+++ b/configure.in
@@ -159,6 +159,16 @@ i[[3456]]86-*-cygwin32*)
         HostOS_CPP='cygwin32'
 	exeext='.exe'
         ;;
+i[[3456]]86-*-mingw32*)
+	HostPlatform=i386-unknown-mingw32 # hack again
+	TargetPlatform=i386-unknown-mingw32
+	BuildPlatform=i386-unknown-mingw32
+        HostPlatform_CPP='i386_unknown_mingw32'
+        HostArch_CPP='i386'
+        HostVendor_CPP='unknown'
+        HostOS_CPP='mingw32'
+	exeext='.exe'
+        ;;
 m68k-next-nextstep2)
         HostPlatform_CPP='m68k_next_nextstep2'
         HostArch_CPP='m68k'
-- 
GitLab