diff options
author | K. Richard Pixley <rich@cygnus> | 1991-10-02 04:01:08 +0000 |
---|---|---|
committer | K. Richard Pixley <rich@cygnus> | 1991-10-02 04:01:08 +0000 |
commit | b9fe720d0667e4de43e0ea17710698669a3c9cde (patch) | |
tree | e5afa1b8835c8b164a4b98b5930a4b0acec15c8b | |
parent | bcb14db5491bdd544089981d85523bc984bfcb7b (diff) | |
download | gdb-b9fe720d0667e4de43e0ea17710698669a3c9cde.zip gdb-b9fe720d0667e4de43e0ea17710698669a3c9cde.tar.gz gdb-b9fe720d0667e4de43e0ea17710698669a3c9cde.tar.bz2 |
steves h8 patches
-rwxr-xr-x | bfd/config.sub | 46 | ||||
-rwxr-xr-x | binutils/config.sub | 680 | ||||
-rwxr-xr-x | config.sub | 18 | ||||
-rwxr-xr-x | gas/config.sub | 427 | ||||
-rwxr-xr-x | gdb/config.sub | 29 | ||||
-rwxr-xr-x | ld/config.sub | 680 | ||||
-rwxr-xr-x | readline/config.sub | 46 |
7 files changed, 1217 insertions, 709 deletions
diff --git a/bfd/config.sub b/bfd/config.sub index 805bb8b..dac9ab8 100755 --- a/bfd/config.sub +++ b/bfd/config.sub @@ -22,7 +22,7 @@ case "$1" in # cpu alone is a valid alias for cpu-none-none. vax | tahoe | i386 | i860 | m68k | m68000 | m88k | sparc | ns32k \ | alliant | arm | c1 | c2 | mips | pyramid | tron | a29k \ - | rtpc | rs6000 | i960) + | romp | rs6000 | i960 | h8300) cpu=$1 vendor=none os=none @@ -37,6 +37,11 @@ altosgas) vendor=altos os=gas ;; +am29k) + cpu=a29k + vendor=none + os=bsd + ;; amdahl) cpu=580 vendor=amdahl @@ -105,6 +110,13 @@ gmicro) vendor=gmicro os=sysv # maybe? ;; + +h8300hds) + cpu=h8300 + vendor=hitachi + os=hds + ;; + # start-sanitize-v9 hal-32 | hal32) cpu=sparc64 @@ -162,6 +174,12 @@ iris | iris4d) vendor=sgi os=irix # maybe? ;; + +dpx2) + vendor=bull + cpu=m68k + os=sysv + ;; isi | isi68) cpu=m68k vendor=isi @@ -195,17 +213,17 @@ mmax) news | news700 | news800 | news900) cpu=m68k vendor=sony - os=sysv # maybe? + os=newsos3 # Based on bsd-4.3 ;; news1000) cpu=m68030 vendor=sony - os=sysv # maybe? + os=newsos3 # ? ;; news-3600 | bigmips | risc-news) cpu=mips vendor=sony - os=newsos # maybe? + os=newsos4 # Presumably? ;; next) cpu=m68k @@ -227,6 +245,11 @@ np1) vendor=gould os=sysv # maybe? ;; +rtpc) + cpu=romp + vendor=ibm + os=aix # maybe? + ;; pbd) cpu=sparc vendor=unicom @@ -368,7 +391,7 @@ esac case "${cpu}" in none | vax | tahoe | i386 | i860 | m68k | m68000 | m88k | sparc \ | ns32k | alliant | arm | c1 | c2 | mips | pyramid | tron \ - | a29k | rtpc | rs6000 | i960 | xmp | ymp | cray2 | 580) + | a29k | romp | rs6000 | i960 | xmp | ymp | cray2 | 580 | h8300) ;; # start-sanitize-v9 @@ -386,9 +409,9 @@ esac case "${vendor}" in altos | amdahl | aout | apollo | att | bcs | bout |\ cbm | convergent | convex | coff | cray | dec | encore |\ - gould | intel | isi | hp | ibm | little | mips | motorola |\ + gould | hitachi | intel | isi | hp | ibm | little | mips | motorola |\ ncr | next | none | nyu | sco | sequent | sgi | sony | sun |\ - unicom | utek | wrs ) ;; + unicom | utek | wrs | bull ) ;; # start-sanitize-v9 hal) ;; @@ -403,10 +426,11 @@ esac # verify that the os is known, if it exists. case "${os}" in -aix* | aout | bout | bsd* | coff | ctix* | dynix* | esix* | hpux* | irix* \ - | isc* | mach* | newsos* | nindy* | none | osf* | osf* | sco* \ - | sunos* | sysv* | ultrix* | unos* | v88r* | vms* | vxworks* \ - | sym[1-9]* | unicos* | uts | svr4 | amigados) +aix* | aout | bout | bsd* | coff | ctix* | dynix* | esix* | hpux* \ + | hds | irix* | isc* | kern | mach* | newsos* | nindy* | none \ + | osf* | sco* | sunos* | sysv* | ultrix* | unos* | v88r* \ + | vms* | vxworks* | sym[1-9]* | unicos* | uts | svr4 \ + | amigados) ;; # start-sanitize-v9 diff --git a/binutils/config.sub b/binutils/config.sub index 58338df..dac9ab8 100755 --- a/binutils/config.sub +++ b/binutils/config.sub @@ -11,266 +11,436 @@ # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless -# configuration. +# configuration (e.g. a typo). -# Separate what the user gave into CPU-company and OS (if any). -basic_machine=`echo $1 | sed 's/-[^-]*$//'` -if [ $basic_machine != $1 ] -then os=`echo $1 | sed 's/^.*-/-/'` -else os=; fi +# Please email any bugs, comments, and/or additions to this file to: +# configure@cygnus.com -# Decode aliases for certain machine-company combinations. -case $basic_machine in - # Recognize the basic CPU types without company name. - vax | tahoe | i386 | i860 | m68k | m68000 | m88k | sparc | ns32k \ - | alliant | arm | c1 | c2 | mips | pyramid | tron | a29k \ - | rtpc | rs6000 | i960 | none) - ;; - # Recognize the basic CPU types with company name. - vax-* | tahoe-* | i386-* | i860-* | m68k-* | m68000-* | m88k-* \ - | sparc-* | ns32k-* | alliant-* | arm-* | c1-* | c2-* \ - | mips-* | pyramid-* | tron-* | a29k-* | rtpc-* \ - | rs6000-* | i960-*) - ;; - # Recognize the machine names - # which stand for a CPU time and a company. - nindy960) - basic_machine=i960-intel - os=-nindy - ;; - vxworks68) - basic_machine=m68k-wrs - os=-vxworks - ;; - vxworks960) - basic_machine=i960-wrs - os=-vxworks - ;; - am29k) - basic_machine=a29k-unknown - os=-bsd - ;; - umax) - basic_machine=ns32k-umax - os=-sysv # maybe? - ;; - pn) - basic_machine=pn-gould - os=-sysv # maybe? - ;; - np1) - basic_machine=np1-gould - os=-sysv # maybe? - ;; - merlin) - basic_machine=merlin-utek - os=-sysv # maybe? - ;; - iris | iris4d) - basic_machine=mips-sgi - os=-sysv # maybe? - ;; - news1000) - basic_machine=m68030-sony - os=-sysv # maybe? - ;; - news | news700 | news800 | news900) - basic_machine=m68k-sony - os=-sysv # maybe? - ;; - unixpc | safari | pc7300 | 3b1 | 7300 | 7300-att | att-7300) - basic_machine=m68k-att - os=-sysv # maybe? - ;; - delta | 3300 | motorola-3300 | motorola-delta \ - | 3300-motorola | delta-motorola) - basic_machine=m68k-motorola - os=-sysv # maybe? - ;; - vax-dec) - basic_machine=vax - os=-ultrix # maybe? - ;; - balance) - basic_machine=ns32k-sequent - os=-dynix - ;; - mmax) - basic_machine=ns32k-encore - os=-sysv # maybe? - ;; - symmetry) - basic_machine=i386-sequent - os=-dynix - ;; - sun2) - basic_machine=m68000-sun - os=-sunos4 - ;; - sun2os3) - basic_machine=m68000-sun - os=-sunos3 - ;; - sun2os4) - basic_machine=m68000-sun - os=-sunos4 - ;; - sun3) - basic_machine=m68k-sun - os=-sunos4 - ;; - sun3os3) - basic_machine=m68k-sun - os=-sunos3 - ;; - sun3os4) - basic_machine=m68k-sun - os=-sunos4 - ;; - sun4) - basic_machine=sparc-sun - os=-sunos4 - ;; - sun4os3) - basic_machine=sparc-sun - os=-sunos3 - ;; - sun4os4) - basic_machine=sparc-sun - os=-sunos4 - ;; - pbd) - basic_machine=sparc-unicom - os=-sysv - ;; - roadrunner | sun386 | sun386i) - basic_machine=i386-sun - os=-sunos - ;; - ps2) - basic_machine=i386-ibm - os=-sysv # maybe? - ;; - i386sco) - basic_machine=i386-sco - os=-sysv # maybe? - ;; - i386v) - basic_machine=i386-unknown - os=-sysv - ;; - i386v32) - basic_machine=i386-unknown - os=-sysv32 - ;; - next) - basic_machine=m68k-next - os=-sysv # maybe? - ;; - hp300bsd) - basic_machine=m68k-hp - os=-bsd - ;; - hp300hpux | hpux | hp9k3[2-9][0-9]) - basic_machine=m68k-hp - os=-hpux - ;; - hp9k31[0-9] | hp9k2[0-9][0-9]) - basic_machine=m68000-hp - os=-hpux - ;; - isi | isi68) - basic_machine=m68k-isi - os=-sysv # maybe? - ;; - apollo68) - basic_machine=m68k-apollo - os=-sysv # maybe? - ;; - altos | altos3068) - basic_machine=m68k-altos - os=-sysv # maybe? - ;; - altosgas) - basic_machine=m68k-altos - os=-gas - ;; - miniframe) - basic_machine=m68000-convergent - os=-sysv # maybe? - ;; - tower | tower-32) - basic_machine=m68k-ncr - os=-sysv # maybe? - ;; - bigmips | news-3600 | risc-news) - basic_machine=mips-sony - os=-newsos # maybe? - ;; - littlemips) - basic_machine=mips-little - os=-bsd - ;; - dec3100 | decstatn | decstation | decstation-3100 | pmax) - basic_machine=mips-dec - os=-ultrix - ;; - magnum | m3230) - basic_machine=mips-mips - os=-sysv # maybe? - ;; - gmicro) - basic_machine=tron - os=-sysv # maybe? - ;; - convex-c1) - basic_machine=c1-convex - os=-sysv # maybe? - ;; - convex-c2) - basic_machine=c2-convex - os=-sysv # maybe? - ;; - *) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 +# decode aliases into canonical names + +case "$1" in +# cpu alone is a valid alias for cpu-none-none. +vax | tahoe | i386 | i860 | m68k | m68000 | m88k | sparc | ns32k \ + | alliant | arm | c1 | c2 | mips | pyramid | tron | a29k \ + | romp | rs6000 | i960 | h8300) + cpu=$1 + vendor=none + os=none + ;; +altos | altos3068) + cpu=m68k + vendor=altos + os=sysv # maybe? + ;; +altosgas) + cpu=m68k + vendor=altos + os=gas + ;; +am29k) + cpu=a29k + vendor=none + os=bsd + ;; +amdahl) + cpu=580 + vendor=amdahl + os=uts + ;; +amigados) + cpu=m68k + vendor=cbm + os=amigados # Native AmigaDOS + ;; +amigaunix | amix) + cpu=m68k + vendor=cbm + os=svr4 # System V Release 4 (svr4 is an industry recognized acronym) + ;; +apollo68) + cpu=m68k + vendor=apollo + os=sysv # maybe? + ;; +balance) + cpu=ns32k + vendor=sequent + os=dynix + ;; +convex-c1) + cpu=c1 + vendor=convex + os=sysv # maybe? + ;; +convex-c2) + cpu=c2 + vendor=convex + os=sysv # maybe? + ;; +cray | ymp) + cpu=ymp + vendor=cray + os=unicos + ;; +cray2) + cpu=cray2 + vendor=cray + os=unicos + ;; +dec3100 | decstatn | decstation | decstation-3100 | pmax | pmin) + cpu=mips + vendor=dec + os=ultrix + ;; +delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + cpu=m68k + vendor=motorola + os=sysv # maybe? + ;; + +delta88) + cpu=m88k + vendor=motorola + os=m88kbcs + ;; + +gmicro) + cpu=tron + vendor=gmicro + os=sysv # maybe? + ;; + +h8300hds) + cpu=h8300 + vendor=hitachi + os=hds + ;; + +# start-sanitize-v9 +hal-32 | hal32) + cpu=sparc64 + vendor=hal + os=hal32 + ;; +hal-64 | hal64) + cpu=sparc64 + vendor=hal + os=hal64 + ;; +sparc64) + cpu=sparc64 + vendor=sun + os=v9 + ;; +sparc64-v7 | sparc64v7) + cpu=sparc64 + vendor=sun + os=v7 + ;; +# end-sanitize-v9 +hp300bsd) + cpu=m68k + vendor=hp + os=bsd + ;; +hp300hpux | hpux | hp9k3[2-9][0-9]) + cpu=m68k + vendor=hp + os=hpux + ;; +hp9k31[0-9] | hp9k2[0-9][0-9]) + cpu=m68000 + vendor=hp + os=hpux + ;; +i386sco) + cpu=i386 + vendor=sco + os=sysv # maybe? + ;; +i386v) + cpu=i386 + vendor=none + os=sysv + ;; +i386v32) + cpu=i386 + vendor=none + os=sysv32 + ;; +iris | iris4d) + cpu=mips + vendor=sgi + os=irix # maybe? + ;; + +dpx2) + vendor=bull + cpu=m68k + os=sysv + ;; +isi | isi68) + cpu=m68k + vendor=isi + os=sysv # maybe? + ;; +littlemips) + cpu=mips + vendor=little + os=bsd + ;; +magnum | m3230) + cpu=mips + vendor=mips + os=sysv # maybe? + ;; +merlin) + cpu=ns32k + vendor=utek + os=sysv # maybe? + ;; +miniframe) + cpu=m68000 + vendor=convergent + os=sysv # maybe? + ;; +mmax) + cpu=ns32k + vendor=encore + os=sysv # maybe? + ;; +news | news700 | news800 | news900) + cpu=m68k + vendor=sony + os=newsos3 # Based on bsd-4.3 + ;; +news1000) + cpu=m68030 + vendor=sony + os=newsos3 # ? + ;; +news-3600 | bigmips | risc-news) + cpu=mips + vendor=sony + os=newsos4 # Presumably? + ;; +next) + cpu=m68k + vendor=next + os=sysv # maybe? + ;; +nindy960) + cpu=i960 + vendor=intel + os=nindy + ;; +none) + cpu=none + vendor=none + os=none + ;; +np1) + cpu=np1 + vendor=gould + os=sysv # maybe? + ;; +rtpc) + cpu=romp + vendor=ibm + os=aix # maybe? + ;; +pbd) + cpu=sparc + vendor=unicom + os=sysv + ;; +pn) + cpu=pn + vendor=gould + os=sysv # maybe? + ;; +ps2) + cpu=i386 + vendor=ibm + os=sysv # maybe? + ;; +sun2) + cpu=m68000 + vendor=sun + os=sunos4 + ;; +sun2os3) + cpu=m68000 + vendor=sun + os=sunos3 + ;; +sun2os4) + cpu=m68000 + vendor=sun + os=sunos4 + ;; +sun3) + cpu=m68k + vendor=sun + os=sunos4 + ;; +sun3os3) + cpu=m68k + vendor=sun + os=sunos3 + ;; +sun3os4) + cpu=m68k + vendor=sun + os=sunos4 + ;; +sun386 | roadrunner | sun386i) + cpu=i386 + vendor=sun + os=sunos + ;; +sun4) + cpu=sparc + vendor=sun + os=sunos4 + ;; +sun4os3) + cpu=sparc + vendor=sun + os=sunos3 + ;; +sun4os4) + cpu=sparc + vendor=sun + os=sunos4 + ;; +symmetry) + cpu=i386 + vendor=sequent + os=dynix + ;; +tower | tower-32) + cpu=m68k + vendor=ncr + os=sysv # maybe? + ;; +ultra3) + cpu=a29k + vendor=nyu + os=sym1 + ;; +umax) + cpu=ns32k + vendor=encore + os=sysv # maybe? + ;; +unixpc | safari | pc7300 | 3b1 | 7300 | 7300-att | att-7300) + cpu=m68k + vendor=att + os=sysv # maybe? + ;; +vax-dec) + cpu=vax + vendor=dec + os=ultrix # maybe? + ;; +vxworks68) + cpu=m68k + vendor=wrs + os=vxworks + ;; +vxworks960) + cpu=i960 + vendor=wrs + os=vxworks + ;; +xmp) + cpu=xmp + vendor=cray + os=unicos + ;; +# not an alias. parse what we expect to be a canonical name. +*) + cpu=`echo $1 | sed 's/-.*$//'` + + if [ "${cpu}" = "$1" ] ; then + # no vendor so this is an invalid name. + echo '***' No vendor: configuration \`$1\' not recognized 1>&2 exit 1 - ;; + else + # parse out vendor + rest=`echo $1 | sed "s/${cpu}-//"` + vendor=`echo ${rest} | sed 's/-.*$//'` + + if [ "${vendor}" = "${rest}" ] ; then + # a missing os is acceptable + os=none + else + os=`echo ${rest} | sed "s/${vendor}-//"` + fi + fi + ;; esac -# Decode manufacturer-specific aliases for certain operating systems. +# At this point we should have three parts of a canonical name in cpu, +# vendor, and os. -case $os in - # First accept the basic system types. - # The portable systems comes first. - -bsd* | -sysv* | -mach* \ - | -vms* | -sco* | -esix* | -isc* | -aix* | -sunos* | -hpux* \ - | -unos* | -osf* | -v88r* | -aout | -coff | -bout \ - | -nindy | -vxworks) - ;; - -newsos*) - os=-bsd - ;; - -ultrix*) - os=-bsd - ;; - -osfrose*) - os=-osf - ;; - -osf*) - os=-bsd - ;; - -dynix*) - os=-bsd - ;; - -ctix*) - os=-sysv - ;; - *) - # Get rid of the `-' at the beginning of $os. - os=`echo $1 | sed 's/[^-]*-//'` - echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 - exit 1 - ;; +# verify that the cpu is known. + +case "${cpu}" in +none | vax | tahoe | i386 | i860 | m68k | m68000 | m88k | sparc \ + | ns32k | alliant | arm | c1 | c2 | mips | pyramid | tron \ + | a29k | romp | rs6000 | i960 | xmp | ymp | cray2 | 580 | h8300) + ;; + +# start-sanitize-v9 +sparc64) ;; +# end-sanitize-v9 + +*) + echo '***' Invalid cpu \`${cpu}\': configuration \`$1\' not recognized 1>&2 + exit 1 + ;; +esac + +# verify that the vendor is known. + +case "${vendor}" in + altos | amdahl | aout | apollo | att | bcs | bout |\ + cbm | convergent | convex | coff | cray | dec | encore |\ + gould | hitachi | intel | isi | hp | ibm | little | mips | motorola |\ + ncr | next | none | nyu | sco | sequent | sgi | sony | sun |\ + unicom | utek | wrs | bull ) ;; + +# start-sanitize-v9 +hal) ;; +# end-sanitize-v9 + +*) + echo '***' Invalid vendor \`${vendor}\': configuration \`$1\' not recognized 1>&2 + exit 1 + ;; +esac + +# verify that the os is known, if it exists. + +case "${os}" in +aix* | aout | bout | bsd* | coff | ctix* | dynix* | esix* | hpux* \ + | hds | irix* | isc* | kern | mach* | newsos* | nindy* | none \ + | osf* | sco* | sunos* | sysv* | ultrix* | unos* | v88r* \ + | vms* | vxworks* | sym[1-9]* | unicos* | uts | svr4 \ + | amigados) + ;; + +# start-sanitize-v9 +hal32 | hal64 | v7 | v9) ;; +# end-sanitize-v9 + +*) + echo '***' Invalid os \`${os}\': configuration \`$1\' not recognized 1>&2 + exit 1 + ;; esac -echo ${basic_machine}${os} +echo ${cpu}-${vendor}-${os} @@ -110,6 +110,13 @@ gmicro) vendor=gmicro os=sysv # maybe? ;; + +h8300hds) + cpu=h8300 + vendor=hitachi + os=hds + ;; + # start-sanitize-v9 hal-32 | hal32) cpu=sparc64 @@ -402,7 +409,7 @@ esac case "${vendor}" in altos | amdahl | aout | apollo | att | bcs | bout |\ cbm | convergent | convex | coff | cray | dec | encore |\ - gould | intel | isi | hp | ibm | little | mips | motorola |\ + gould | hitachi | intel | isi | hp | ibm | little | mips | motorola |\ ncr | next | none | nyu | sco | sequent | sgi | sony | sun |\ unicom | utek | wrs | bull ) ;; @@ -419,10 +426,11 @@ esac # verify that the os is known, if it exists. case "${os}" in -aix* | aout | bout | bsd* | coff | ctix* | dynix* | esix* | hpux* | irix* \ - | isc* | kern | mach* | newsos* | nindy* | none | osf* | sco* \ - | sunos* | sysv* | ultrix* | unos* | v88r* | vms* | vxworks* \ - | sym[1-9]* | unicos* | uts | svr4 | amigados) +aix* | aout | bout | bsd* | coff | ctix* | dynix* | esix* | hpux* \ + | hds | irix* | isc* | kern | mach* | newsos* | nindy* | none \ + | osf* | sco* | sunos* | sysv* | ultrix* | unos* | v88r* \ + | vms* | vxworks* | sym[1-9]* | unicos* | uts | svr4 \ + | amigados) ;; # start-sanitize-v9 diff --git a/gas/config.sub b/gas/config.sub index cd4d4af..dac9ab8 100755 --- a/gas/config.sub +++ b/gas/config.sub @@ -11,7 +11,7 @@ # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless -# configuration. +# configuration (e.g. a typo). # Please email any bugs, comments, and/or additions to this file to: # configure@cygnus.com @@ -22,96 +22,248 @@ case "$1" in # cpu alone is a valid alias for cpu-none-none. vax | tahoe | i386 | i860 | m68k | m68000 | m88k | sparc | ns32k \ | alliant | arm | c1 | c2 | mips | pyramid | tron | a29k \ - | rtpc | rs6000 | i960) + | romp | rs6000 | i960 | h8300) cpu=$1 vendor=none os=none ;; -nindy960) - cpu=i960 - vendor=intel - os=nindy - ;; -vxworks68) +altos | altos3068) cpu=m68k - vendor=wrs - os=vxworks + vendor=altos + os=sysv # maybe? ;; -vxworks960) - cpu=i960 - vendor=wrs - os=vxworks +altosgas) + cpu=m68k + vendor=altos + os=gas ;; am29k) cpu=a29k vendor=none os=bsd ;; -umax) - cpu=ns32k - vendor=encore - os=sysv # maybe? +amdahl) + cpu=580 + vendor=amdahl + os=uts ;; -pn) - cpu=pn - vendor=gould +amigados) + cpu=m68k + vendor=cbm + os=amigados # Native AmigaDOS + ;; +amigaunix | amix) + cpu=m68k + vendor=cbm + os=svr4 # System V Release 4 (svr4 is an industry recognized acronym) + ;; +apollo68) + cpu=m68k + vendor=apollo os=sysv # maybe? ;; -np1) - cpu=np1 - vendor=gould +balance) + cpu=ns32k + vendor=sequent + os=dynix + ;; +convex-c1) + cpu=c1 + vendor=convex os=sysv # maybe? ;; -merlin) - cpu=merlin - vendor=utek +convex-c2) + cpu=c2 + vendor=convex os=sysv # maybe? ;; -iris | iris4d) +cray | ymp) + cpu=ymp + vendor=cray + os=unicos + ;; +cray2) + cpu=cray2 + vendor=cray + os=unicos + ;; +dec3100 | decstatn | decstation | decstation-3100 | pmax | pmin) cpu=mips - vendor=sgi + vendor=dec + os=ultrix + ;; +delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + cpu=m68k + vendor=motorola os=sysv # maybe? ;; -news1000) - cpu=m68030 - vendor=sony + +delta88) + cpu=m88k + vendor=motorola + os=m88kbcs + ;; + +gmicro) + cpu=tron + vendor=gmicro os=sysv # maybe? ;; -news | news700 | news800 | news900) + +h8300hds) + cpu=h8300 + vendor=hitachi + os=hds + ;; + +# start-sanitize-v9 +hal-32 | hal32) + cpu=sparc64 + vendor=hal + os=hal32 + ;; +hal-64 | hal64) + cpu=sparc64 + vendor=hal + os=hal64 + ;; +sparc64) + cpu=sparc64 + vendor=sun + os=v9 + ;; +sparc64-v7 | sparc64v7) + cpu=sparc64 + vendor=sun + os=v7 + ;; +# end-sanitize-v9 +hp300bsd) cpu=m68k - vendor=sony - os=sysv # maybe? + vendor=hp + os=bsd ;; -unixpc | safari | pc7300 | 3b1 | 7300 | 7300-att | att-7300) +hp300hpux | hpux | hp9k3[2-9][0-9]) cpu=m68k - vendor=att + vendor=hp + os=hpux + ;; +hp9k31[0-9] | hp9k2[0-9][0-9]) + cpu=m68000 + vendor=hp + os=hpux + ;; +i386sco) + cpu=i386 + vendor=sco os=sysv # maybe? ;; -delta | 3300 | motorola-3300 | motorola-delta \ - | 3300-motorola | delta-motorola) +i386v) + cpu=i386 + vendor=none + os=sysv + ;; +i386v32) + cpu=i386 + vendor=none + os=sysv32 + ;; +iris | iris4d) + cpu=mips + vendor=sgi + os=irix # maybe? + ;; + +dpx2) + vendor=bull cpu=m68k - vendor=motorola + os=sysv + ;; +isi | isi68) + cpu=m68k + vendor=isi os=sysv # maybe? ;; -vax-dec) - cpu=vax - vendor=dec - os=ultrix # maybe? +littlemips) + cpu=mips + vendor=little + os=bsd ;; -balance) +magnum | m3230) + cpu=mips + vendor=mips + os=sysv # maybe? + ;; +merlin) cpu=ns32k - vendor=sequent - os=dynix + vendor=utek + os=sysv # maybe? + ;; +miniframe) + cpu=m68000 + vendor=convergent + os=sysv # maybe? ;; mmax) cpu=ns32k vendor=encore os=sysv # maybe? ;; -symmetry) +news | news700 | news800 | news900) + cpu=m68k + vendor=sony + os=newsos3 # Based on bsd-4.3 + ;; +news1000) + cpu=m68030 + vendor=sony + os=newsos3 # ? + ;; +news-3600 | bigmips | risc-news) + cpu=mips + vendor=sony + os=newsos4 # Presumably? + ;; +next) + cpu=m68k + vendor=next + os=sysv # maybe? + ;; +nindy960) + cpu=i960 + vendor=intel + os=nindy + ;; +none) + cpu=none + vendor=none + os=none + ;; +np1) + cpu=np1 + vendor=gould + os=sysv # maybe? + ;; +rtpc) + cpu=romp + vendor=ibm + os=aix # maybe? + ;; +pbd) + cpu=sparc + vendor=unicom + os=sysv + ;; +pn) + cpu=pn + vendor=gould + os=sysv # maybe? + ;; +ps2) cpu=i386 - vendor=sequent - os=dynix + vendor=ibm + os=sysv # maybe? ;; sun2) cpu=m68000 @@ -143,6 +295,11 @@ sun3os4) vendor=sun os=sunos4 ;; +sun386 | roadrunner | sun386i) + cpu=i386 + vendor=sun + os=sunos + ;; sun4) cpu=sparc vendor=sun @@ -158,127 +315,51 @@ sun4os4) vendor=sun os=sunos4 ;; -pbd) - cpu=sparc - vendor=unicom - os=sysv - ;; -roadrunner | sun386 | sun386i) - cpu=i386 - vendor=sun - os=sunos - ;; -ps2) - cpu=i386 - vendor=ibm - os=sysv # maybe? - ;; -i386sco) - cpu=i386 - vendor=sco - os=sysv # maybe? - ;; -i386v) - cpu=i386 - vendor=none - os=sysv - ;; -i386v32) +symmetry) cpu=i386 - vendor=none - os=sysv32 - ;; -next) - cpu=m68k - vendor=next - os=sysv # maybe? - ;; -hp300bsd) - cpu=m68k - vendor=hp - os=bsd - ;; -hp300hpux | hpux | hp9k3[2-9][0-9]) - cpu=m68k - vendor=hp - os=hpux - ;; -hp9k31[0-9] | hp9k2[0-9][0-9]) - cpu=m68000 - vendor=hp - os=hpux - ;; -isi | isi68) - cpu=m68k - vendor=isi - os=sysv # maybe? - ;; -apollo68) - cpu=m68k - vendor=apollo - os=sysv # maybe? + vendor=sequent + os=dynix ;; -altos | altos3068) +tower | tower-32) cpu=m68k - vendor=altos + vendor=ncr os=sysv # maybe? ;; -altosgas) - cpu=m68k - vendor=altos - os=gas +ultra3) + cpu=a29k + vendor=nyu + os=sym1 ;; -miniframe) - cpu=m68000 - vendor=convergent +umax) + cpu=ns32k + vendor=encore os=sysv # maybe? ;; -tower | tower-32) +unixpc | safari | pc7300 | 3b1 | 7300 | 7300-att | att-7300) cpu=m68k - vendor=ncr + vendor=att os=sysv # maybe? ;; -bigmips | news-3600 | risc-news) - cpu=mips - vendor=sony - os=newsos # maybe? - ;; -littlemips) - cpu=mips - vendor=little - os=bsd - ;; -dec3100 | decstatn | decstation | decstation-3100 | pmax) - cpu=mips +vax-dec) + cpu=vax vendor=dec - os=ultrix - ;; -magnum | m3230) - cpu=mips - vendor=mips - os=sysv # maybe? - ;; -gmicro) - cpu=tron - vendor=none - os=sysv # maybe? + os=ultrix # maybe? ;; -convex-c1) - cpu=c1 - vendor=convex - os=sysv # maybe? +vxworks68) + cpu=m68k + vendor=wrs + os=vxworks ;; -convex-c2) - cpu=c2 - vendor=convex - os=sysv # maybe? +vxworks960) + cpu=i960 + vendor=wrs + os=vxworks ;; -none) - cpu=none - vendor=none - os=none +xmp) + cpu=xmp + vendor=cray + os=unicos ;; - # not an alias. parse what we expect to be a canonical name. *) cpu=`echo $1 | sed 's/-.*$//'` @@ -308,10 +389,15 @@ esac # verify that the cpu is known. case "${cpu}" in -vax | tahoe | i386 | i860 | m68k | m68000 | m88k | sparc | ns32k \ - | alliant | arm | c1 | c2 | mips | pyramid | tron | a29k \ - | rtpc | rs6000 | i960 | none) +none | vax | tahoe | i386 | i860 | m68k | m68000 | m88k | sparc \ + | ns32k | alliant | arm | c1 | c2 | mips | pyramid | tron \ + | a29k | romp | rs6000 | i960 | xmp | ymp | cray2 | 580 | h8300) ;; + +# start-sanitize-v9 +sparc64) ;; +# end-sanitize-v9 + *) echo '***' Invalid cpu \`${cpu}\': configuration \`$1\' not recognized 1>&2 exit 1 @@ -321,10 +407,16 @@ esac # verify that the vendor is known. case "${vendor}" in -none | convex | mips | dec | little | sony | ncr | convergent \ - | altos | apollo | isi | hp | next | sco | ibm | sun \ - | unicom | sequent | encore | motorola | att | sgi \ - | utek | gould | wrs | intel | aout | bout | coff) ;; + altos | amdahl | aout | apollo | att | bcs | bout |\ + cbm | convergent | convex | coff | cray | dec | encore |\ + gould | hitachi | intel | isi | hp | ibm | little | mips | motorola |\ + ncr | next | none | nyu | sco | sequent | sgi | sony | sun |\ + unicom | utek | wrs | bull ) ;; + +# start-sanitize-v9 +hal) ;; +# end-sanitize-v9 + *) echo '***' Invalid vendor \`${vendor}\': configuration \`$1\' not recognized 1>&2 exit 1 @@ -335,9 +427,16 @@ esac case "${os}" in aix* | aout | bout | bsd* | coff | ctix* | dynix* | esix* | hpux* \ - | isc* | mach* | newsos* | nindy* | none | osf* | osf* | sco* \ - | sunos* | sysv* | ultrix* | unos* | v88r* | vms* | vxworks*) + | hds | irix* | isc* | kern | mach* | newsos* | nindy* | none \ + | osf* | sco* | sunos* | sysv* | ultrix* | unos* | v88r* \ + | vms* | vxworks* | sym[1-9]* | unicos* | uts | svr4 \ + | amigados) ;; + +# start-sanitize-v9 +hal32 | hal64 | v7 | v9) ;; +# end-sanitize-v9 + *) echo '***' Invalid os \`${os}\': configuration \`$1\' not recognized 1>&2 exit 1 diff --git a/gdb/config.sub b/gdb/config.sub index d6e0dc8..dac9ab8 100755 --- a/gdb/config.sub +++ b/gdb/config.sub @@ -37,6 +37,11 @@ altosgas) vendor=altos os=gas ;; +am29k) + cpu=a29k + vendor=none + os=bsd + ;; amdahl) cpu=580 vendor=amdahl @@ -105,6 +110,13 @@ gmicro) vendor=gmicro os=sysv # maybe? ;; + +h8300hds) + cpu=h8300 + vendor=hitachi + os=hds + ;; + # start-sanitize-v9 hal-32 | hal32) cpu=sparc64 @@ -201,17 +213,17 @@ mmax) news | news700 | news800 | news900) cpu=m68k vendor=sony - os=sysv # maybe? + os=newsos3 # Based on bsd-4.3 ;; news1000) cpu=m68030 vendor=sony - os=sysv # maybe? + os=newsos3 # ? ;; news-3600 | bigmips | risc-news) cpu=mips vendor=sony - os=newsos # maybe? + os=newsos4 # Presumably? ;; next) cpu=m68k @@ -397,7 +409,7 @@ esac case "${vendor}" in altos | amdahl | aout | apollo | att | bcs | bout |\ cbm | convergent | convex | coff | cray | dec | encore |\ - gould | intel | isi | hp | ibm | little | mips | motorola |\ + gould | hitachi | intel | isi | hp | ibm | little | mips | motorola |\ ncr | next | none | nyu | sco | sequent | sgi | sony | sun |\ unicom | utek | wrs | bull ) ;; @@ -414,10 +426,11 @@ esac # verify that the os is known, if it exists. case "${os}" in -aix* | aout | bout | bsd* | coff | ctix* | dynix* | esix* | hpux* | irix* \ - | isc* | kern | mach* | newsos* | nindy* | none | osf* | osf* | sco* \ - | sunos* | sysv* | ultrix* | unos* | v88r* | vms* | vxworks* \ - | sym[1-9]* | unicos* | uts | svr4 | amigados) +aix* | aout | bout | bsd* | coff | ctix* | dynix* | esix* | hpux* \ + | hds | irix* | isc* | kern | mach* | newsos* | nindy* | none \ + | osf* | sco* | sunos* | sysv* | ultrix* | unos* | v88r* \ + | vms* | vxworks* | sym[1-9]* | unicos* | uts | svr4 \ + | amigados) ;; # start-sanitize-v9 diff --git a/ld/config.sub b/ld/config.sub index 58338df..dac9ab8 100755 --- a/ld/config.sub +++ b/ld/config.sub @@ -11,266 +11,436 @@ # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless -# configuration. +# configuration (e.g. a typo). -# Separate what the user gave into CPU-company and OS (if any). -basic_machine=`echo $1 | sed 's/-[^-]*$//'` -if [ $basic_machine != $1 ] -then os=`echo $1 | sed 's/^.*-/-/'` -else os=; fi +# Please email any bugs, comments, and/or additions to this file to: +# configure@cygnus.com -# Decode aliases for certain machine-company combinations. -case $basic_machine in - # Recognize the basic CPU types without company name. - vax | tahoe | i386 | i860 | m68k | m68000 | m88k | sparc | ns32k \ - | alliant | arm | c1 | c2 | mips | pyramid | tron | a29k \ - | rtpc | rs6000 | i960 | none) - ;; - # Recognize the basic CPU types with company name. - vax-* | tahoe-* | i386-* | i860-* | m68k-* | m68000-* | m88k-* \ - | sparc-* | ns32k-* | alliant-* | arm-* | c1-* | c2-* \ - | mips-* | pyramid-* | tron-* | a29k-* | rtpc-* \ - | rs6000-* | i960-*) - ;; - # Recognize the machine names - # which stand for a CPU time and a company. - nindy960) - basic_machine=i960-intel - os=-nindy - ;; - vxworks68) - basic_machine=m68k-wrs - os=-vxworks - ;; - vxworks960) - basic_machine=i960-wrs - os=-vxworks - ;; - am29k) - basic_machine=a29k-unknown - os=-bsd - ;; - umax) - basic_machine=ns32k-umax - os=-sysv # maybe? - ;; - pn) - basic_machine=pn-gould - os=-sysv # maybe? - ;; - np1) - basic_machine=np1-gould - os=-sysv # maybe? - ;; - merlin) - basic_machine=merlin-utek - os=-sysv # maybe? - ;; - iris | iris4d) - basic_machine=mips-sgi - os=-sysv # maybe? - ;; - news1000) - basic_machine=m68030-sony - os=-sysv # maybe? - ;; - news | news700 | news800 | news900) - basic_machine=m68k-sony - os=-sysv # maybe? - ;; - unixpc | safari | pc7300 | 3b1 | 7300 | 7300-att | att-7300) - basic_machine=m68k-att - os=-sysv # maybe? - ;; - delta | 3300 | motorola-3300 | motorola-delta \ - | 3300-motorola | delta-motorola) - basic_machine=m68k-motorola - os=-sysv # maybe? - ;; - vax-dec) - basic_machine=vax - os=-ultrix # maybe? - ;; - balance) - basic_machine=ns32k-sequent - os=-dynix - ;; - mmax) - basic_machine=ns32k-encore - os=-sysv # maybe? - ;; - symmetry) - basic_machine=i386-sequent - os=-dynix - ;; - sun2) - basic_machine=m68000-sun - os=-sunos4 - ;; - sun2os3) - basic_machine=m68000-sun - os=-sunos3 - ;; - sun2os4) - basic_machine=m68000-sun - os=-sunos4 - ;; - sun3) - basic_machine=m68k-sun - os=-sunos4 - ;; - sun3os3) - basic_machine=m68k-sun - os=-sunos3 - ;; - sun3os4) - basic_machine=m68k-sun - os=-sunos4 - ;; - sun4) - basic_machine=sparc-sun - os=-sunos4 - ;; - sun4os3) - basic_machine=sparc-sun - os=-sunos3 - ;; - sun4os4) - basic_machine=sparc-sun - os=-sunos4 - ;; - pbd) - basic_machine=sparc-unicom - os=-sysv - ;; - roadrunner | sun386 | sun386i) - basic_machine=i386-sun - os=-sunos - ;; - ps2) - basic_machine=i386-ibm - os=-sysv # maybe? - ;; - i386sco) - basic_machine=i386-sco - os=-sysv # maybe? - ;; - i386v) - basic_machine=i386-unknown - os=-sysv - ;; - i386v32) - basic_machine=i386-unknown - os=-sysv32 - ;; - next) - basic_machine=m68k-next - os=-sysv # maybe? - ;; - hp300bsd) - basic_machine=m68k-hp - os=-bsd - ;; - hp300hpux | hpux | hp9k3[2-9][0-9]) - basic_machine=m68k-hp - os=-hpux - ;; - hp9k31[0-9] | hp9k2[0-9][0-9]) - basic_machine=m68000-hp - os=-hpux - ;; - isi | isi68) - basic_machine=m68k-isi - os=-sysv # maybe? - ;; - apollo68) - basic_machine=m68k-apollo - os=-sysv # maybe? - ;; - altos | altos3068) - basic_machine=m68k-altos - os=-sysv # maybe? - ;; - altosgas) - basic_machine=m68k-altos - os=-gas - ;; - miniframe) - basic_machine=m68000-convergent - os=-sysv # maybe? - ;; - tower | tower-32) - basic_machine=m68k-ncr - os=-sysv # maybe? - ;; - bigmips | news-3600 | risc-news) - basic_machine=mips-sony - os=-newsos # maybe? - ;; - littlemips) - basic_machine=mips-little - os=-bsd - ;; - dec3100 | decstatn | decstation | decstation-3100 | pmax) - basic_machine=mips-dec - os=-ultrix - ;; - magnum | m3230) - basic_machine=mips-mips - os=-sysv # maybe? - ;; - gmicro) - basic_machine=tron - os=-sysv # maybe? - ;; - convex-c1) - basic_machine=c1-convex - os=-sysv # maybe? - ;; - convex-c2) - basic_machine=c2-convex - os=-sysv # maybe? - ;; - *) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 +# decode aliases into canonical names + +case "$1" in +# cpu alone is a valid alias for cpu-none-none. +vax | tahoe | i386 | i860 | m68k | m68000 | m88k | sparc | ns32k \ + | alliant | arm | c1 | c2 | mips | pyramid | tron | a29k \ + | romp | rs6000 | i960 | h8300) + cpu=$1 + vendor=none + os=none + ;; +altos | altos3068) + cpu=m68k + vendor=altos + os=sysv # maybe? + ;; +altosgas) + cpu=m68k + vendor=altos + os=gas + ;; +am29k) + cpu=a29k + vendor=none + os=bsd + ;; +amdahl) + cpu=580 + vendor=amdahl + os=uts + ;; +amigados) + cpu=m68k + vendor=cbm + os=amigados # Native AmigaDOS + ;; +amigaunix | amix) + cpu=m68k + vendor=cbm + os=svr4 # System V Release 4 (svr4 is an industry recognized acronym) + ;; +apollo68) + cpu=m68k + vendor=apollo + os=sysv # maybe? + ;; +balance) + cpu=ns32k + vendor=sequent + os=dynix + ;; +convex-c1) + cpu=c1 + vendor=convex + os=sysv # maybe? + ;; +convex-c2) + cpu=c2 + vendor=convex + os=sysv # maybe? + ;; +cray | ymp) + cpu=ymp + vendor=cray + os=unicos + ;; +cray2) + cpu=cray2 + vendor=cray + os=unicos + ;; +dec3100 | decstatn | decstation | decstation-3100 | pmax | pmin) + cpu=mips + vendor=dec + os=ultrix + ;; +delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + cpu=m68k + vendor=motorola + os=sysv # maybe? + ;; + +delta88) + cpu=m88k + vendor=motorola + os=m88kbcs + ;; + +gmicro) + cpu=tron + vendor=gmicro + os=sysv # maybe? + ;; + +h8300hds) + cpu=h8300 + vendor=hitachi + os=hds + ;; + +# start-sanitize-v9 +hal-32 | hal32) + cpu=sparc64 + vendor=hal + os=hal32 + ;; +hal-64 | hal64) + cpu=sparc64 + vendor=hal + os=hal64 + ;; +sparc64) + cpu=sparc64 + vendor=sun + os=v9 + ;; +sparc64-v7 | sparc64v7) + cpu=sparc64 + vendor=sun + os=v7 + ;; +# end-sanitize-v9 +hp300bsd) + cpu=m68k + vendor=hp + os=bsd + ;; +hp300hpux | hpux | hp9k3[2-9][0-9]) + cpu=m68k + vendor=hp + os=hpux + ;; +hp9k31[0-9] | hp9k2[0-9][0-9]) + cpu=m68000 + vendor=hp + os=hpux + ;; +i386sco) + cpu=i386 + vendor=sco + os=sysv # maybe? + ;; +i386v) + cpu=i386 + vendor=none + os=sysv + ;; +i386v32) + cpu=i386 + vendor=none + os=sysv32 + ;; +iris | iris4d) + cpu=mips + vendor=sgi + os=irix # maybe? + ;; + +dpx2) + vendor=bull + cpu=m68k + os=sysv + ;; +isi | isi68) + cpu=m68k + vendor=isi + os=sysv # maybe? + ;; +littlemips) + cpu=mips + vendor=little + os=bsd + ;; +magnum | m3230) + cpu=mips + vendor=mips + os=sysv # maybe? + ;; +merlin) + cpu=ns32k + vendor=utek + os=sysv # maybe? + ;; +miniframe) + cpu=m68000 + vendor=convergent + os=sysv # maybe? + ;; +mmax) + cpu=ns32k + vendor=encore + os=sysv # maybe? + ;; +news | news700 | news800 | news900) + cpu=m68k + vendor=sony + os=newsos3 # Based on bsd-4.3 + ;; +news1000) + cpu=m68030 + vendor=sony + os=newsos3 # ? + ;; +news-3600 | bigmips | risc-news) + cpu=mips + vendor=sony + os=newsos4 # Presumably? + ;; +next) + cpu=m68k + vendor=next + os=sysv # maybe? + ;; +nindy960) + cpu=i960 + vendor=intel + os=nindy + ;; +none) + cpu=none + vendor=none + os=none + ;; +np1) + cpu=np1 + vendor=gould + os=sysv # maybe? + ;; +rtpc) + cpu=romp + vendor=ibm + os=aix # maybe? + ;; +pbd) + cpu=sparc + vendor=unicom + os=sysv + ;; +pn) + cpu=pn + vendor=gould + os=sysv # maybe? + ;; +ps2) + cpu=i386 + vendor=ibm + os=sysv # maybe? + ;; +sun2) + cpu=m68000 + vendor=sun + os=sunos4 + ;; +sun2os3) + cpu=m68000 + vendor=sun + os=sunos3 + ;; +sun2os4) + cpu=m68000 + vendor=sun + os=sunos4 + ;; +sun3) + cpu=m68k + vendor=sun + os=sunos4 + ;; +sun3os3) + cpu=m68k + vendor=sun + os=sunos3 + ;; +sun3os4) + cpu=m68k + vendor=sun + os=sunos4 + ;; +sun386 | roadrunner | sun386i) + cpu=i386 + vendor=sun + os=sunos + ;; +sun4) + cpu=sparc + vendor=sun + os=sunos4 + ;; +sun4os3) + cpu=sparc + vendor=sun + os=sunos3 + ;; +sun4os4) + cpu=sparc + vendor=sun + os=sunos4 + ;; +symmetry) + cpu=i386 + vendor=sequent + os=dynix + ;; +tower | tower-32) + cpu=m68k + vendor=ncr + os=sysv # maybe? + ;; +ultra3) + cpu=a29k + vendor=nyu + os=sym1 + ;; +umax) + cpu=ns32k + vendor=encore + os=sysv # maybe? + ;; +unixpc | safari | pc7300 | 3b1 | 7300 | 7300-att | att-7300) + cpu=m68k + vendor=att + os=sysv # maybe? + ;; +vax-dec) + cpu=vax + vendor=dec + os=ultrix # maybe? + ;; +vxworks68) + cpu=m68k + vendor=wrs + os=vxworks + ;; +vxworks960) + cpu=i960 + vendor=wrs + os=vxworks + ;; +xmp) + cpu=xmp + vendor=cray + os=unicos + ;; +# not an alias. parse what we expect to be a canonical name. +*) + cpu=`echo $1 | sed 's/-.*$//'` + + if [ "${cpu}" = "$1" ] ; then + # no vendor so this is an invalid name. + echo '***' No vendor: configuration \`$1\' not recognized 1>&2 exit 1 - ;; + else + # parse out vendor + rest=`echo $1 | sed "s/${cpu}-//"` + vendor=`echo ${rest} | sed 's/-.*$//'` + + if [ "${vendor}" = "${rest}" ] ; then + # a missing os is acceptable + os=none + else + os=`echo ${rest} | sed "s/${vendor}-//"` + fi + fi + ;; esac -# Decode manufacturer-specific aliases for certain operating systems. +# At this point we should have three parts of a canonical name in cpu, +# vendor, and os. -case $os in - # First accept the basic system types. - # The portable systems comes first. - -bsd* | -sysv* | -mach* \ - | -vms* | -sco* | -esix* | -isc* | -aix* | -sunos* | -hpux* \ - | -unos* | -osf* | -v88r* | -aout | -coff | -bout \ - | -nindy | -vxworks) - ;; - -newsos*) - os=-bsd - ;; - -ultrix*) - os=-bsd - ;; - -osfrose*) - os=-osf - ;; - -osf*) - os=-bsd - ;; - -dynix*) - os=-bsd - ;; - -ctix*) - os=-sysv - ;; - *) - # Get rid of the `-' at the beginning of $os. - os=`echo $1 | sed 's/[^-]*-//'` - echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 - exit 1 - ;; +# verify that the cpu is known. + +case "${cpu}" in +none | vax | tahoe | i386 | i860 | m68k | m68000 | m88k | sparc \ + | ns32k | alliant | arm | c1 | c2 | mips | pyramid | tron \ + | a29k | romp | rs6000 | i960 | xmp | ymp | cray2 | 580 | h8300) + ;; + +# start-sanitize-v9 +sparc64) ;; +# end-sanitize-v9 + +*) + echo '***' Invalid cpu \`${cpu}\': configuration \`$1\' not recognized 1>&2 + exit 1 + ;; +esac + +# verify that the vendor is known. + +case "${vendor}" in + altos | amdahl | aout | apollo | att | bcs | bout |\ + cbm | convergent | convex | coff | cray | dec | encore |\ + gould | hitachi | intel | isi | hp | ibm | little | mips | motorola |\ + ncr | next | none | nyu | sco | sequent | sgi | sony | sun |\ + unicom | utek | wrs | bull ) ;; + +# start-sanitize-v9 +hal) ;; +# end-sanitize-v9 + +*) + echo '***' Invalid vendor \`${vendor}\': configuration \`$1\' not recognized 1>&2 + exit 1 + ;; +esac + +# verify that the os is known, if it exists. + +case "${os}" in +aix* | aout | bout | bsd* | coff | ctix* | dynix* | esix* | hpux* \ + | hds | irix* | isc* | kern | mach* | newsos* | nindy* | none \ + | osf* | sco* | sunos* | sysv* | ultrix* | unos* | v88r* \ + | vms* | vxworks* | sym[1-9]* | unicos* | uts | svr4 \ + | amigados) + ;; + +# start-sanitize-v9 +hal32 | hal64 | v7 | v9) ;; +# end-sanitize-v9 + +*) + echo '***' Invalid os \`${os}\': configuration \`$1\' not recognized 1>&2 + exit 1 + ;; esac -echo ${basic_machine}${os} +echo ${cpu}-${vendor}-${os} diff --git a/readline/config.sub b/readline/config.sub index 805bb8b..dac9ab8 100755 --- a/readline/config.sub +++ b/readline/config.sub @@ -22,7 +22,7 @@ case "$1" in # cpu alone is a valid alias for cpu-none-none. vax | tahoe | i386 | i860 | m68k | m68000 | m88k | sparc | ns32k \ | alliant | arm | c1 | c2 | mips | pyramid | tron | a29k \ - | rtpc | rs6000 | i960) + | romp | rs6000 | i960 | h8300) cpu=$1 vendor=none os=none @@ -37,6 +37,11 @@ altosgas) vendor=altos os=gas ;; +am29k) + cpu=a29k + vendor=none + os=bsd + ;; amdahl) cpu=580 vendor=amdahl @@ -105,6 +110,13 @@ gmicro) vendor=gmicro os=sysv # maybe? ;; + +h8300hds) + cpu=h8300 + vendor=hitachi + os=hds + ;; + # start-sanitize-v9 hal-32 | hal32) cpu=sparc64 @@ -162,6 +174,12 @@ iris | iris4d) vendor=sgi os=irix # maybe? ;; + +dpx2) + vendor=bull + cpu=m68k + os=sysv + ;; isi | isi68) cpu=m68k vendor=isi @@ -195,17 +213,17 @@ mmax) news | news700 | news800 | news900) cpu=m68k vendor=sony - os=sysv # maybe? + os=newsos3 # Based on bsd-4.3 ;; news1000) cpu=m68030 vendor=sony - os=sysv # maybe? + os=newsos3 # ? ;; news-3600 | bigmips | risc-news) cpu=mips vendor=sony - os=newsos # maybe? + os=newsos4 # Presumably? ;; next) cpu=m68k @@ -227,6 +245,11 @@ np1) vendor=gould os=sysv # maybe? ;; +rtpc) + cpu=romp + vendor=ibm + os=aix # maybe? + ;; pbd) cpu=sparc vendor=unicom @@ -368,7 +391,7 @@ esac case "${cpu}" in none | vax | tahoe | i386 | i860 | m68k | m68000 | m88k | sparc \ | ns32k | alliant | arm | c1 | c2 | mips | pyramid | tron \ - | a29k | rtpc | rs6000 | i960 | xmp | ymp | cray2 | 580) + | a29k | romp | rs6000 | i960 | xmp | ymp | cray2 | 580 | h8300) ;; # start-sanitize-v9 @@ -386,9 +409,9 @@ esac case "${vendor}" in altos | amdahl | aout | apollo | att | bcs | bout |\ cbm | convergent | convex | coff | cray | dec | encore |\ - gould | intel | isi | hp | ibm | little | mips | motorola |\ + gould | hitachi | intel | isi | hp | ibm | little | mips | motorola |\ ncr | next | none | nyu | sco | sequent | sgi | sony | sun |\ - unicom | utek | wrs ) ;; + unicom | utek | wrs | bull ) ;; # start-sanitize-v9 hal) ;; @@ -403,10 +426,11 @@ esac # verify that the os is known, if it exists. case "${os}" in -aix* | aout | bout | bsd* | coff | ctix* | dynix* | esix* | hpux* | irix* \ - | isc* | mach* | newsos* | nindy* | none | osf* | osf* | sco* \ - | sunos* | sysv* | ultrix* | unos* | v88r* | vms* | vxworks* \ - | sym[1-9]* | unicos* | uts | svr4 | amigados) +aix* | aout | bout | bsd* | coff | ctix* | dynix* | esix* | hpux* \ + | hds | irix* | isc* | kern | mach* | newsos* | nindy* | none \ + | osf* | sco* | sunos* | sysv* | ultrix* | unos* | v88r* \ + | vms* | vxworks* | sym[1-9]* | unicos* | uts | svr4 \ + | amigados) ;; # start-sanitize-v9 |