GCCPY:
[official-gcc.git] / config.sub
blob324dd936125bc3f892420160008118db4d12eb50
1 #! /bin/sh
2 # Configuration validation subroutine script.
3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
5 # 2011, 2012, 2013 Free Software Foundation, Inc.
7 timestamp='2013-01-11'
9 # This file is free software; you can redistribute it and/or modify it
10 # under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 3 of the License, or
12 # (at your option) any later version.
14 # This program is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, see <http://www.gnu.org/licenses/>.
22 # As a special exception to the GNU General Public License, if you
23 # distribute this file as part of a program that contains a
24 # configuration script generated by Autoconf, you may include it under
25 # the same distribution terms that you use for the rest of that
26 # program. This Exception is an additional permission under section 7
27 # of the GNU General Public License, version 3 ("GPLv3").
30 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
32 # Configuration subroutine to validate and canonicalize a configuration type.
33 # Supply the specified configuration type as an argument.
34 # If it is invalid, we print an error message on stderr and exit with code 1.
35 # Otherwise, we print the canonical config type on stdout and succeed.
37 # You can get the latest version of this script from:
38 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
40 # This file is supposed to be the same for all GNU packages
41 # and recognize all the CPU types, system types and aliases
42 # that are meaningful with *any* GNU software.
43 # Each package is responsible for reporting which valid configurations
44 # it does not support. The user should be able to distinguish
45 # a failure to support a valid configuration from a meaningless
46 # configuration.
48 # The goal of this file is to map all the various variations of a given
49 # machine specification into a single specification in the form:
50 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
51 # or in some cases, the newer four-part form:
52 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
53 # It is wrong to echo any other type of specification.
55 me=`echo "$0" | sed -e 's,.*/,,'`
57 usage="\
58 Usage: $0 [OPTION] CPU-MFR-OPSYS
59 $0 [OPTION] ALIAS
61 Canonicalize a configuration name.
63 Operation modes:
64 -h, --help print this help, then exit
65 -t, --time-stamp print date of last modification, then exit
66 -v, --version print version number, then exit
68 Report bugs and patches to <config-patches@gnu.org>."
70 version="\
71 GNU config.sub ($timestamp)
73 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
74 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
75 2012, 2013 Free Software Foundation, Inc.
77 This is free software; see the source for copying conditions. There is NO
78 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
80 help="
81 Try \`$me --help' for more information."
83 # Parse command line
84 while test $# -gt 0 ; do
85 case $1 in
86 --time-stamp | --time* | -t )
87 echo "$timestamp" ; exit ;;
88 --version | -v )
89 echo "$version" ; exit ;;
90 --help | --h* | -h )
91 echo "$usage"; exit ;;
92 -- ) # Stop option processing
93 shift; break ;;
94 - ) # Use stdin as input.
95 break ;;
96 -* )
97 echo "$me: invalid option $1$help"
98 exit 1 ;;
100 *local*)
101 # First pass through any local machine types.
102 echo $1
103 exit ;;
106 break ;;
107 esac
108 done
110 case $# in
111 0) echo "$me: missing argument$help" >&2
112 exit 1;;
113 1) ;;
114 *) echo "$me: too many arguments$help" >&2
115 exit 1;;
116 esac
118 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
119 # Here we must recognize all the valid KERNEL-OS combinations.
120 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
121 case $maybe_os in
122 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
123 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
124 knetbsd*-gnu* | netbsd*-gnu* | \
125 kopensolaris*-gnu* | \
126 storm-chaos* | os2-emx* | rtmk-nova*)
127 os=-$maybe_os
128 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
130 android-linux)
131 os=-linux-android
132 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
135 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
136 if [ $basic_machine != $1 ]
137 then os=`echo $1 | sed 's/.*-/-/'`
138 else os=; fi
140 esac
142 ### Let's recognize common machines as not being operating systems so
143 ### that things like config.sub decstation-3100 work. We also
144 ### recognize some manufacturers as not being operating systems, so we
145 ### can provide default operating systems below.
146 case $os in
147 -sun*os*)
148 # Prevent following clause from handling this invalid input.
150 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
151 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
152 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
153 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
154 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
155 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
156 -apple | -axis | -knuth | -cray | -microblaze*)
158 basic_machine=$1
160 -bluegene*)
161 os=-cnk
163 -sim | -cisco | -oki | -wec | -winbond)
165 basic_machine=$1
167 -scout)
169 -wrs)
170 os=-vxworks
171 basic_machine=$1
173 -chorusos*)
174 os=-chorusos
175 basic_machine=$1
177 -chorusrdb)
178 os=-chorusrdb
179 basic_machine=$1
181 -hiux*)
182 os=-hiuxwe2
184 -sco6)
185 os=-sco5v6
186 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
188 -sco5)
189 os=-sco3.2v5
190 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
192 -sco4)
193 os=-sco3.2v4
194 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
196 -sco3.2.[4-9]*)
197 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
198 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
200 -sco3.2v[4-9]*)
201 # Don't forget version if it is 3.2v4 or newer.
202 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
204 -sco5v6*)
205 # Don't forget version if it is 3.2v4 or newer.
206 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
208 -sco*)
209 os=-sco3.2v2
210 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
212 -udk*)
213 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
215 -isc)
216 os=-isc2.2
217 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
219 -clix*)
220 basic_machine=clipper-intergraph
222 -isc*)
223 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
225 -lynx*178)
226 os=-lynxos178
228 -lynx*5)
229 os=-lynxos5
231 -lynx*)
232 os=-lynxos
234 -ptx*)
235 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
237 -windowsnt*)
238 os=`echo $os | sed -e 's/windowsnt/winnt/'`
240 -psos*)
241 os=-psos
243 -mint | -mint[0-9]*)
244 basic_machine=m68k-atari
245 os=-mint
247 esac
249 # Decode aliases for certain CPU-COMPANY combinations.
250 case $basic_machine in
251 # Recognize the basic CPU types without company name.
252 # Some are omitted here because they have special meanings below.
253 1750a | 580 \
254 | a29k \
255 | aarch64 | aarch64_be \
256 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
257 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
258 | am33_2.0 \
259 | arc \
260 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
261 | avr | avr32 \
262 | be32 | be64 \
263 | bfin \
264 | c4x | clipper \
265 | d10v | d30v | dlx | dsp16xx \
266 | fido | fr30 | frv \
267 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
268 | i370 | i860 | i960 | ia64 \
269 | ip2k | iq2000 \
270 | lm32 \
271 | m32c | m32r | m32rle | m68000 | m68k | m88k \
272 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
273 | mips | mipsbe | mipseb | mipsel | mipsle \
274 | mips16 \
275 | mips64 | mips64el \
276 | mips64octeon | mips64octeonel \
277 | mips64orion | mips64orionel \
278 | mips64r5900 | mips64r5900el \
279 | mips64vr | mips64vrel \
280 | mips64vr4100 | mips64vr4100el \
281 | mips64vr4300 | mips64vr4300el \
282 | mips64vr5000 | mips64vr5000el \
283 | mips64vr5900 | mips64vr5900el \
284 | mipsisa32 | mipsisa32el \
285 | mipsisa32r2 | mipsisa32r2el \
286 | mipsisa64 | mipsisa64el \
287 | mipsisa64r2 | mipsisa64r2el \
288 | mipsisa64sb1 | mipsisa64sb1el \
289 | mipsisa64sr71k | mipsisa64sr71kel \
290 | mipsr5900 | mipsr5900el \
291 | mipstx39 | mipstx39el \
292 | mn10200 | mn10300 \
293 | moxie \
294 | mt \
295 | msp430 \
296 | nios | nios2 \
297 | ns16k | ns32k \
298 | or32 \
299 | pdp10 | pdp11 | pj | pjl \
300 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
301 | pyramid \
302 | rx \
303 | score \
304 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
305 | sh64 | sh64le \
306 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
307 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
308 | spu | strongarm \
309 | tahoe | thumb | tic4x | tic80 | tron \
310 | ubicom32 \
311 | v850 | v850e \
312 | we32k \
313 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
314 | z8k | z80)
315 basic_machine=$basic_machine-unknown
317 c54x)
318 basic_machine=tic54x-unknown
320 c55x)
321 basic_machine=tic55x-unknown
323 c6x)
324 basic_machine=tic6x-unknown
326 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
327 basic_machine=$basic_machine-unknown
328 os=-none
330 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
332 ms1)
333 basic_machine=mt-unknown
336 strongarm | thumb | xscale)
337 basic_machine=arm-unknown
339 xgate)
340 basic_machine=$basic_machine-unknown
341 os=-none
343 xscaleeb)
344 basic_machine=armeb-unknown
347 xscaleel)
348 basic_machine=armel-unknown
351 # We use `pc' rather than `unknown'
352 # because (1) that's what they normally are, and
353 # (2) the word "unknown" tends to confuse beginning users.
354 i*86 | x86_64)
355 basic_machine=$basic_machine-pc
357 # Object if more than one company name word.
358 *-*-*)
359 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
360 exit 1
362 # Recognize the basic CPU types with company name.
363 580-* \
364 | a29k-* \
365 | aarch64-* | aarch64_be-* \
366 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
367 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
368 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
369 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
370 | avr-* | avr32-* \
371 | bfin-* | bs2000-* \
372 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
373 | clipper-* | craynv-* | cydra-* \
374 | d10v-* | d30v-* | dlx-* \
375 | elxsi-* \
376 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
377 | h8300-* | h8500-* \
378 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
379 | i*86-* | i860-* | i960-* | ia64-* \
380 | ip2k-* | iq2000-* \
381 | lm32-* \
382 | m32c-* | m32r-* | m32rle-* \
383 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
384 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
385 | microblaze-* | microblazeel-* \
386 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
387 | mips16-* \
388 | mips64-* | mips64el-* \
389 | mips64octeon-* | mips64octeonel-* \
390 | mips64orion-* | mips64orionel-* \
391 | mips64r5900-* | mips64r5900el-* \
392 | mips64vr-* | mips64vrel-* \
393 | mips64vr4100-* | mips64vr4100el-* \
394 | mips64vr4300-* | mips64vr4300el-* \
395 | mips64vr5000-* | mips64vr5000el-* \
396 | mips64vr5900-* | mips64vr5900el-* \
397 | mipsisa32-* | mipsisa32el-* \
398 | mipsisa32r2-* | mipsisa32r2el-* \
399 | mipsisa64-* | mipsisa64el-* \
400 | mipsisa64r2-* | mipsisa64r2el-* \
401 | mipsisa64sb1-* | mipsisa64sb1el-* \
402 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
403 | mipsr5900-* | mipsr5900el-* \
404 | mipstx39-* | mipstx39el-* \
405 | mmix-* \
406 | mt-* \
407 | msp430-* \
408 | nios-* | nios2-* \
409 | none-* | np1-* | ns16k-* | ns32k-* \
410 | orion-* \
411 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
412 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
413 | pyramid-* \
414 | romp-* | rs6000-* | rx-* \
415 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
416 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
417 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
418 | sparclite-* \
419 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
420 | tahoe-* | thumb-* \
421 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
422 | tron-* \
423 | ubicom32-* \
424 | v850-* | v850e-* | vax-* \
425 | we32k-* \
426 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
427 | xstormy16-* | xtensa*-* \
428 | ymp-* \
429 | z8k-* | z80-*)
431 # Recognize the basic CPU types without company name, with glob match.
432 xtensa*)
433 basic_machine=$basic_machine-unknown
435 # Recognize the various machine names and aliases which stand
436 # for a CPU type and a company and sometimes even an OS.
437 386bsd)
438 basic_machine=i386-unknown
439 os=-bsd
441 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
442 basic_machine=m68000-att
444 3b*)
445 basic_machine=we32k-att
447 a29khif)
448 basic_machine=a29k-amd
449 os=-udi
451 abacus)
452 basic_machine=abacus-unknown
454 adobe68k)
455 basic_machine=m68010-adobe
456 os=-scout
458 alliant | fx80)
459 basic_machine=fx80-alliant
461 altos | altos3068)
462 basic_machine=m68k-altos
464 am29k)
465 basic_machine=a29k-none
466 os=-bsd
468 amd64)
469 basic_machine=x86_64-pc
471 amd64-*)
472 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
474 amdahl)
475 basic_machine=580-amdahl
476 os=-sysv
478 amiga | amiga-*)
479 basic_machine=m68k-unknown
481 amigaos | amigados)
482 basic_machine=m68k-unknown
483 os=-amigaos
485 amigaunix | amix)
486 basic_machine=m68k-unknown
487 os=-sysv4
489 apollo68)
490 basic_machine=m68k-apollo
491 os=-sysv
493 apollo68bsd)
494 basic_machine=m68k-apollo
495 os=-bsd
497 aros)
498 basic_machine=i386-pc
499 os=-aros
501 aux)
502 basic_machine=m68k-apple
503 os=-aux
505 balance)
506 basic_machine=ns32k-sequent
507 os=-dynix
509 blackfin)
510 basic_machine=bfin-unknown
511 os=-linux
513 blackfin-*)
514 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
515 os=-linux
517 bluegene*)
518 basic_machine=powerpc-ibm
519 os=-cnk
521 c90)
522 basic_machine=c90-cray
523 os=-unicos
525 cegcc)
526 basic_machine=arm-unknown
527 os=-cegcc
529 convex-c1)
530 basic_machine=c1-convex
531 os=-bsd
533 convex-c2)
534 basic_machine=c2-convex
535 os=-bsd
537 convex-c32)
538 basic_machine=c32-convex
539 os=-bsd
541 convex-c34)
542 basic_machine=c34-convex
543 os=-bsd
545 convex-c38)
546 basic_machine=c38-convex
547 os=-bsd
549 cray | j90)
550 basic_machine=j90-cray
551 os=-unicos
553 craynv)
554 basic_machine=craynv-cray
555 os=-unicosmp
557 cr16)
558 basic_machine=cr16-unknown
559 os=-elf
561 crds | unos)
562 basic_machine=m68k-crds
564 crisv32 | crisv32-* | etraxfs*)
565 basic_machine=crisv32-axis
567 cris | cris-* | etrax*)
568 basic_machine=cris-axis
570 crx)
571 basic_machine=crx-unknown
572 os=-elf
574 da30 | da30-*)
575 basic_machine=m68k-da30
577 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
578 basic_machine=mips-dec
580 decsystem10* | dec10*)
581 basic_machine=pdp10-dec
582 os=-tops10
584 decsystem20* | dec20*)
585 basic_machine=pdp10-dec
586 os=-tops20
588 delta | 3300 | motorola-3300 | motorola-delta \
589 | 3300-motorola | delta-motorola)
590 basic_machine=m68k-motorola
592 delta88)
593 basic_machine=m88k-motorola
594 os=-sysv3
596 dicos)
597 basic_machine=i686-pc
598 os=-dicos
600 djgpp)
601 basic_machine=i586-pc
602 os=-msdosdjgpp
604 dpx20 | dpx20-*)
605 basic_machine=rs6000-bull
606 os=-bosx
608 dpx2* | dpx2*-bull)
609 basic_machine=m68k-bull
610 os=-sysv3
612 ebmon29k)
613 basic_machine=a29k-amd
614 os=-ebmon
616 elxsi)
617 basic_machine=elxsi-elxsi
618 os=-bsd
620 encore | umax | mmax)
621 basic_machine=ns32k-encore
623 es1800 | OSE68k | ose68k | ose | OSE)
624 basic_machine=m68k-ericsson
625 os=-ose
627 fx2800)
628 basic_machine=i860-alliant
630 genix)
631 basic_machine=ns32k-ns
633 gmicro)
634 basic_machine=tron-gmicro
635 os=-sysv
637 go32)
638 basic_machine=i386-pc
639 os=-go32
641 h3050r* | hiux*)
642 basic_machine=hppa1.1-hitachi
643 os=-hiuxwe2
645 h8300hms)
646 basic_machine=h8300-hitachi
647 os=-hms
649 h8300xray)
650 basic_machine=h8300-hitachi
651 os=-xray
653 h8500hms)
654 basic_machine=h8500-hitachi
655 os=-hms
657 harris)
658 basic_machine=m88k-harris
659 os=-sysv3
661 hp300-*)
662 basic_machine=m68k-hp
664 hp300bsd)
665 basic_machine=m68k-hp
666 os=-bsd
668 hp300hpux)
669 basic_machine=m68k-hp
670 os=-hpux
672 hp3k9[0-9][0-9] | hp9[0-9][0-9])
673 basic_machine=hppa1.0-hp
675 hp9k2[0-9][0-9] | hp9k31[0-9])
676 basic_machine=m68000-hp
678 hp9k3[2-9][0-9])
679 basic_machine=m68k-hp
681 hp9k6[0-9][0-9] | hp6[0-9][0-9])
682 basic_machine=hppa1.0-hp
684 hp9k7[0-79][0-9] | hp7[0-79][0-9])
685 basic_machine=hppa1.1-hp
687 hp9k78[0-9] | hp78[0-9])
688 # FIXME: really hppa2.0-hp
689 basic_machine=hppa1.1-hp
691 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
692 # FIXME: really hppa2.0-hp
693 basic_machine=hppa1.1-hp
695 hp9k8[0-9][13679] | hp8[0-9][13679])
696 basic_machine=hppa1.1-hp
698 hp9k8[0-9][0-9] | hp8[0-9][0-9])
699 basic_machine=hppa1.0-hp
701 hppa-next)
702 os=-nextstep3
704 hppaosf)
705 basic_machine=hppa1.1-hp
706 os=-osf
708 hppro)
709 basic_machine=hppa1.1-hp
710 os=-proelf
712 i370-ibm* | ibm*)
713 basic_machine=i370-ibm
715 i*86v32)
716 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
717 os=-sysv32
719 i*86v4*)
720 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
721 os=-sysv4
723 i*86v)
724 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
725 os=-sysv
727 i*86sol2)
728 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
729 os=-solaris2
731 i386mach)
732 basic_machine=i386-mach
733 os=-mach
735 i386-vsta | vsta)
736 basic_machine=i386-unknown
737 os=-vsta
739 iris | iris4d)
740 basic_machine=mips-sgi
741 case $os in
742 -irix*)
745 os=-irix4
747 esac
749 isi68 | isi)
750 basic_machine=m68k-isi
751 os=-sysv
753 m68knommu)
754 basic_machine=m68k-unknown
755 os=-linux
757 m68knommu-*)
758 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
759 os=-linux
761 m88k-omron*)
762 basic_machine=m88k-omron
764 magnum | m3230)
765 basic_machine=mips-mips
766 os=-sysv
768 merlin)
769 basic_machine=ns32k-utek
770 os=-sysv
772 microblaze*)
773 basic_machine=microblaze-xilinx
775 mingw64)
776 basic_machine=x86_64-pc
777 os=-mingw64
779 mingw32)
780 basic_machine=i386-pc
781 os=-mingw32
783 mingw32ce)
784 basic_machine=arm-unknown
785 os=-mingw32ce
787 miniframe)
788 basic_machine=m68000-convergent
790 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
791 basic_machine=m68k-atari
792 os=-mint
794 mips3*-*)
795 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
797 mips3*)
798 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
800 monitor)
801 basic_machine=m68k-rom68k
802 os=-coff
804 morphos)
805 basic_machine=powerpc-unknown
806 os=-morphos
808 msdos)
809 basic_machine=i386-pc
810 os=-msdos
812 ms1-*)
813 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
815 msys)
816 basic_machine=i386-pc
817 os=-msys
819 mvs)
820 basic_machine=i370-ibm
821 os=-mvs
823 ncr3000)
824 basic_machine=i486-ncr
825 os=-sysv4
827 netbsd386)
828 basic_machine=i386-unknown
829 os=-netbsd
831 netwinder)
832 basic_machine=armv4l-rebel
833 os=-linux
835 news | news700 | news800 | news900)
836 basic_machine=m68k-sony
837 os=-newsos
839 news1000)
840 basic_machine=m68030-sony
841 os=-newsos
843 news-3600 | risc-news)
844 basic_machine=mips-sony
845 os=-newsos
847 necv70)
848 basic_machine=v70-nec
849 os=-sysv
851 next | m*-next )
852 basic_machine=m68k-next
853 case $os in
854 -nextstep* )
856 -ns2*)
857 os=-nextstep2
860 os=-nextstep3
862 esac
864 nh3000)
865 basic_machine=m68k-harris
866 os=-cxux
868 nh[45]000)
869 basic_machine=m88k-harris
870 os=-cxux
872 nindy960)
873 basic_machine=i960-intel
874 os=-nindy
876 mon960)
877 basic_machine=i960-intel
878 os=-mon960
880 nonstopux)
881 basic_machine=mips-compaq
882 os=-nonstopux
884 np1)
885 basic_machine=np1-gould
887 nsr-tandem)
888 basic_machine=nsr-tandem
890 op50n-* | op60c-*)
891 basic_machine=hppa1.1-oki
892 os=-proelf
894 openrisc | openrisc-*)
895 basic_machine=or32-unknown
897 os400)
898 basic_machine=powerpc-ibm
899 os=-os400
901 OSE68000 | ose68000)
902 basic_machine=m68000-ericsson
903 os=-ose
905 os68k)
906 basic_machine=m68k-none
907 os=-os68k
909 pa-hitachi)
910 basic_machine=hppa1.1-hitachi
911 os=-hiuxwe2
913 paragon)
914 basic_machine=i860-intel
915 os=-osf
917 parisc)
918 basic_machine=hppa-unknown
919 os=-linux
921 parisc-*)
922 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
923 os=-linux
925 pbd)
926 basic_machine=sparc-tti
928 pbb)
929 basic_machine=m68k-tti
931 pc532 | pc532-*)
932 basic_machine=ns32k-pc532
934 pc98)
935 basic_machine=i386-pc
937 pc98-*)
938 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
940 pentium | p5 | k5 | k6 | nexgen | viac3)
941 basic_machine=i586-pc
943 pentiumpro | p6 | 6x86 | athlon | athlon_*)
944 basic_machine=i686-pc
946 pentiumii | pentium2 | pentiumiii | pentium3)
947 basic_machine=i686-pc
949 pentium4)
950 basic_machine=i786-pc
952 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
953 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
955 pentiumpro-* | p6-* | 6x86-* | athlon-*)
956 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
958 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
959 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
961 pentium4-*)
962 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
965 basic_machine=pn-gould
967 power) basic_machine=power-ibm
969 ppc) basic_machine=powerpc-unknown
971 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
973 ppcle | powerpclittle | ppc-le | powerpc-little)
974 basic_machine=powerpcle-unknown
976 ppcle-* | powerpclittle-*)
977 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
979 ppc64) basic_machine=powerpc64-unknown
981 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
983 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
984 basic_machine=powerpc64le-unknown
986 ppc64le-* | powerpc64little-*)
987 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
989 ps2)
990 basic_machine=i386-ibm
992 pw32)
993 basic_machine=i586-unknown
994 os=-pw32
996 rdos | rdos64)
997 basic_machine=x86_64-pc
998 os=-rdos
1000 rdos32)
1001 basic_machine=i386-pc
1002 os=-rdos
1004 rom68k)
1005 basic_machine=m68k-rom68k
1006 os=-coff
1008 rm[46]00)
1009 basic_machine=mips-siemens
1011 rtpc | rtpc-*)
1012 basic_machine=romp-ibm
1014 s390 | s390-*)
1015 basic_machine=s390-ibm
1017 s390x | s390x-*)
1018 basic_machine=s390x-ibm
1020 sa29200)
1021 basic_machine=a29k-amd
1022 os=-udi
1024 sb1)
1025 basic_machine=mipsisa64sb1-unknown
1027 sb1el)
1028 basic_machine=mipsisa64sb1el-unknown
1030 sde)
1031 basic_machine=mipsisa32-sde
1032 os=-elf
1034 sei)
1035 basic_machine=mips-sei
1036 os=-seiux
1038 sequent)
1039 basic_machine=i386-sequent
1042 basic_machine=sh-hitachi
1043 os=-hms
1045 sh5el)
1046 basic_machine=sh5le-unknown
1048 sh64)
1049 basic_machine=sh64-unknown
1051 sparclite-wrs | simso-wrs)
1052 basic_machine=sparclite-wrs
1053 os=-vxworks
1055 sps7)
1056 basic_machine=m68k-bull
1057 os=-sysv2
1059 spur)
1060 basic_machine=spur-unknown
1062 st2000)
1063 basic_machine=m68k-tandem
1065 stratus)
1066 basic_machine=i860-stratus
1067 os=-sysv4
1069 sun2)
1070 basic_machine=m68000-sun
1072 sun2os3)
1073 basic_machine=m68000-sun
1074 os=-sunos3
1076 sun2os4)
1077 basic_machine=m68000-sun
1078 os=-sunos4
1080 sun3os3)
1081 basic_machine=m68k-sun
1082 os=-sunos3
1084 sun3os4)
1085 basic_machine=m68k-sun
1086 os=-sunos4
1088 sun4os3)
1089 basic_machine=sparc-sun
1090 os=-sunos3
1092 sun4os4)
1093 basic_machine=sparc-sun
1094 os=-sunos4
1096 sun4sol2)
1097 basic_machine=sparc-sun
1098 os=-solaris2
1100 sun3 | sun3-*)
1101 basic_machine=m68k-sun
1103 sun4)
1104 basic_machine=sparc-sun
1106 sun386 | sun386i | roadrunner)
1107 basic_machine=i386-sun
1109 sv1)
1110 basic_machine=sv1-cray
1111 os=-unicos
1113 symmetry)
1114 basic_machine=i386-sequent
1115 os=-dynix
1117 t3e)
1118 basic_machine=alphaev5-cray
1119 os=-unicos
1121 t90)
1122 basic_machine=t90-cray
1123 os=-unicos
1125 tic54x | c54x*)
1126 basic_machine=tic54x-unknown
1127 os=-coff
1129 tic55x | c55x*)
1130 basic_machine=tic55x-unknown
1131 os=-coff
1133 tic6x | c6x*)
1134 basic_machine=tic6x-unknown
1135 os=-coff
1137 tile*)
1138 basic_machine=tile-unknown
1139 os=-linux-gnu
1141 tx39)
1142 basic_machine=mipstx39-unknown
1144 tx39el)
1145 basic_machine=mipstx39el-unknown
1147 toad1)
1148 basic_machine=pdp10-xkl
1149 os=-tops20
1151 tower | tower-32)
1152 basic_machine=m68k-ncr
1154 tpf)
1155 basic_machine=s390x-ibm
1156 os=-tpf
1158 udi29k)
1159 basic_machine=a29k-amd
1160 os=-udi
1162 ultra3)
1163 basic_machine=a29k-nyu
1164 os=-sym1
1166 v810 | necv810)
1167 basic_machine=v810-nec
1168 os=-none
1170 vaxv)
1171 basic_machine=vax-dec
1172 os=-sysv
1174 vms)
1175 basic_machine=vax-dec
1176 os=-vms
1178 vpp*|vx|vx-*)
1179 basic_machine=f301-fujitsu
1181 vxworks960)
1182 basic_machine=i960-wrs
1183 os=-vxworks
1185 vxworks68)
1186 basic_machine=m68k-wrs
1187 os=-vxworks
1189 vxworks29k)
1190 basic_machine=a29k-wrs
1191 os=-vxworks
1193 w65*)
1194 basic_machine=w65-wdc
1195 os=-none
1197 w89k-*)
1198 basic_machine=hppa1.1-winbond
1199 os=-proelf
1201 xbox)
1202 basic_machine=i686-pc
1203 os=-mingw32
1205 xps | xps100)
1206 basic_machine=xps100-honeywell
1208 ymp)
1209 basic_machine=ymp-cray
1210 os=-unicos
1212 z8k-*-coff)
1213 basic_machine=z8k-unknown
1214 os=-sim
1216 z80-*-coff)
1217 basic_machine=z80-unknown
1218 os=-sim
1220 none)
1221 basic_machine=none-none
1222 os=-none
1225 # Here we handle the default manufacturer of certain CPU types. It is in
1226 # some cases the only manufacturer, in others, it is the most popular.
1227 w89k)
1228 basic_machine=hppa1.1-winbond
1230 op50n)
1231 basic_machine=hppa1.1-oki
1233 op60c)
1234 basic_machine=hppa1.1-oki
1236 romp)
1237 basic_machine=romp-ibm
1239 mmix)
1240 basic_machine=mmix-knuth
1242 rs6000)
1243 basic_machine=rs6000-ibm
1245 vax)
1246 basic_machine=vax-dec
1248 pdp10)
1249 # there are many clones, so DEC is not a safe bet
1250 basic_machine=pdp10-unknown
1252 pdp11)
1253 basic_machine=pdp11-dec
1255 we32k)
1256 basic_machine=we32k-att
1258 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1259 basic_machine=sh-unknown
1261 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1262 basic_machine=sparc-sun
1264 cydra)
1265 basic_machine=cydra-cydrome
1267 orion)
1268 basic_machine=orion-highlevel
1270 orion105)
1271 basic_machine=clipper-highlevel
1273 mac | mpw | mac-mpw)
1274 basic_machine=m68k-apple
1276 pmac | pmac-mpw)
1277 basic_machine=powerpc-apple
1279 *-unknown)
1280 # Make sure to match an already-canonicalized machine name.
1283 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1284 exit 1
1286 esac
1288 # Here we canonicalize certain aliases for manufacturers.
1289 case $basic_machine in
1290 *-digital*)
1291 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1293 *-commodore*)
1294 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1298 esac
1300 # Decode manufacturer-specific aliases for certain operating systems.
1302 if [ x"$os" != x"" ]
1303 then
1304 case $os in
1305 # First match some system type aliases
1306 # that might get confused with valid system types.
1307 # -solaris* is a basic system type, with this one exception.
1308 -auroraux)
1309 os=-auroraux
1311 -solaris1 | -solaris1.*)
1312 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1314 -solaris)
1315 os=-solaris2
1317 -svr4*)
1318 os=-sysv4
1320 -unixware*)
1321 os=-sysv4.2uw
1323 -gnu/linux*)
1324 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1326 # First accept the basic system types.
1327 # The portable systems comes first.
1328 # Each alternative MUST END IN A *, to match a version number.
1329 # -sysv* is not here because it comes later, after sysvr4.
1330 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1331 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1332 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1333 | -sym* | -kopensolaris* | -plan9* \
1334 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1335 | -aos* | -aros* \
1336 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1337 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1338 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1339 | -bitrig* | -openbsd* | -solidbsd* \
1340 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1341 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1342 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1343 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1344 | -chorusos* | -chorusrdb* | -cegcc* \
1345 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1346 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1347 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1348 | -uxpv* | -beos* | -mpeix* | -udk* \
1349 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1350 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1351 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1352 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1353 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1354 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1355 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1356 # Remember, each alternative MUST END IN *, to match a version number.
1358 -qnx*)
1359 case $basic_machine in
1360 x86-* | i*86-*)
1363 os=-nto$os
1365 esac
1367 -nto-qnx*)
1369 -nto*)
1370 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1372 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1373 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1374 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1376 -mac*)
1377 os=`echo $os | sed -e 's|mac|macos|'`
1379 -linux-dietlibc)
1380 os=-linux-dietlibc
1382 -linux*)
1383 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1385 -sunos5*)
1386 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1388 -sunos6*)
1389 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1391 -opened*)
1392 os=-openedition
1394 -os400*)
1395 os=-os400
1397 -wince*)
1398 os=-wince
1400 -osfrose*)
1401 os=-osfrose
1403 -osf*)
1404 os=-osf
1406 -utek*)
1407 os=-bsd
1409 -dynix*)
1410 os=-bsd
1412 -acis*)
1413 os=-aos
1415 -atheos*)
1416 os=-atheos
1418 -syllable*)
1419 os=-syllable
1421 -386bsd)
1422 os=-bsd
1424 -ctix* | -uts*)
1425 os=-sysv
1427 -nova*)
1428 os=-rtmk-nova
1430 -ns2 )
1431 os=-nextstep2
1433 -nsk*)
1434 os=-nsk
1436 # Preserve the version number of sinix5.
1437 -sinix5.*)
1438 os=`echo $os | sed -e 's|sinix|sysv|'`
1440 -sinix*)
1441 os=-sysv4
1443 -tpf*)
1444 os=-tpf
1446 -triton*)
1447 os=-sysv3
1449 -oss*)
1450 os=-sysv3
1452 -svr4)
1453 os=-sysv4
1455 -svr3)
1456 os=-sysv3
1458 -sysvr4)
1459 os=-sysv4
1461 # This must come after -sysvr4.
1462 -sysv*)
1464 -ose*)
1465 os=-ose
1467 -es1800*)
1468 os=-ose
1470 -xenix)
1471 os=-xenix
1473 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1474 os=-mint
1476 -aros*)
1477 os=-aros
1479 -zvmoe)
1480 os=-zvmoe
1482 -dicos*)
1483 os=-dicos
1485 -none)
1488 # Get rid of the `-' at the beginning of $os.
1489 os=`echo $os | sed 's/[^-]*-//'`
1490 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1491 exit 1
1493 esac
1494 else
1496 # Here we handle the default operating systems that come with various machines.
1497 # The value should be what the vendor currently ships out the door with their
1498 # machine or put another way, the most popular os provided with the machine.
1500 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1501 # "-sun"), then you have to tell the case statement up towards the top
1502 # that MANUFACTURER isn't an operating system. Otherwise, code above
1503 # will signal an error saying that MANUFACTURER isn't an operating
1504 # system, and we'll never get to this point.
1506 case $basic_machine in
1507 score-*)
1508 os=-elf
1510 spu-*)
1511 os=-elf
1513 *-acorn)
1514 os=-riscix1.2
1516 arm*-rebel)
1517 os=-linux
1519 arm*-semi)
1520 os=-aout
1522 c4x-* | tic4x-*)
1523 os=-coff
1525 hexagon-*)
1526 os=-elf
1528 tic54x-*)
1529 os=-coff
1531 tic55x-*)
1532 os=-coff
1534 tic6x-*)
1535 os=-coff
1537 # This must come before the *-dec entry.
1538 pdp10-*)
1539 os=-tops20
1541 pdp11-*)
1542 os=-none
1544 *-dec | vax-*)
1545 os=-ultrix4.2
1547 m68*-apollo)
1548 os=-domain
1550 i386-sun)
1551 os=-sunos4.0.2
1553 m68000-sun)
1554 os=-sunos3
1556 m68*-cisco)
1557 os=-aout
1559 mep-*)
1560 os=-elf
1562 mips*-cisco)
1563 os=-elf
1565 mips*-*)
1566 os=-elf
1568 or32-*)
1569 os=-coff
1571 *-tti) # must be before sparc entry or we get the wrong os.
1572 os=-sysv3
1574 sparc-* | *-sun)
1575 os=-sunos4.1.1
1577 *-be)
1578 os=-beos
1580 *-haiku)
1581 os=-haiku
1583 *-ibm)
1584 os=-aix
1586 *-knuth)
1587 os=-mmixware
1589 *-wec)
1590 os=-proelf
1592 *-winbond)
1593 os=-proelf
1595 *-oki)
1596 os=-proelf
1598 *-hp)
1599 os=-hpux
1601 *-hitachi)
1602 os=-hiux
1604 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1605 os=-sysv
1607 *-cbm)
1608 os=-amigaos
1610 *-dg)
1611 os=-dgux
1613 *-dolphin)
1614 os=-sysv3
1616 m68k-ccur)
1617 os=-rtu
1619 m88k-omron*)
1620 os=-luna
1622 *-next )
1623 os=-nextstep
1625 *-sequent)
1626 os=-ptx
1628 *-crds)
1629 os=-unos
1631 *-ns)
1632 os=-genix
1634 i370-*)
1635 os=-mvs
1637 *-next)
1638 os=-nextstep3
1640 *-gould)
1641 os=-sysv
1643 *-highlevel)
1644 os=-bsd
1646 *-encore)
1647 os=-bsd
1649 *-sgi)
1650 os=-irix
1652 *-siemens)
1653 os=-sysv4
1655 *-masscomp)
1656 os=-rtu
1658 f30[01]-fujitsu | f700-fujitsu)
1659 os=-uxpv
1661 *-rom68k)
1662 os=-coff
1664 *-*bug)
1665 os=-coff
1667 *-apple)
1668 os=-macos
1670 *-atari*)
1671 os=-mint
1674 os=-none
1676 esac
1679 # Here we handle the case where we know the os, and the CPU type, but not the
1680 # manufacturer. We pick the logical manufacturer.
1681 vendor=unknown
1682 case $basic_machine in
1683 *-unknown)
1684 case $os in
1685 -riscix*)
1686 vendor=acorn
1688 -sunos*)
1689 vendor=sun
1691 -cnk*|-aix*)
1692 vendor=ibm
1694 -beos*)
1695 vendor=be
1697 -hpux*)
1698 vendor=hp
1700 -mpeix*)
1701 vendor=hp
1703 -hiux*)
1704 vendor=hitachi
1706 -unos*)
1707 vendor=crds
1709 -dgux*)
1710 vendor=dg
1712 -luna*)
1713 vendor=omron
1715 -genix*)
1716 vendor=ns
1718 -mvs* | -opened*)
1719 vendor=ibm
1721 -os400*)
1722 vendor=ibm
1724 -ptx*)
1725 vendor=sequent
1727 -tpf*)
1728 vendor=ibm
1730 -vxsim* | -vxworks* | -windiss*)
1731 vendor=wrs
1733 -aux*)
1734 vendor=apple
1736 -hms*)
1737 vendor=hitachi
1739 -mpw* | -macos*)
1740 vendor=apple
1742 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1743 vendor=atari
1745 -vos*)
1746 vendor=stratus
1748 esac
1749 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1751 esac
1753 echo $basic_machine$os
1754 exit
1756 # Local variables:
1757 # eval: (add-hook 'write-file-hooks 'time-stamp)
1758 # time-stamp-start: "timestamp='"
1759 # time-stamp-format: "%:y-%02m-%02d"
1760 # time-stamp-end: "'"
1761 # End: