binutils-gdb/readline/config.sub

447 lines
6.6 KiB
Plaintext
Raw Normal View History

1991-08-22 09:15:48 +02:00
#!/bin/sh
# Configuration subroutine to validate and canonicalize a configuration type.
# Supply the specified configuration type as an argument.
# If it is invalid, we print an error message on stderr and exit with code 1.
# Otherwise, we print the canonical config type on stdout and succeed.
# This file is supposed to be the same for all GNU packages
# and recognize all the CPU types, system types and aliases
# that are meaningful with *any* GNU software.
# 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
1991-09-13 04:19:57 +02:00
# configuration (e.g. a typo).
1991-08-22 09:15:48 +02:00
# Please email any bugs, comments, and/or additions to this file to:
# configure@cygnus.com
1991-08-23 06:50:56 +02:00
# decode aliases into canonical names
1991-08-22 09:15:48 +02:00
1991-08-23 06:50:56 +02:00
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 \
1991-10-02 05:01:08 +01:00
| romp | rs6000 | i960 | h8300)
1991-08-23 06:50:56 +02:00
cpu=$1
vendor=none
os=none
;;
1991-09-13 04:19:57 +02:00
altos | altos3068)
cpu=m68k
vendor=altos
os=sysv # maybe?
1991-08-23 06:50:56 +02:00
;;
1991-09-13 04:19:57 +02:00
altosgas)
1991-08-23 06:50:56 +02:00
cpu=m68k
1991-09-13 04:19:57 +02:00
vendor=altos
os=gas
1991-08-23 06:50:56 +02:00
;;
1991-10-02 05:01:08 +01:00
am29k)
cpu=a29k
vendor=none
os=bsd
;;
1991-09-13 04:19:57 +02:00
amdahl)
cpu=580
vendor=amdahl
os=uts
1991-08-23 06:50:56 +02:00
;;
1991-09-13 04:19:57 +02:00
amigados)
cpu=m68k
vendor=cbm
os=amigados # Native AmigaDOS
1991-08-23 06:50:56 +02:00
;;
1991-09-13 04:19:57 +02:00
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)
1991-08-23 06:50:56 +02:00
cpu=ns32k
1991-09-13 04:19:57 +02:00
vendor=sequent
os=dynix
;;
convex-c1)
cpu=c1
vendor=convex
1991-08-23 06:50:56 +02:00
os=sysv # maybe?
;;
1991-09-13 04:19:57 +02:00
convex-c2)
cpu=c2
vendor=convex
1991-08-23 06:50:56 +02:00
os=sysv # maybe?
;;
1991-09-13 04:19:57 +02:00
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
1991-08-23 06:50:56 +02:00
os=sysv # maybe?
;;
1991-09-13 04:19:57 +02:00
delta88)
cpu=m88k
vendor=motorola
os=m88kbcs
;;
gmicro)
cpu=tron
vendor=gmicro
os=sysv # maybe?
;;
1991-10-02 05:01:08 +01:00
h8300hds)
cpu=h8300
vendor=hitachi
os=hds
;;
1991-09-13 04:19:57 +02:00
# 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
1991-08-23 06:50:56 +02:00
os=sysv # maybe?
;;
1991-09-13 04:19:57 +02:00
i386v)
cpu=i386
vendor=none
os=sysv
;;
i386v32)
cpu=i386
vendor=none
os=sysv32
;;
1991-08-23 06:50:56 +02:00
iris | iris4d)
cpu=mips
vendor=sgi
1991-09-13 04:19:57 +02:00
os=irix # maybe?
;;
1991-10-02 05:01:08 +01:00
dpx2)
vendor=bull
cpu=m68k
os=sysv
;;
1991-09-13 04:19:57 +02:00
isi | isi68)
cpu=m68k
vendor=isi
1991-08-23 06:50:56 +02:00
os=sysv # maybe?
;;
1991-09-13 04:19:57 +02:00
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
1991-08-23 06:50:56 +02:00
os=sysv # maybe?
;;
news | news700 | news800 | news900)
cpu=m68k
vendor=sony
1991-10-02 05:01:08 +01:00
os=newsos3 # Based on bsd-4.3
1991-08-23 06:50:56 +02:00
;;
1991-09-13 04:19:57 +02:00
news1000)
cpu=m68030
vendor=sony
1991-10-02 05:01:08 +01:00
os=newsos3 # ?
1991-08-23 06:50:56 +02:00
;;
1991-09-13 04:19:57 +02:00
news-3600 | bigmips | risc-news)
cpu=mips
vendor=sony
1991-10-02 05:01:08 +01:00
os=newsos4 # Presumably?
1991-09-13 04:19:57 +02:00
;;
next)
1991-08-23 06:50:56 +02:00
cpu=m68k
1991-09-13 04:19:57 +02:00
vendor=next
1991-08-23 06:50:56 +02:00
os=sysv # maybe?
;;
1991-09-13 04:19:57 +02:00
nindy960)
cpu=i960
vendor=intel
os=nindy
1991-08-23 06:50:56 +02:00
;;
1991-09-13 04:19:57 +02:00
none)
cpu=none
vendor=none
os=none
1991-08-23 06:50:56 +02:00
;;
1991-09-13 04:19:57 +02:00
np1)
cpu=np1
vendor=gould
1991-08-23 06:50:56 +02:00
os=sysv # maybe?
;;
1991-10-02 05:01:08 +01:00
rtpc)
cpu=romp
vendor=ibm
os=aix # maybe?
;;
1991-09-13 04:19:57 +02:00
pbd)
cpu=sparc
vendor=unicom
os=sysv
;;
pn)
cpu=pn
vendor=gould
os=sysv # maybe?
;;
ps2)
1991-08-23 06:50:56 +02:00
cpu=i386
1991-09-13 04:19:57 +02:00
vendor=ibm
os=sysv # maybe?
1991-08-23 06:50:56 +02:00
;;
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
;;
1991-09-13 04:19:57 +02:00
sun386 | roadrunner | sun386i)
cpu=i386
vendor=sun
os=sunos
;;
1991-08-23 06:50:56 +02:00
sun4)
cpu=sparc
vendor=sun
os=sunos4
;;
sun4os3)
cpu=sparc
vendor=sun
os=sunos3
;;
sun4os4)
cpu=sparc
vendor=sun
os=sunos4
;;
1991-09-13 04:19:57 +02:00
symmetry)
1991-08-23 06:50:56 +02:00
cpu=i386
1991-09-13 04:19:57 +02:00
vendor=sequent
os=dynix
1991-08-23 06:50:56 +02:00
;;
1991-09-13 04:19:57 +02:00
tower | tower-32)
1991-08-23 06:50:56 +02:00
cpu=m68k
1991-09-13 04:19:57 +02:00
vendor=ncr
1991-08-23 06:50:56 +02:00
os=sysv # maybe?
;;
1991-09-13 04:19:57 +02:00
ultra3)
cpu=a29k
vendor=nyu
os=sym1
1991-08-23 06:50:56 +02:00
;;
1991-09-13 04:19:57 +02:00
umax)
cpu=ns32k
vendor=encore
1991-08-23 06:50:56 +02:00
os=sysv # maybe?
;;
1991-09-13 04:19:57 +02:00
unixpc | safari | pc7300 | 3b1 | 7300 | 7300-att | att-7300)
1991-08-23 06:50:56 +02:00
cpu=m68k
1991-09-13 04:19:57 +02:00
vendor=att
1991-08-23 06:50:56 +02:00
os=sysv # maybe?
;;
1991-09-13 04:19:57 +02:00
vax-dec)
cpu=vax
1991-08-23 06:50:56 +02:00
vendor=dec
1991-09-13 04:19:57 +02:00
os=ultrix # maybe?
1991-08-23 06:50:56 +02:00
;;
1991-09-13 04:19:57 +02:00
vxworks68)
cpu=m68k
vendor=wrs
os=vxworks
1991-08-23 06:50:56 +02:00
;;
1991-09-13 04:19:57 +02:00
vxworks960)
cpu=i960
vendor=wrs
os=vxworks
1991-08-23 06:50:56 +02:00
;;
1991-09-13 04:19:57 +02:00
xmp)
cpu=xmp
vendor=cray
os=unicos
1991-08-23 06:50:56 +02:00
;;
# 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
1991-08-22 09:15:48 +02:00
exit 1
1991-08-23 06:50:56 +02:00
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
;;
1991-08-22 09:15:48 +02:00
esac
1991-08-23 06:50:56 +02:00
# At this point we should have three parts of a canonical name in cpu,
# vendor, and os.
1991-08-22 09:15:48 +02:00
1991-08-23 06:50:56 +02:00
# verify that the cpu is known.
case "${cpu}" in
1991-09-13 04:19:57 +02:00
none | vax | tahoe | i386 | i860 | m68k | m68000 | m88k | sparc \
| ns32k | alliant | arm | c1 | c2 | mips | pyramid | tron \
1991-10-02 05:01:08 +01:00
| a29k | romp | rs6000 | i960 | xmp | ymp | cray2 | 580 | h8300)
1991-08-23 06:50:56 +02:00
;;
1991-09-13 04:19:57 +02:00
# start-sanitize-v9
sparc64) ;;
# end-sanitize-v9
1991-08-23 06:50:56 +02:00
*)
echo '***' Invalid cpu \`${cpu}\': configuration \`$1\' not recognized 1>&2
exit 1
;;
esac
# verify that the vendor is known.
case "${vendor}" in
1991-09-13 04:19:57 +02:00
altos | amdahl | aout | apollo | att | bcs | bout |\
cbm | convergent | convex | coff | cray | dec | encore |\
1991-10-02 05:01:08 +01:00
gould | hitachi | intel | isi | hp | ibm | little | mips | motorola |\
1991-09-13 04:19:57 +02:00
ncr | next | none | nyu | sco | sequent | sgi | sony | sun |\
1991-10-02 05:01:08 +01:00
unicom | utek | wrs | bull ) ;;
1991-09-13 04:19:57 +02:00
# start-sanitize-v9
hal) ;;
# end-sanitize-v9
1991-08-23 06:50:56 +02:00
*)
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
1991-10-02 05:01:08 +01:00
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)
1991-08-23 06:50:56 +02:00
;;
1991-09-13 04:19:57 +02:00
# start-sanitize-v9
hal32 | hal64 | v7 | v9) ;;
# end-sanitize-v9
1991-08-23 06:50:56 +02:00
*)
echo '***' Invalid os \`${os}\': configuration \`$1\' not recognized 1>&2
exit 1
;;
1991-08-22 09:15:48 +02:00
esac
1991-08-23 06:50:56 +02:00
echo ${cpu}-${vendor}-${os}