Formerly ../limits.h.~6~
[kopensolaris-gnu/glibc.git] / config.sub
index e5f8db5..01149b1 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Configuration validation subroutine script, version 1.0.
+# Configuration validation subroutine script, version 1.1.
 #   Copyright (C) 1991, 1992 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
@@ -55,12 +55,12 @@ then os=`echo $1 | sed 's/.*-/-/'`
 else os=; fi
 
 # Lets recognize common machines as not being OS so that things like
-# config.subr decstation-3100 as legal.
+# config.subr decstation-3100 work.
 case $os in
        -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
        -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
        -unicom* | -ibm* | -next* | -hp | -isi* | -apollo | -altos* | \
-       -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -osf* | \
+       -convergent* | -ncr* | -news | -32* | -3600* | -3100* | \
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
        -harris | -dolphin)
                os=
@@ -81,7 +81,8 @@ case $basic_machine in
        # Recognize the basic CPU types with without company name.
        # Some are omitted here because they have special meanings below.
        tahoe | i[34]86 | i860 | m68k | m68000 | m88k | ns32k | arm | pyramid \
-               | tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1 | we32)
+               | tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1 \
+               | alpha | we32k)
                basic_machine=$basic_machine-unknown
                ;;
        # Recognize the basic CPU types with with company name.
@@ -89,7 +90,7 @@ case $basic_machine in
              | sparc-* | ns32k-* | fx80-* | arm-* | c[123]* \
              | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
              | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \
-             | hppa1.0-* | hppa1.1-* | we32-*)
+             | hppa1.0-* | hppa1.1-* | alpha-* | we32k-*)
                ;;
        # Recognize the various machine names and aliases which stand
        # for a CPU type and a company and sometimes even an OS.
@@ -113,6 +114,18 @@ case $basic_machine in
                basic_machine=i386-unknown
                os=-isc
                ;;
+       i486v32)
+               basic_machine=i486-unknown
+               os=-sysv32
+               ;;
+       i486-sco* | i486sco | sco)
+               basic_machine=i486-unknown
+               os=-sco3.2v2
+               ;;
+       i486-isc* | isc)
+               basic_machine=i486-unknown
+               os=-isc
+               ;;
        i386v4*)
                basic_machine=i386-unknown
                os=-sysv4
@@ -125,6 +138,10 @@ case $basic_machine in
                basic_machine=i386-unknown
                os=-sysv
                ;;
+       i486v)
+               basic_machine=i486-unknown
+               os=-sysv
+               ;;
        spur)
                basic_machine=spur-unknown
                ;;
@@ -170,7 +187,13 @@ case $basic_machine in
                ;;
        iris | iris4d)
                basic_machine=mips-sgi
-               os=-irix
+               case $os in
+                   -irix*)
+                       ;;
+                   *)
+                       os=-irix4
+                       ;;
+               esac
                ;;
        news | news700 | news800 | news900)
                basic_machine=m68k-sony
@@ -180,7 +203,7 @@ case $basic_machine in
                basic_machine=m68000-att
                ;;
        3b*)
-               basic_machine=we32-att
+               basic_machine=we32k-att
                ;;
        delta | 3300 | motorola-3300 | motorola-delta \
              | 3300-motorola | delta-motorola)
@@ -242,6 +265,9 @@ case $basic_machine in
        ps2)
                basic_machine=i386-ibm
                ;;
+       fx2800)
+               basic_machine=i860-alliant
+               ;;
        next)
                basic_machine=m68k-next
                os=-bsd
@@ -282,7 +308,7 @@ case $basic_machine in
                basic_machine=mips-sony
                os=-newsos
                ;;
-       decstation-dec | decstation | decstation-3100 | pmax | pmin | dec3100 | decstatn)
+       decstation | decstation-3100 | pmax | pmin | dec3100 | decstatn)
                basic_machine=mips-dec
                ;;
        magnum | m3230)
@@ -310,7 +336,7 @@ case $basic_machine in
                ;;
        amigaunix | amix)
                basic_machine=m68k-cbm
-               os=-amix
+               os=-sysv4
                ;;
        cray | ymp)
                basic_machine=ymp-cray
@@ -411,12 +437,12 @@ case $basic_machine in
        vax)
                basic_machine=vax-dec
                ;;
+       we32k)
+               basic_machine=we32k-att
+               ;;
        sparc)
                basic_machine=sparc-sun
                ;;
-       fx2800)
-               basic_machine=i860-alliant
-               ;;
        *)
                echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
                exit 1
@@ -445,14 +471,17 @@ case $os in
        # Each alternative must end in a *, to match a version number.
        -bsd* | -sysv* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
              | -vms* | -sco* | -esix* | -isc* | -aix* | -sunos* | -hpux* \
-             | -unos* | -osf* | -luna* | -dgux* | -solari* | -sym* | -amix* \
+             | -unos* | -osf* | -luna* | -dgux* | -solari* | -sym* \
              | -amigados* | -msdos* | -newsos* | -unicos* | -aos* \
              | -nindy* | -vxworks* | -ebmon* | -hds* | -m88kbcs*)
                ;;
        -osfrose*)
-               os=-osf
+               os=-osfrose
                ;;
        -osf*)
+               os=-osf
+               ;;
+       -utek*)
                os=-bsd
                ;;
        -dynix*)
@@ -492,10 +521,10 @@ else
 # machine or put another way, the most popular os provided with the machine.
 case $basic_machine in
        *-dec | vax-*)
-               os=-ultrix42
+               os=-ultrix4.2
                ;;
        i386-sun)
-               os=-sunos402
+               os=-sunos4.0.2
                ;;
        m68000-sun)
                os=-sunos3
@@ -507,7 +536,7 @@ case $basic_machine in
                os=-sysv3
                ;;
        sparc-* | *-sun)
-               os=-sunos411
+               os=-sunos4.1.1
                ;;
        *-ibm)
                os=-aix
@@ -536,7 +565,7 @@ case $basic_machine in
        *-ns)
                os=-genix
                ;;
-       i386-*)
+       i[34]86-*)
                os=-sco3.2v2
                ;;
        *)