]> Git Repo - binutils.git/blobdiff - config.sub
changed changelog
[binutils.git] / config.sub
index 5d2c138b5daeec4b1f2d86f21df744d555f5175d..3d0aa791a8b8d047fa54f73ba6e86a30a5d97651 100755 (executable)
 #      CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
 # it is wrong to echo any other type of specification
 
+if [ x$1 = x ]
+then
+       echo Configuration name missing. 1>&2
+       echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
+       echo "or     $0 ALIAS" 1>&2
+       echo where ALIAS is a recognized configuration type. 1>&2
+       exit 1
+fi
+
 # First pass through any local machine types.
 case $1 in
        *local*)
@@ -46,7 +55,7 @@ case $1 in
 esac
 
 # Separate what the user gave into CPU-COMPANY and OS (if any).
-basic_machine=`echo $1 | sed 's/-[^-]*$//'`
+basic_machine=`echo $1 | sed 's/-[^-][^-]*$//'`
 if [ $basic_machine != $1 ]
 then os=`echo $1 | sed 's/.*-/-/'`
 else os=; fi
@@ -59,14 +68,24 @@ case $os in
        -unicom* | -ibm* | -next* | -hp | -isi* | -apollo | -altos* | \
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -osf* | \
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
-       -harris)
+       -harris | -sim)
                os=
                basic_machine=$1
                ;;
+       -scout)
+               ;;
        -sco*)
                os=-scosysv322
                basic_machine=i386-unknown
                ;;
+       -OSE68k | -ose68k | -OSE | -ose | -es1800)
+               os=-ose
+               basic_machine=m68k-ericsson
+               ;;
+       -OSE68000 | -ose68000)
+               os=-ose
+               basic_machine=m68000-ericsson
+               ;;
        -isc*)
                os=-iscsysv
                basic_machine=i386-unknown
@@ -90,27 +109,22 @@ esac
 # Decode aliases for certain CPU-COMPANY combinations.
 case $basic_machine in
        # Recognize the basic CPU types with without company name.
-       tahoe | i386 | i860 | m68k | m68000 | m88k | ns32k | arm | pyramid \
-               | tron | a29k | 580 | i960 | h8300 | v70)
+       tahoe | i386 | i486 | i860 | m68k | m680[01234]0 | m683?2 \
+               | m88k | ns32k | arm | pyramid \
+               | tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1 | we32k\
+               | v70 | we32k | z8k)
                basic_machine=$basic_machine-unknown
                ;;
        # Recognize the basic CPU types with with company name.
-       vax-* | tahoe-* | i386-* | i860-* | m68k-* | m68000-* | m88k-* \
+       vax-* | tahoe-* | i386-* | i486-* | i860-* | m68k-* \
+             | m680[01234]0-* | m683?2-* | m88k-* \
              | sparc-* | ns32k-* | alliant-* | arm-* | c[123]* \
              | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
              | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \
-             | hppa-*)
+             | hppa1.0-* | hppa1.1-* | we32k-* | z8k-*)
                ;;
        # Recognize the various machine names and aliases which stand
        # for a CPU type and a company and sometimes even an OS.
-# start-sanitize-life
-       life-*) ;;
-       life)
-               basic_machine=life-philips
-               os=-none
-               ;;
-# end-sanitize-life
-
 # start-sanitize-v9
        sparc64-*) ;;
        hal-32 | hal32)
@@ -151,18 +165,38 @@ case $basic_machine in
                basic_machine=i386-unknown
                os=-scosysv322
                ;;
+       go32 | i386-go32)
+               basic_machine=i386-unknown
+               os=-go32
+               ;;
        i386-isc* | isc)
                basic_machine=i386-unknown
                os=-iscsysv
                ;;
+       i386-linux* | linux)
+               basic_machine=i386-unknown
+               os=-linux
+               ;;
        i386v4*)
                basic_machine=i386-unknown
                os=-sysv4
                ;;
+       i486v4*)
+               basic_machine=i486-unknown
+               os=-sysv4
+               ;;
        i386v)
                basic_machine=i386-unknown
                os=-sysv
                ;;
+       i486v)
+               basic_machine=i486-unknown
+               os=-sysv
+               ;;
+       386bsd)
+               basic_machine=i386-unknown
+               os=-bsd
+               ;;
        spur)
                basic_machine=spur-unknown
                ;;
@@ -221,6 +255,10 @@ case $basic_machine in
        3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
                basic_machine=m68k-att
                ;;
+       3b* | we32k* )
+               basic_machine=we32k-att
+               os=-sysv
+               ;;
        delta | 3300 | motorola-3300 | motorola-delta \
              | 3300-motorola | delta-motorola)
                basic_machine=m68k-motorola
@@ -263,12 +301,24 @@ case $basic_machine in
                basic_machine=sparc-sun
                os=-sunos4
                ;;
+       sun4sol2)
+               basic_machine=sparc-sun
+               os=-solaris2
+               ;;
+       z8ksim)
+               basic_machine=z8k-unknown
+               os=-sim
+               ;;
        sun3)
                basic_machine=m68k-sun
                ;;
        sun4)
                basic_machine=sparc-sun
                ;;
+       msdos)
+               basic_machine=i386-unknown      
+               os=-msdos
+               ;;
        pbd)
                basic_machine=sparc-unicom
                ;;
@@ -280,7 +330,7 @@ case $basic_machine in
                ;;
        next)
                basic_machine=m68k-next
-               os=-sysv
+               os=-bsd
                ;;
        hp9k3[2-9][0-9])
                basic_machine=m68k-hp
