2 # Configuration validation subroutine script, version 1.1.
3 # Copyright (C) 1991, 92-97, 1998 Free Software Foundation, Inc.
4 # This file is (in principle) common to ALL GNU software.
5 # The presence of a machine in this file suggests that SOME GNU software
6 # can handle that machine. It does not imply ALL GNU software can.
8 # This file is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place - Suite 330,
21 # Boston, MA 02111-1307, USA.
23 # As a special exception to the GNU General Public License, if you
24 # distribute this file as part of a program that contains a
25 # configuration script generated by Autoconf, you may include it under
26 # the same distribution terms that you use for the rest of that program.
28 # Configuration subroutine to validate and canonicalize a configuration type.
29 # Supply the specified configuration type as an argument.
30 # If it is invalid, we print an error message on stderr and exit with code 1.
31 # Otherwise, we print the canonical config type on stdout and succeed.
33 # This file is supposed to be the same for all GNU packages
34 # and recognize all the CPU types, system types and aliases
35 # that are meaningful with *any* GNU software.
36 # Each package is responsible for reporting which valid configurations
37 # it does not support. The user should be able to distinguish
38 # a failure to support a valid configuration from a meaningless
41 # The goal of this file is to map all the various variations of a given
42 # machine specification into a single specification in the form:
43 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
44 # or in some cases, the newer four-part form:
45 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
46 # It is wrong to echo any other type of specification.
50 echo Configuration name missing. 1>&2
51 echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
52 echo "or $0 ALIAS" 1>&2
53 echo where ALIAS is a recognized configuration type. 1>&2
57 # First pass through any local machine types.
67 # CYGNUS LOCAL marketing-names
68 # Here we handle any "marketing" names - translating them to
72 set mipstx39-unknown-elf
76 set mipstx19-unknown-elf
81 set mips64tx49-unknown-elf
84 # start-sanitize-cygnus
89 set mips64vr5000el-elf
100 # END CYGNUS LOCAL marketing-names
102 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
103 # Here we must recognize all the valid KERNEL-OS combinations.
104 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
108 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
111 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
112 if [ $basic_machine != $1 ]
113 then os=`echo $1 | sed 's/.*-/-/'`
118 ### Let's recognize common machines as not being operating systems so
119 ### that things like config.sub decstation-3100 work. We also
120 ### recognize some manufacturers as not being operating systems, so we
121 ### can provide default operating systems below.
124 # Prevent following clause from handling this invalid input.
126 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
127 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
128 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
129 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
130 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
131 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
136 -sim | -cisco | -oki | -wec | -winbond ) # CYGNUS LOCAL
140 -scout) # CYGNUS LOCAL
151 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
155 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
158 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
159 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
162 # Don't forget version if it is 3.2v4 or newer.
163 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
167 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
170 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
174 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
177 basic_machine=clipper-intergraph
180 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
186 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
189 os=`echo $os | sed -e 's/windowsnt/winnt/'`
196 # Decode aliases for certain CPU-COMPANY combinations.
197 case $basic_machine in
198 # Recognize the basic CPU types without company name.
199 # Some are omitted here because they have special meanings below.
200 tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
201 | arme[lb] | pyramid | mn10200 | mn10300 \
202 | tron | a29k | 580 | i960 | h8300 \
203 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
204 | alpha | alphaev5 | alphaev56 | alphapca56 | alphaev6 \
205 | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \
206 | 1750a | dsp16xx | pdp11 \
207 | mips64 | mipsel | mips64el | mips64orion | mips64orionel \
208 | mipstx39 | mipstx39el \
209 | sparc | sparclet | sparclite | sparc64 | sparc86x | v850 \
211 basic_machine=$basic_machine-unknown
213 m88110 | m680[012346]0 | m683?2 | m68360 | m5200 | z8k | v70 \
214 | h8500 | w65 | fr30) # CYGNUS LOCAL
215 basic_machine=$basic_machine-unknown
218 basic_machine=$basic_machine-unknown
220 # start-sanitize-vr4xxx
221 mips64vr4xxx | mips64vr4xxxel)
222 basic_machine=$basic_machine-unknown
224 # end-sanitize-vr4xxx
225 # start-sanitize-vr4320
226 mips64vr4320 | mips64vr4320el)
227 basic_machine=$basic_machine-unknown
229 # end-sanitize-vr4320
230 mips64vr4300 | mips64vr4300el) # CYGNUS LOCAL jsmith/vr4300
231 basic_machine=$basic_machine-unknown
233 mips64vr4100 | mips64vr4100el) # CYGNUS LOCAL jsmith/vr4100
234 basic_machine=$basic_machine-unknown
236 mips64vr5000 | mips64vr5000el) # CYGNUS LOCAL ian/vr5000
237 basic_machine=$basic_machine-unknown
239 # start-sanitize-cygnus
240 mips64vr5400) # CYGNUS LOCAL cagney/vr5400
241 basic_machine=$basic_machine-unknown
243 # end-sanitize-cygnus
244 # start-sanitize-tx19
245 mipstx19 | mipstx19el)
246 basic_machine=$basic_machine-unknown
249 # start-sanitize-tx49
250 mips64tx49 | mips64tx49el)
251 basic_machine=$basic_machine-unknown
254 # start-sanitize-r5900
255 mips64r5900 | mips64r5900el) # CYGNUS LOCAL gavin/r5900
256 basic_machine=$basic_machine-unknown
260 basic_machine=$basic_machine-unknown
262 tic30) # CYGNUS LOCAL ian/tic30
263 basic_machine=$basic_machine-unknown
265 c30) # CYGNUS LOCAL ian/tic30
266 basic_machine=tic30-unknown
269 # start-sanitize-tic80
270 tic80) # CYGNUS LOCAL fnf/TIc80
271 basic_machine=$basic_machine-unknown
276 basic_machine=$basic_machine-unknown
279 v850e) # CYGNUS LOCAL jtc/v850
280 basic_machine=$basic_machine-unknown
282 v850ea) # CYGNUS LOCAL jtc/v850
283 basic_machine=$basic_machine-unknown
286 basic_machine=$basic_machine-unknown
288 d30v) # CYGNUS LOCAL hunt/d30v
289 basic_machine=$basic_machine-unknown
291 # We use `pc' rather than `unknown'
292 # because (1) that's what they normally are, and
293 # (2) the word "unknown" tends to confuse beginning users.
295 basic_machine=$basic_machine-pc
297 # Object if more than one company name word.
299 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
302 # Recognize the basic CPU types with company name.
303 vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \
304 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
305 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
306 | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \
308 | hppa-* | hppa1.0-* | hppa1.1-* \
309 | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \
310 | alpha-* | alphaev5-* | alphaev56-* | alphapca56-* \
311 | alphaev6-* | we32k-* | cydra-* | ns16k-* | pn-* | np1-* \
312 | xps100-* | clipper-* | orion-* \
313 | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
314 | sparc64-* | sparcv9-* | sparc86x-* | mips64-* | mipsel-* \
315 | mips64el-* | mips64orion-* | mips64orionel-* \
316 | mipstx39-* | mipstx39el-* \
318 | fr30-*) # CYGNUS LOCAL
320 m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | h8500-* | d10v-*) # CYGNUS LOCAL
322 thumb-*) # CYGNUS LOCAL angela/thumb
328 v850-*) # CYGNUS LOCAL
330 v850e-*) # CYGNUS LOCAL
332 v850ea-*) # CYGNUS LOCAL
334 d30v-*) # CYGNUS LOCAL
336 # start-sanitize-vr4xxx
337 mips64vr4xxx-* | mips64vr4xxxel-*)
339 # end-sanitize-vr4xxx
340 # start-sanitize-vr4320
341 mips64vr4320-* | mips64vr4320el-*)
343 # end-sanitize-vr4320
344 mips64vr4300-* | mips64vr4300el-*) # CYGNUS LOCAL jsmith/vr4300
346 mips64vr4100-* | mips64vr4100el-*) # CYGNUS LOCAL jsmith/vr4100
348 # start-sanitize-tx19
349 mipstx19-* | mipstx19el-*)
352 # start-sanitize-tx49
353 mips64tx49-* | mips64tx49el-*)
356 # start-sanitize-r5900
357 mips64r5900-* | mips64r5900el-*) # CYGNUS LOCAL gavin/r5900
360 mips16-*) # CYGNUS LOCAL krk/mips16
362 tic30-*) # CYGNUS LOCAL ian/tic30
364 c30-*) # CYGNUS LOCAL ian/tic30
365 basic_machine=tic30-unknown
367 # start-sanitize-tic80
368 tic80-*) # CYGNUS LOCAL fnf/TIc80
371 # Recognize the various machine names and aliases which stand
372 # for a CPU type and a company and sometimes even an OS.
373 386bsd) # CYGNUS LOCAL
374 basic_machine=i386-unknown
377 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
378 basic_machine=m68000-att
381 basic_machine=we32k-att
383 a29khif) # CYGNUS LOCAL
384 basic_machine=a29k-amd
387 adobe68k) # CYGNUS LOCAL
388 basic_machine=m68010-adobe
392 basic_machine=fx80-alliant
395 basic_machine=m68k-altos
398 basic_machine=a29k-none
402 basic_machine=580-amdahl
406 basic_machine=m68k-cbm
409 basic_machine=m68k-cbm
413 basic_machine=m68k-cbm
417 basic_machine=m68k-apollo
420 apollo68bsd) # CYGNUS LOCAL
421 basic_machine=m68k-apollo
425 basic_machine=m68k-apple
429 basic_machine=ns32k-sequent
433 basic_machine=c1-convex
437 basic_machine=c2-convex
441 basic_machine=c32-convex
445 basic_machine=c34-convex
449 basic_machine=c38-convex
453 basic_machine=ymp-cray
457 basic_machine=cray2-cray
461 basic_machine=c90-cray
465 basic_machine=m68k-crds
468 basic_machine=m68k-da30
470 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
471 basic_machine=mips-dec
473 delta | 3300 | motorola-3300 | motorola-delta \
474 | 3300-motorola | delta-motorola)
475 basic_machine=m68k-motorola
478 basic_machine=m88k-motorola
482 basic_machine=rs6000-bull
486 basic_machine=m68k-bull
490 basic_machine=a29k-amd
494 basic_machine=elxsi-elxsi
497 encore | umax | mmax)
498 basic_machine=ns32k-encore
500 es1800 | OSE68k | ose68k | ose | OSE) # CYGNUS LOCAL
501 basic_machine=m68k-ericsson
505 basic_machine=i860-alliant
508 basic_machine=ns32k-ns
511 basic_machine=tron-gmicro
515 basic_machine=hppa1.1-hitachi
519 basic_machine=h8300-hitachi
522 h8300xray) # CYGNUS LOCAL
523 basic_machine=h8300-hitachi
526 h8500hms) # CYGNUS LOCAL
527 basic_machine=h8500-hitachi
531 basic_machine=m88k-harris
535 basic_machine=m68k-hp
538 basic_machine=m68k-hp
542 basic_machine=m68k-hp
545 w89k-*) # CYGNUS LOCAL
546 basic_machine=hppa1.1-winbond
549 op50n-*) # CYGNUS LOCAL
550 basic_machine=hppa1.1-oki
553 op60c-*) # CYGNUS LOCAL
554 basic_machine=hppa1.1-oki
557 hppro) # CYGNUS LOCAL
558 basic_machine=hppa1.1-hp
561 hp3k9[0-9][0-9] | hp9[0-9][0-9])
562 basic_machine=hppa1.0-hp
564 hp9k2[0-9][0-9] | hp9k31[0-9])
565 basic_machine=m68000-hp
568 basic_machine=m68k-hp
570 hp9k6[0-9][0-9] | hp6[0-9][0-9] )
571 basic_machine=hppa1.0-hp
573 hp9k7[0-79][0-9] | hp7[0-79][0-9] )
574 basic_machine=hppa1.1-hp
576 hp9k78[0-9] | hp78[0-9] )
577 # FIXME: really hppa2.0-hp
578 basic_machine=hppa1.1-hp
580 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | \
581 hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893 )
582 # FIXME: really hppa2.0-hp
583 basic_machine=hppa1.1-hp
585 hp9k8[0-9][13679] | hp8[0-9][13679] )
586 basic_machine=hppa1.1-hp
588 hp9k8[0-9][0-9] | hp8[0-9][0-9])
589 basic_machine=hppa1.0-hp
594 hppaosf) # CYGNUS LOCAL
595 basic_machine=hppa1.1-hp
599 basic_machine=i370-ibm
602 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
604 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
608 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
612 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
616 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
619 i386mach) # CYGNUS LOCAL
620 basic_machine=i386-mach
623 i386-vsta | vsta) # CYGNUS LOCAL
624 basic_machine=i386-unknown
627 i386-go32 | go32) # CYGNUS LOCAL
628 basic_machine=i386-unknown
631 i386-mingw32 | mingw32)
632 basic_machine=i386-unknown
636 basic_machine=mips-sgi
646 basic_machine=m68k-isi
650 basic_machine=m88k-omron
653 basic_machine=mips-mips
657 basic_machine=ns32k-utek
661 basic_machine=m68000-convergent
664 basic_machine=mipsel-unknown
668 basic_machine=mips-unknown
672 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
675 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
677 monitor) # CYGNUS LOCAL
678 basic_machine=m68k-rom68k
681 msdos) # CYGNUS LOCAL
682 basic_machine=i386-unknown
686 basic_machine=i486-ncr
690 basic_machine=i386-unknown # CYGNUS LOCAL
693 news | news700 | news800 | news900)
694 basic_machine=m68k-sony
698 basic_machine=m68030-sony
701 news-3600 | risc-news)
702 basic_machine=mips-sony
705 necv70) # CYGNUS LOCAL
706 basic_machine=v70-nec
710 basic_machine=m68k-next
723 basic_machine=m68k-harris
727 basic_machine=m88k-harris
731 basic_machine=i960-intel
734 mon960) # CYGNUS LOCAL
735 basic_machine=i960-intel
739 basic_machine=np1-gould
741 OSE68000 | ose68000) # CYGNUS LOCAL
742 basic_machine=m68000-ericsson
745 os68k) # CYGNUS LOCAL
746 basic_machine=m68k-none
750 basic_machine=hppa1.1-hitachi
754 basic_machine=i860-intel
758 basic_machine=sparc-tti
761 basic_machine=m68k-tti
764 basic_machine=ns32k-pc532
766 pentium | p5 | k5 | nexen)
767 basic_machine=i586-pc
769 pentiumpro | p6 | k6 | 6x86)
770 basic_machine=i686-pc
772 pentiumii | pentium2)
773 basic_machine=i786-pc
775 pentium-* | p5-* | k5-* | nexen-*)
776 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
778 pentiumpro-* | p6-* | k6-* | 6x86-*)
779 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
781 pentiumii-* | pentium2-*)
782 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
785 basic_machine=pn-gould
787 power) basic_machine=rs6000-ibm
789 ppc) basic_machine=powerpc-unknown
791 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
793 ppcle | powerpclittle | ppc-le | powerpc-little)
794 basic_machine=powerpcle-unknown
796 ppcle-* | powerpclittle-*)
797 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
800 basic_machine=i386-ibm
802 # start-sanitize-tx19
804 basic_machine=mipstx19-unknown
807 basic_machine=mipstx19el-unknown
810 # start-sanitize-r5900
811 r5900 | r5900el) # CYGNUS LOCAL
812 basic_machine=mips64r5900-unknown
815 rom68k) # CYGNUS LOCAL
816 basic_machine=m68k-rom68k
820 basic_machine=mips-siemens
823 basic_machine=romp-ibm
825 sa29200) # CYGNUS LOCAL
826 basic_machine=a29k-amd
830 basic_machine=i386-sequent
833 basic_machine=sh-hitachi
836 sparclite-wrs) # CYGNUS LOCAL
837 basic_machine=sparclite-wrs
841 basic_machine=m68k-bull
845 basic_machine=spur-unknown
847 st2000) # CYGNUS LOCAL
848 basic_machine=m68k-tandem
850 stratus) # CYGNUS LOCAL
851 basic_machine=i860-stratus
855 basic_machine=m68000-sun
858 basic_machine=m68000-sun
862 basic_machine=m68000-sun
866 basic_machine=m68k-sun
870 basic_machine=m68k-sun
874 basic_machine=sparc-sun
878 basic_machine=sparc-sun
882 basic_machine=sparc-sun
886 basic_machine=m68k-sun
889 basic_machine=sparc-sun
891 sun386 | sun386i | roadrunner)
892 basic_machine=i386-sun
895 basic_machine=i386-sequent
898 # start-sanitize-tx19
900 basic_machine=mipstx19-unknown
903 basic_machine=mipstx19el-unknown
907 basic_machine=mipstx39-unknown
910 basic_machine=mipstx39el-unknown
913 basic_machine=m68k-ncr
916 basic_machine=a29k-amd
920 basic_machine=a29k-nyu
923 v810 | necv810) # CYGNUS LOCAL
924 basic_machine=v810-nec
928 basic_machine=vax-dec
932 basic_machine=vax-dec
936 basic_machine=f301-fujitsu
939 basic_machine=i960-wrs
943 basic_machine=m68k-wrs
947 basic_machine=a29k-wrs
951 basic_machine=w65-wdc
955 basic_machine=xmp-cray
959 basic_machine=xps100-honeywell
961 z8k-*-coff) # CYGNUS LOCAL
962 basic_machine=z8k-unknown
966 basic_machine=none-none
970 # Here we handle the default manufacturer of certain CPU types. It is in
971 # some cases the only manufacturer, in others, it is the most popular.
973 basic_machine=hppa1.1-winbond
975 op50n) # CYGNUS LOCAL
976 basic_machine=hppa1.1-oki
978 op60c) # CYGNUS LOCAL
979 basic_machine=hppa1.1-oki
982 if [ x$os = x-linux-gnu ]; then
983 basic_machine=mips-unknown
985 basic_machine=mips-mips
989 basic_machine=romp-ibm
992 basic_machine=rs6000-ibm
995 basic_machine=vax-dec
998 basic_machine=pdp11-dec
1001 basic_machine=we32k-att
1004 basic_machine=sparc-sun
1007 basic_machine=cydra-cydrome
1010 basic_machine=orion-highlevel
1013 basic_machine=clipper-highlevel
1015 mac | mpw | mac-mpw) # CYGNUS LOCAL
1016 basic_machine=m68k-apple
1018 pmac | pmac-mpw) # CYGNUS LOCAL
1019 basic_machine=powerpc-apple
1022 basic_machine=c4x-none
1026 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1031 # Here we canonicalize certain aliases for manufacturers.
1032 case $basic_machine in
1034 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1037 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1043 # Decode manufacturer-specific aliases for certain operating systems.
1045 if [ x"$os" != x"" ]
1048 # First match some system type aliases
1049 # that might get confused with valid system types.
1050 # -solaris* is a basic system type, with this one exception.
1051 -solaris1 | -solaris1.*)
1052 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1064 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1066 # First accept the basic system types.
1067 # The portable systems comes first.
1068 # Each alternative MUST END IN A *, to match a version number.
1069 # -sysv* is not here because it comes later, after sysvr4.
1070 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1071 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1072 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1073 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1075 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1076 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1077 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
1078 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
1079 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1080 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1081 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1082 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk*)
1083 # Remember, each alternative MUST END IN *, to match a version number.
1086 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1087 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
1088 | -macos* | -mpw* | -magic* | -mon960* | -lnews* )
1091 os=`echo $os | sed -e 's|mac|macos|'`
1095 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1098 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1101 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1118 -386bsd) # CYGNUS LOCAL
1127 # Preserve the version number of sinix5.
1129 os=`echo $os | sed -e 's|sinix|sysv|'`
1149 # This must come after -sysvr4.
1152 -ose*) # CYGNUS LOCAL
1155 -es1800*) # CYGNUS LOCAL
1164 # Get rid of the `-' at the beginning of $os.
1165 os=`echo $os | sed 's/[^-]*-//'`
1166 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1172 # Here we handle the default operating systems that come with various machines.
1173 # The value should be what the vendor currently ships out the door with their
1174 # machine or put another way, the most popular os provided with the machine.
1176 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1177 # "-sun"), then you have to tell the case statement up towards the top
1178 # that MANUFACTURER isn't an operating system. Otherwise, code above
1179 # will signal an error saying that MANUFACTURER isn't an operating
1180 # system, and we'll never get to this point.
1182 case $basic_machine in
1203 # This also exists in the configure program, but was not the
1207 m68*-cisco) # CYGNUS LOCAL
1210 mips*-cisco) # CYGNUS LOCAL
1213 mips*-*) # CYGNUS LOCAL
1216 *-tti) # must be before sparc entry or we get the wrong os.
1228 *-wec) # CYGNUS LOCAL
1231 *-winbond) # CYGNUS LOCAL
1234 *-oki) # CYGNUS LOCAL
1243 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1300 *-rom68k) # CYGNUS LOCAL
1303 *-*bug) # CYGNUS LOCAL
1306 *-apple) # CYGNUS LOCAL
1315 # Here we handle the case where we know the os, and the CPU type, but not the
1316 # manufacturer. We pick the logical manufacturer.
1318 case $basic_machine in
1360 -vxsim* | -vxworks*)
1366 -hms*) # CYGNUS LOCAL
1369 -mpw* | -macos*) # CYGNUS LOCAL
1373 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1377 echo $basic_machine$os