config.guess: Add support for i386-pc-interix.
authorMumit Khan <khan@xraylith.wisc.edu>
Sat, 30 Jan 1999 07:07:42 +0000 (07:07 +0000)
committerJeff Law <law@gcc.gnu.org>
Sat, 30 Jan 1999 07:07:42 +0000 (00:07 -0700)
        * config.guess: Add support for i386-pc-interix.
        * config.sub: Likewise.
        * configure.in: Likewise.
        * config/mh-interix: New file.

From-SVN: r24913

ChangeLog
config.guess
config.sub
config/mh-interix [new file with mode: 0644]
configure.in

index b1102b771f5d1fd6b8a8490121f306e7e1ae42fe..48560ba1e46f591a488cd87fe4dbb81cdf1efc89 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Sat Jan 30 08:04:00 1999  Mumit Khan  <khan@xraylith.wisc.edu>
+
+       * config.guess: Add support for i386-pc-interix.
+       * config.sub: Likewise.
+       * configure.in: Likewise.
+       * config/mh-interix: New file.
+
 Wed Dec 23 00:20:50 1998  Jeffrey A Law  (law@cygnus.com)
 
        * config.sub: Clean up handling of hppa2.0.
index ff701fea9a95ce4089fc14eff78926f51111802d..28c45c8901f9bb0e156343396fa9bb169b3aeb99 100755 (executable)
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Attempt to guess a canonical system name.
-#   Copyright (C) 1992, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc.
+#   Copyright (C) 1992, 93, 94, 95, 96, 97, 1998, 1999 Free Software Foundation, Inc.
 #
 # This file is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
@@ -529,6 +529,13 @@ EOF
     i*:MINGW*:*)
        echo ${UNAME_MACHINE}-pc-mingw32
        exit 0 ;;
+    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
+        # How do we know it's Interix rather than generic posix subsystem?
+       # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
+       # change UNAME_MACHINE based on the output of uname instead of
+       # i386?
+       echo i386-pc-interix
+       exit 0 ;;
     p*:CYGWIN*:*)
        echo powerpcle-unknown-cygwin32
        exit 0 ;;
index 34fb3faa0547d969c930ce3a15c7b8552b634e9e..3be49c793974f36a7fe60fd1cec16847ec25488c 100755 (executable)
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Configuration validation subroutine script, version 1.1.
-#   Copyright (C) 1991, 92-97, 1998 Free Software Foundation, Inc.
+#   Copyright (C) 1991, 92-97, 1998, 1999 Free Software Foundation, Inc.
 # This file is (in principle) common to ALL GNU software.
 # The presence of a machine in this file suggests that SOME GNU software
 # can handle that machine.  It does not imply ALL GNU software can.
@@ -932,7 +932,8 @@ case $os in
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
              | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
-             | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk*)
+             | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
+             | -interix* )
        # Remember, each alternative MUST END IN *, to match a version number.
                ;;
        # CYGNUS LOCAL
diff --git a/config/mh-interix b/config/mh-interix
new file mode 100644 (file)
index 0000000..19b8ecf
--- /dev/null
@@ -0,0 +1,14 @@
+# The shell may not be in /bin. 
+SHELL = sh
+RANLIB = true
+
+# We don't want debugging info in Interix-hosted toolchains.
+# Accomplish this by overriding CFLAGS. This is also a workaround
+# for LD crash when building shared libstdc++.
+CFLAGS=-O2
+CXXFLAGS=-O2
+
+# We also need to override LIBGCC2_DEBUG_CFLAGS so libgcc2 will be
+# built without debugging information
+
+LIBGCC2_DEBUG_CFLAGS=
index 66e0417c6fd4026c343bec3f9a04355d887816d9..0c09f4f2c2bb8bbd5bd7276d39a5458518c60ba6 100644 (file)
@@ -14,7 +14,7 @@
 ## For more information on these two systems, check out the documentation
 ## for 'Autoconf' (autoconf.texi) and 'Configure' (configure.texi).  
 
-#   Copyright (C) 1992, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc.
+#   Copyright (C) 1992, 93, 94, 95, 96, 97, 1998, 1999 Free Software Foundation, Inc.
 #
 # This file is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
@@ -200,6 +200,9 @@ case "${host}" in
   *-mingw32*)
     host_makefile_frag="${host_makefile_frag} config/mh-mingw32"
     ;;
+  *-interix*)
+    host_makefile_frag="${host_makefile_frag} config/mh-interix"
+    ;;
   *-windows*)
     host_makefile_frag="${host_makefile_frag} config/mh-windows"
     ;;