@@ -288,8 +338,11 @@ case $basic_machine in
        hp9k31[0-9] | hp9k2[0-9][0-9])
                basic_machine=m68000-hp
                ;;
-       hp9k8[0-9][0-9] | hp9k7[0-9][0-9] | hp8[0-9][0-9] | hp7[0-9][0-9])
-               basic_machine=hp800-hp
+       hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
+               basic_machine=hppa1.1-hp
+               ;;
+       hp9k8[0-9][0-9] | hp8[0-9][0-9])
+               basic_machine=hppa1.0-hp
                ;;
        isi68 | isi)
                basic_machine=m68k-isi
@@ -317,7 +370,7 @@ case $basic_machine in
                os=-newsos
                ;;
        st2000)
-               basic_machine=m68kmote-tandem
+               basic_machine=m68k-tandem
                ;;
        decstation-dec | decstation | decstation-3100 | pmax | pmin | dec3100 | decstatn)
                basic_machine=mips-dec
@@ -377,9 +430,26 @@ case $basic_machine in
                basic_machine=a29k-amd
                os=-ebmon
                ;;
-       h8300hds)
+
+       h8300hms)
                basic_machine=h8300-hitachi
-               os=-hds
+               os=-hms
+               ;;
+       udi29k)
+               basic_machine=a29k-amd
+               os=-udi
+               ;;
+       a29khif)
+               basic_machine=a29k-amd
+               os=-udi
+               ;;
+       sa29200)
+               basic_machine=a29k-amd
+               os=-udi
+               ;;
+       h8300xray)
+               basic_machine=h8300-hitachi
+               os=-xray
                ;;
        harris)
                basic_machine=m88k-harris
@@ -401,8 +471,16 @@ case $basic_machine in
                basic_machine=m68k-hp
                os=-hpux
                ;;
+       hppabsd)
+               basic_machine=hppa-hp
+               os=-bsd
+               ;;
+       hppahpux)
+               basic_machine=hppa-hp
+               os=-hpux
+               ;;
        ncr3000)
-               basic_machine=i386-ncr
+               basic_machine=i486-ncr
                os=-sysv4
                ;;
        necv70)
@@ -437,10 +515,47 @@ case $basic_machine in
                basic_machine=m68k-wrs
                os=-vxworks
                ;;
+       es1800 | OSE68k | ose68k)
+               basic_machine=m68k-ericsson
+               os=-ose
+               ;;
+       OSE68000 | ose68000)
+               basic_machine=m68000-ericsson
+               os=-ose
+               ;;
        os68k)
                basic_machine=m68k-none
                os=-os68k
                ;;
+       sparclite)
+               basic_machine=sparclite-fujitsu
+               os=-none
+               ;;
+       sparclite-wrs)
+               basic_machine=sparclite-wrs
+               os=-vxworks
+               ;;
+       sparcfrw)
+               basic_machine=sparcfrw-sun
+               os=-sunos4
+               ;;
+       sparcfrwcompat)
+               basic_machine=sparcfrwcompat-sun
+               os=-sunos4
+               ;;
+       sparclitefrw)
+               basic_machine=sparclitefrw-fujitsu
+               os=-none
+               ;;
+       sparclitefrwcompat)
+               basic_machine=sparclitefrwcompat-fujitsu
+               os=-none
+               ;;
+       adobe68k)
+               basic_machine=m68010-adobe
+               os=-scout
+               ;;
+
        none)
                basic_machine=none-none
                os=-none
@@ -481,18 +596,21 @@ case $os in
        # The portable systems comes first.
        # Each alternative must end in a *, to match a version number.
        -bsd* | -sysv* | -mach* | -minix* | -genix* | -ultrix* \
+             | -aout | -coff | -elf \
              | -vms* | -sco* | -esix* | -isc* | -aix* | -sunos* | -hpux* \
-             | -unos* | -osf* | -v88r* | -luna* | -dgux* | -solari* | -sym* \
-             | -amigados* | -msdos* | -none* | -os68k* | -irix* \
-             | -nindy* | -vxworks* | -ebmon* | -hds* | -m88kbcs*)
-               ;;
+             | -unos* | -osf* | -v88r* | -luna* | -dgux* | -solaris* | -sym* \
+             | -newsos | -amigados* | -msdos* | -none* | -os68k* | -irix* \
+             | -nindy* | -vxworks* | -ebmon* | -udi | -hms* | -xray \
+             | -m88kbcs* | -go32 | -linux* | -sim | -es1800*)
+       ;;
 # start-sanitize-v9
        -v7 | -v9 | -hal32 | -hal64) ;;
 # end-sanitize-v9
 
-       -newsos*)
-               os=-bsd
-               ;;
+# Note that readline checks for newsos
+#      -newsos*)
+#              os=-bsd
+#              ;;
        -osfrose*)
                os=-osf
                ;;
@@ -505,6 +623,9 @@ case $os in
        -aos*)
                os=-bsd
                ;;
+       -386bsd)
+               os=-bsd
+               ;;
        -ctix* | -uts*)
                os=-sysv
                ;;
@@ -514,6 +635,12 @@ case $os in
        -svr3)
                os=-sysv3
                ;;
+       -ose*)
+               os=-ose
+               ;;
+       -es1800*)
+               os=-ose
+               ;;
        *)
                # Get rid of the `-' at the beginning of $os.
                os=`echo $1 | sed 's/[^-]*-//'`
@@ -602,6 +729,9 @@ case $basic_machine in
                        -genix*)
                                vendor=ns
                                ;;
+                       -vxworks*)
+                               vendor=wrs
+                               ;;
                esac
                basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
                ;;
This page took 0.031675 seconds and 4 git commands to generate.