comparison config.sub @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 #! /bin/sh 1 #! /bin/sh
2 # Configuration validation subroutine script. 2 # Configuration validation subroutine script.
3 # Copyright 1992-2016 Free Software Foundation, Inc. 3 # Copyright 1992-2018 Free Software Foundation, Inc.
4 4
5 timestamp='2016-12-24' 5 timestamp='2018-07-03'
6 6
7 # This file is free software; you can redistribute it and/or modify it 7 # This file is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by 8 # under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3 of the License, or 9 # the Free Software Foundation; either version 3 of the License, or
10 # (at your option) any later version. 10 # (at your option) any later version.
13 # WITHOUT ANY WARRANTY; without even the implied warranty of 13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # General Public License for more details. 15 # General Public License for more details.
16 # 16 #
17 # You should have received a copy of the GNU General Public License 17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, see <http://www.gnu.org/licenses/>. 18 # along with this program; if not, see <https://www.gnu.org/licenses/>.
19 # 19 #
20 # As a special exception to the GNU General Public License, if you 20 # As a special exception to the GNU General Public License, if you
21 # distribute this file as part of a program that contains a 21 # distribute this file as part of a program that contains a
22 # configuration script generated by Autoconf, you may include it under 22 # configuration script generated by Autoconf, you may include it under
23 # the same distribution terms that you use for the rest of that 23 # the same distribution terms that you use for the rest of that
31 # Supply the specified configuration type as an argument. 31 # Supply the specified configuration type as an argument.
32 # If it is invalid, we print an error message on stderr and exit with code 1. 32 # If it is invalid, we print an error message on stderr and exit with code 1.
33 # Otherwise, we print the canonical config type on stdout and succeed. 33 # Otherwise, we print the canonical config type on stdout and succeed.
34 34
35 # You can get the latest version of this script from: 35 # You can get the latest version of this script from:
36 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub 36 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
37 37
38 # This file is supposed to be the same for all GNU packages 38 # This file is supposed to be the same for all GNU packages
39 # and recognize all the CPU types, system types and aliases 39 # and recognize all the CPU types, system types and aliases
40 # that are meaningful with *any* GNU software. 40 # that are meaningful with *any* GNU software.
41 # Each package is responsible for reporting which valid configurations 41 # Each package is responsible for reporting which valid configurations
55 usage="\ 55 usage="\
56 Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS 56 Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
57 57
58 Canonicalize a configuration name. 58 Canonicalize a configuration name.
59 59
60 Operation modes: 60 Options:
61 -h, --help print this help, then exit 61 -h, --help print this help, then exit
62 -t, --time-stamp print date of last modification, then exit 62 -t, --time-stamp print date of last modification, then exit
63 -v, --version print version number, then exit 63 -v, --version print version number, then exit
64 64
65 Report bugs and patches to <config-patches@gnu.org>." 65 Report bugs and patches to <config-patches@gnu.org>."
66 66
67 version="\ 67 version="\
68 GNU config.sub ($timestamp) 68 GNU config.sub ($timestamp)
69 69
70 Copyright 1992-2016 Free Software Foundation, Inc. 70 Copyright 1992-2018 Free Software Foundation, Inc.
71 71
72 This is free software; see the source for copying conditions. There is NO 72 This is free software; see the source for copying conditions. There is NO
73 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 73 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
74 74
75 help=" 75 help="
92 echo "$me: invalid option $1$help" 92 echo "$me: invalid option $1$help"
93 exit 1 ;; 93 exit 1 ;;
94 94
95 *local*) 95 *local*)
96 # First pass through any local machine types. 96 # First pass through any local machine types.
97 echo $1 97 echo "$1"
98 exit ;; 98 exit ;;
99 99
100 * ) 100 * )
101 break ;; 101 break ;;
102 esac 102 esac
108 1) ;; 108 1) ;;
109 *) echo "$me: too many arguments$help" >&2 109 *) echo "$me: too many arguments$help" >&2
110 exit 1;; 110 exit 1;;
111 esac 111 esac
112 112
113 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 113 # Split fields of configuration type
114 # Here we must recognize all the valid KERNEL-OS combinations. 114 IFS="-" read -r field1 field2 field3 field4 <<EOF
115 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 115 $1
116 case $maybe_os in 116 EOF
117 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ 117
118 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ 118 # Separate into logical components for further validation
119 knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ 119 case $1 in
120 kopensolaris*-gnu* | cloudabi*-eabi* | \ 120 *-*-*-*-*)
121 storm-chaos* | os2-emx* | rtmk-nova*) 121 echo Invalid configuration \`"$1"\': more than four components >&2
122 os=-$maybe_os 122 exit 1
123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 123 ;;
124 ;; 124 *-*-*-*)
125 android-linux) 125 basic_machine=$field1-$field2
126 os=-linux-android 126 os=$field3-$field4
127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown 127 ;;
128 ;; 128 *-*-*)
129 *) 129 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
130 basic_machine=`echo $1 | sed 's/-[^-]*$//'` 130 # parts
131 if [ $basic_machine != $1 ] 131 maybe_os=$field2-$field3
132 then os=`echo $1 | sed 's/.*-/-/'` 132 case $maybe_os in
133 else os=; fi 133 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc \
134 ;; 134 | linux-newlib* | linux-musl* | linux-uclibc* | uclinux-uclibc* \
135 esac 135 | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
136 136 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
137 ### Let's recognize common machines as not being operating systems so 137 | storm-chaos* | os2-emx* | rtmk-nova*)
138 ### that things like config.sub decstation-3100 work. We also 138 basic_machine=$field1
139 ### recognize some manufacturers as not being operating systems, so we 139 os=$maybe_os
140 ### can provide default operating systems below. 140 ;;
141 case $os in 141 android-linux)
142 -sun*os*) 142 basic_machine=$field1-unknown
143 # Prevent following clause from handling this invalid input. 143 os=linux-android
144 ;; 144 ;;
145 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ 145 *)
146 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 146 basic_machine=$field1-$field2
147 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 147 os=$field3
148 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 148 ;;
149 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 149 esac
150 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 150 ;;
151 -apple | -axis | -knuth | -cray | -microblaze*) 151 *-*)
152 os= 152 # Second component is usually, but not always the OS
153 basic_machine=$1 153 case $field2 in
154 ;; 154 # Prevent following clause from handling this valid os
155 -bluegene*) 155 sun*os*)
156 os=-cnk 156 basic_machine=$field1
157 ;; 157 os=$field2
158 -sim | -cisco | -oki | -wec | -winbond) 158 ;;
159 os= 159 # Manufacturers
160 basic_machine=$1 160 dec* | mips* | sequent* | encore* | pc532* | sgi* | sony* \
161 ;; 161 | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \
162 -scout) 162 | unicom* | ibm* | next | hp | isi* | apollo | altos* \
163 ;; 163 | convergent* | ncr* | news | 32* | 3600* | 3100* | hitachi* \
164 -wrs) 164 | c[123]* | convex* | sun | crds | omron* | dg | ultra | tti* \
165 os=-vxworks 165 | harris | dolphin | highlevel | gould | cbm | ns | masscomp \
166 basic_machine=$1 166 | apple | axis | knuth | cray | microblaze* \
167 ;; 167 | sim | cisco | oki | wec | wrs | winbond)
168 -chorusos*) 168 basic_machine=$field1-$field2
169 os=-chorusos 169 os=
170 basic_machine=$1 170 ;;
171 ;; 171 *)
172 -chorusrdb) 172 basic_machine=$field1
173 os=-chorusrdb 173 os=$field2
174 basic_machine=$1 174 ;;
175 ;; 175 esac
176 -hiux*) 176 ;;
177 os=-hiuxwe2 177 *)
178 ;; 178 # Convert single-component short-hands not valid as part of
179 -sco6) 179 # multi-component configurations.
180 os=-sco5v6 180 case $field1 in
181 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 181 386bsd)
182 ;; 182 basic_machine=i386-pc
183 -sco5) 183 os=bsd
184 os=-sco3.2v5 184 ;;
185 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 185 a29khif)
186 ;; 186 basic_machine=a29k-amd
187 -sco4) 187 os=udi
188 os=-sco3.2v4 188 ;;
189 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 189 adobe68k)
190 ;; 190 basic_machine=m68010-adobe
191 -sco3.2.[4-9]*) 191 os=scout
192 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 192 ;;
193 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 193 am29k)
194 ;; 194 basic_machine=a29k-none
195 -sco3.2v[4-9]*) 195 os=bsd
196 # Don't forget version if it is 3.2v4 or newer. 196 ;;
197 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 197 amdahl)
198 ;; 198 basic_machine=580-amdahl
199 -sco5v6*) 199 os=sysv
200 # Don't forget version if it is 3.2v4 or newer. 200 ;;
201 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 201 amigaos | amigados)
202 ;; 202 basic_machine=m68k-unknown
203 -sco*) 203 os=amigaos
204 os=-sco3.2v2 204 ;;
205 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 205 amigaunix | amix)
206 ;; 206 basic_machine=m68k-unknown
207 -udk*) 207 os=sysv4
208 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 208 ;;
209 ;; 209 apollo68)
210 -isc) 210 basic_machine=m68k-apollo
211 os=-isc2.2 211 os=sysv
212 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 212 ;;
213 ;; 213 apollo68bsd)
214 -clix*) 214 basic_machine=m68k-apollo
215 basic_machine=clipper-intergraph 215 os=bsd
216 ;; 216 ;;
217 -isc*) 217 aros)
218 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 218 basic_machine=i386-pc
219 ;; 219 os=aros
220 -lynx*178) 220 ;;
221 os=-lynxos178 221 aux)
222 ;; 222 basic_machine=m68k-apple
223 -lynx*5) 223 os=aux
224 os=-lynxos5 224 ;;
225 ;; 225 balance)
226 -lynx*) 226 basic_machine=ns32k-sequent
227 os=-lynxos 227 os=dynix
228 ;; 228 ;;
229 -ptx*) 229 blackfin)
230 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` 230 basic_machine=bfin-unknown
231 ;; 231 os=linux
232 -windowsnt*) 232 ;;
233 os=`echo $os | sed -e 's/windowsnt/winnt/'` 233 cegcc)
234 ;; 234 basic_machine=arm-unknown
235 -psos*) 235 os=cegcc
236 os=-psos 236 ;;
237 ;; 237 cray)
238 -mint | -mint[0-9]*) 238 basic_machine=j90-cray
239 basic_machine=m68k-atari 239 os=unicos
240 os=-mint 240 ;;
241 craynv)
242 basic_machine=craynv-cray
243 os=unicosmp
244 ;;
245 delta88)
246 basic_machine=m88k-motorola
247 os=sysv3
248 ;;
249 dicos)
250 basic_machine=i686-pc
251 os=dicos
252 ;;
253 djgpp)
254 basic_machine=i586-pc
255 os=msdosdjgpp
256 ;;
257 ebmon29k)
258 basic_machine=a29k-amd
259 os=ebmon
260 ;;
261 es1800 | OSE68k | ose68k | ose | OSE)
262 basic_machine=m68k-ericsson
263 os=ose
264 ;;
265 gmicro)
266 basic_machine=tron-gmicro
267 os=sysv
268 ;;
269 go32)
270 basic_machine=i386-pc
271 os=go32
272 ;;
273 h8300hms)
274 basic_machine=h8300-hitachi
275 os=hms
276 ;;
277 h8300xray)
278 basic_machine=h8300-hitachi
279 os=xray
280 ;;
281 h8500hms)
282 basic_machine=h8500-hitachi
283 os=hms
284 ;;
285 harris)
286 basic_machine=m88k-harris
287 os=sysv3
288 ;;
289 hp300bsd)
290 basic_machine=m68k-hp
291 os=bsd
292 ;;
293 hp300hpux)
294 basic_machine=m68k-hp
295 os=hpux
296 ;;
297 hppaosf)
298 basic_machine=hppa1.1-hp
299 os=osf
300 ;;
301 hppro)
302 basic_machine=hppa1.1-hp
303 os=proelf
304 ;;
305 i386mach)
306 basic_machine=i386-mach
307 os=mach
308 ;;
309 vsta)
310 basic_machine=i386-unknown
311 os=vsta
312 ;;
313 isi68 | isi)
314 basic_machine=m68k-isi
315 os=sysv
316 ;;
317 m68knommu)
318 basic_machine=m68k-unknown
319 os=linux
320 ;;
321 magnum | m3230)
322 basic_machine=mips-mips
323 os=sysv
324 ;;
325 merlin)
326 basic_machine=ns32k-utek
327 os=sysv
328 ;;
329 mingw64)
330 basic_machine=x86_64-pc
331 os=mingw64
332 ;;
333 mingw32)
334 basic_machine=i686-pc
335 os=mingw32
336 ;;
337 mingw32ce)
338 basic_machine=arm-unknown
339 os=mingw32ce
340 ;;
341 monitor)
342 basic_machine=m68k-rom68k
343 os=coff
344 ;;
345 morphos)
346 basic_machine=powerpc-unknown
347 os=morphos
348 ;;
349 moxiebox)
350 basic_machine=moxie-unknown
351 os=moxiebox
352 ;;
353 msdos)
354 basic_machine=i386-pc
355 os=msdos
356 ;;
357 msys)
358 basic_machine=i686-pc
359 os=msys
360 ;;
361 mvs)
362 basic_machine=i370-ibm
363 os=mvs
364 ;;
365 nacl)
366 basic_machine=le32-unknown
367 os=nacl
368 ;;
369 ncr3000)
370 basic_machine=i486-ncr
371 os=sysv4
372 ;;
373 netbsd386)
374 basic_machine=i386-unknown
375 os=netbsd
376 ;;
377 netwinder)
378 basic_machine=armv4l-rebel
379 os=linux
380 ;;
381 news | news700 | news800 | news900)
382 basic_machine=m68k-sony
383 os=newsos
384 ;;
385 news1000)
386 basic_machine=m68030-sony
387 os=newsos
388 ;;
389 necv70)
390 basic_machine=v70-nec
391 os=sysv
392 ;;
393 nh3000)
394 basic_machine=m68k-harris
395 os=cxux
396 ;;
397 nh[45]000)
398 basic_machine=m88k-harris
399 os=cxux
400 ;;
401 nindy960)
402 basic_machine=i960-intel
403 os=nindy
404 ;;
405 mon960)
406 basic_machine=i960-intel
407 os=mon960
408 ;;
409 nonstopux)
410 basic_machine=mips-compaq
411 os=nonstopux
412 ;;
413 os400)
414 basic_machine=powerpc-ibm
415 os=os400
416 ;;
417 OSE68000 | ose68000)
418 basic_machine=m68000-ericsson
419 os=ose
420 ;;
421 os68k)
422 basic_machine=m68k-none
423 os=os68k
424 ;;
425 paragon)
426 basic_machine=i860-intel
427 os=osf
428 ;;
429 parisc)
430 basic_machine=hppa-unknown
431 os=linux
432 ;;
433 pw32)
434 basic_machine=i586-unknown
435 os=pw32
436 ;;
437 rdos | rdos64)
438 basic_machine=x86_64-pc
439 os=rdos
440 ;;
441 rdos32)
442 basic_machine=i386-pc
443 os=rdos
444 ;;
445 rom68k)
446 basic_machine=m68k-rom68k
447 os=coff
448 ;;
449 sa29200)
450 basic_machine=a29k-amd
451 os=udi
452 ;;
453 sei)
454 basic_machine=mips-sei
455 os=seiux
456 ;;
457 sps7)
458 basic_machine=m68k-bull
459 os=sysv2
460 ;;
461 stratus)
462 basic_machine=i860-stratus
463 os=sysv4
464 ;;
465 sun2os3)
466 basic_machine=m68000-sun
467 os=sunos3
468 ;;
469 sun2os4)
470 basic_machine=m68000-sun
471 os=sunos4
472 ;;
473 sun3os3)
474 basic_machine=m68k-sun
475 os=sunos3
476 ;;
477 sun3os4)
478 basic_machine=m68k-sun
479 os=sunos4
480 ;;
481 sun4os3)
482 basic_machine=sparc-sun
483 os=sunos3
484 ;;
485 sun4os4)
486 basic_machine=sparc-sun
487 os=sunos4
488 ;;
489 sun4sol2)
490 basic_machine=sparc-sun
491 os=solaris2
492 ;;
493 sv1)
494 basic_machine=sv1-cray
495 os=unicos
496 ;;
497 symmetry)
498 basic_machine=i386-sequent
499 os=dynix
500 ;;
501 t3e)
502 basic_machine=alphaev5-cray
503 os=unicos
504 ;;
505 t90)
506 basic_machine=t90-cray
507 os=unicos
508 ;;
509 toad1)
510 basic_machine=pdp10-xkl
511 os=tops20
512 ;;
513 tpf)
514 basic_machine=s390x-ibm
515 os=tpf
516 ;;
517 udi29k)
518 basic_machine=a29k-amd
519 os=udi
520 ;;
521 ultra3)
522 basic_machine=a29k-nyu
523 os=sym1
524 ;;
525 v810 | necv810)
526 basic_machine=v810-nec
527 os=none
528 ;;
529 vaxv)
530 basic_machine=vax-dec
531 os=sysv
532 ;;
533 vms)
534 basic_machine=vax-dec
535 os=vms
536 ;;
537 vxworks960)
538 basic_machine=i960-wrs
539 os=vxworks
540 ;;
541 vxworks68)
542 basic_machine=m68k-wrs
543 os=vxworks
544 ;;
545 vxworks29k)
546 basic_machine=a29k-wrs
547 os=vxworks
548 ;;
549 xbox)
550 basic_machine=i686-pc
551 os=mingw32
552 ;;
553 ymp)
554 basic_machine=ymp-cray
555 os=unicos
556 ;;
557 *)
558 basic_machine=$1
559 os=
560 ;;
561 esac
241 ;; 562 ;;
242 esac 563 esac
243 564
244 # Decode aliases for certain CPU-COMPANY combinations. 565 # Decode aliases for certain CPU-COMPANY combinations.
245 case $basic_machine in 566 case $basic_machine in
250 | aarch64 | aarch64_be \ 571 | aarch64 | aarch64_be \
251 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 572 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
252 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 573 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
253 | am33_2.0 \ 574 | am33_2.0 \
254 | arc | arceb \ 575 | arc | arceb \
255 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ 576 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv6m | armv[78][arm] \
256 | avr | avr32 \ 577 | avr | avr32 \
257 | ba \ 578 | ba \
258 | be32 | be64 \ 579 | be32 | be64 \
259 | bfin \ 580 | bfin \
260 | c4x | c8051 | clipper \ 581 | c4x | c8051 | clipper | csky \
261 | d10v | d30v | dlx | dsp16xx \ 582 | d10v | d30v | dlx | dsp16xx \
262 | e2k | epiphany \ 583 | e2k | epiphany \
263 | fido | fr30 | frv | ft32 \ 584 | fido | fr30 | frv | ft32 \
264 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 585 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
265 | hexagon \ 586 | hexagon \
266 | i370 | i860 | i960 | ia64 \ 587 | i370 | i860 | i960 | ia16 | ia64 \
267 | ip2k | iq2000 \ 588 | ip2k | iq2000 \
268 | k1om \ 589 | k1om \
269 | le32 | le64 \ 590 | le32 | le64 \
270 | lm32 \ 591 | lm32 \
271 | m32c | m32r | m32rle | m68000 | m68k | m88k \ 592 | m32c | m32r | m32rle | m68000 | m68k | m88k \
294 | mn10200 | mn10300 \ 615 | mn10200 | mn10300 \
295 | moxie \ 616 | moxie \
296 | mt \ 617 | mt \
297 | msp430 \ 618 | msp430 \
298 | nds32 | nds32le | nds32be \ 619 | nds32 | nds32le | nds32be \
620 | nfp \
299 | nios | nios2 | nios2eb | nios2el \ 621 | nios | nios2 | nios2eb | nios2el \
300 | ns16k | ns32k \ 622 | ns16k | ns32k \
301 | open8 | or1k | or1knd | or32 \ 623 | open8 | or1k | or1knd | or32 \
302 | pdp10 | pdp11 | pj | pjl \ 624 | pdp10 | pj | pjl \
303 | powerpc | powerpc64 | powerpc64le | powerpcle \ 625 | powerpc | powerpc64 | powerpc64le | powerpcle \
304 | pru \ 626 | pru \
305 | pyramid \ 627 | pyramid \
306 | riscv32 | riscv64 \ 628 | riscv | riscv32 | riscv64 \
307 | rl78 | rx \ 629 | rl78 | rx \
308 | score \ 630 | score \
309 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ 631 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
310 | sh64 | sh64le \ 632 | sh64 | sh64le \
311 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ 633 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
313 | spu \ 635 | spu \
314 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ 636 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
315 | ubicom32 \ 637 | ubicom32 \
316 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ 638 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
317 | visium \ 639 | visium \
318 | we32k \ 640 | wasm32 \
319 | x86 | xc16x | xstormy16 | xtensa \ 641 | x86 | xc16x | xstormy16 | xtensa \
320 | z8k | z80) 642 | z8k | z80)
321 basic_machine=$basic_machine-unknown 643 basic_machine=$basic_machine-unknown
322 ;; 644 ;;
323 c54x) 645 c54x)
332 leon|leon[3-9]) 654 leon|leon[3-9])
333 basic_machine=sparc-$basic_machine 655 basic_machine=sparc-$basic_machine
334 ;; 656 ;;
335 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) 657 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
336 basic_machine=$basic_machine-unknown 658 basic_machine=$basic_machine-unknown
337 os=-none 659 os=${os:-none}
338 ;; 660 ;;
339 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 661 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
662 ;;
663 m9s12z | m68hcs12z | hcs12z | s12z)
664 basic_machine=s12z-unknown
665 os=${os:-none}
340 ;; 666 ;;
341 ms1) 667 ms1)
342 basic_machine=mt-unknown 668 basic_machine=mt-unknown
343 ;; 669 ;;
344
345 strongarm | thumb | xscale) 670 strongarm | thumb | xscale)
346 basic_machine=arm-unknown 671 basic_machine=arm-unknown
347 ;; 672 ;;
348 xgate) 673 xgate)
349 basic_machine=$basic_machine-unknown 674 basic_machine=$basic_machine-unknown
350 os=-none 675 os=${os:-none}
351 ;; 676 ;;
352 xscaleeb) 677 xscaleeb)
353 basic_machine=armeb-unknown 678 basic_machine=armeb-unknown
354 ;; 679 ;;
355 680
361 # because (1) that's what they normally are, and 686 # because (1) that's what they normally are, and
362 # (2) the word "unknown" tends to confuse beginning users. 687 # (2) the word "unknown" tends to confuse beginning users.
363 i*86 | x86_64) 688 i*86 | x86_64)
364 basic_machine=$basic_machine-pc 689 basic_machine=$basic_machine-pc
365 ;; 690 ;;
366 # Object if more than one company name word.
367 *-*-*)
368 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
369 exit 1
370 ;;
371 # Recognize the basic CPU types with company name. 691 # Recognize the basic CPU types with company name.
372 580-* \ 692 580-* \
373 | a29k-* \ 693 | a29k-* \
374 | aarch64-* | aarch64_be-* \ 694 | aarch64-* | aarch64_be-* \
375 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 695 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
379 | avr-* | avr32-* \ 699 | avr-* | avr32-* \
380 | ba-* \ 700 | ba-* \
381 | be32-* | be64-* \ 701 | be32-* | be64-* \
382 | bfin-* | bs2000-* \ 702 | bfin-* | bs2000-* \
383 | c[123]* | c30-* | [cjt]90-* | c4x-* \ 703 | c[123]* | c30-* | [cjt]90-* | c4x-* \
384 | c8051-* | clipper-* | craynv-* | cydra-* \ 704 | c8051-* | clipper-* | craynv-* | csky-* | cydra-* \
385 | d10v-* | d30v-* | dlx-* \ 705 | d10v-* | d30v-* | dlx-* \
386 | e2k-* | elxsi-* \ 706 | e2k-* | elxsi-* \
387 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ 707 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
388 | h8300-* | h8500-* \ 708 | h8300-* | h8500-* \
389 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 709 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
390 | hexagon-* \ 710 | hexagon-* \
391 | i*86-* | i860-* | i960-* | ia64-* \ 711 | i*86-* | i860-* | i960-* | ia16-* | ia64-* \
392 | ip2k-* | iq2000-* \ 712 | ip2k-* | iq2000-* \
393 | k1om-* \ 713 | k1om-* \
394 | le32-* | le64-* \ 714 | le32-* | le64-* \
395 | lm32-* \ 715 | lm32-* \
396 | m32c-* | m32r-* | m32rle-* \ 716 | m32c-* | m32r-* | m32rle-* \
420 | mipstx39-* | mipstx39el-* \ 740 | mipstx39-* | mipstx39el-* \
421 | mmix-* \ 741 | mmix-* \
422 | mt-* \ 742 | mt-* \
423 | msp430-* \ 743 | msp430-* \
424 | nds32-* | nds32le-* | nds32be-* \ 744 | nds32-* | nds32le-* | nds32be-* \
745 | nfp-* \
425 | nios-* | nios2-* | nios2eb-* | nios2el-* \ 746 | nios-* | nios2-* | nios2eb-* | nios2el-* \
426 | none-* | np1-* | ns16k-* | ns32k-* \ 747 | none-* | np1-* | ns16k-* | ns32k-* \
427 | open8-* \ 748 | open8-* \
428 | or1k*-* \ 749 | or1k*-* \
429 | orion-* \ 750 | orion-* \
430 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 751 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
431 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ 752 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
432 | pru-* \ 753 | pru-* \
433 | pyramid-* \ 754 | pyramid-* \
434 | riscv32-* | riscv64-* \ 755 | riscv-* | riscv32-* | riscv64-* \
435 | rl78-* | romp-* | rs6000-* | rx-* \ 756 | rl78-* | romp-* | rs6000-* | rx-* \
436 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ 757 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
437 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 758 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
438 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ 759 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
439 | sparclite-* \ 760 | sparclite-* \
444 | tron-* \ 765 | tron-* \
445 | ubicom32-* \ 766 | ubicom32-* \
446 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ 767 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
447 | vax-* \ 768 | vax-* \
448 | visium-* \ 769 | visium-* \
770 | wasm32-* \
449 | we32k-* \ 771 | we32k-* \
450 | x86-* | x86_64-* | xc16x-* | xps100-* \ 772 | x86-* | x86_64-* | xc16x-* | xps100-* \
451 | xstormy16-* | xtensa*-* \ 773 | xstormy16-* | xtensa*-* \
452 | ymp-* \ 774 | ymp-* \
453 | z8k-* | z80-*) 775 | z8k-* | z80-*)
456 xtensa*) 778 xtensa*)
457 basic_machine=$basic_machine-unknown 779 basic_machine=$basic_machine-unknown
458 ;; 780 ;;
459 # Recognize the various machine names and aliases which stand 781 # Recognize the various machine names and aliases which stand
460 # for a CPU type and a company and sometimes even an OS. 782 # for a CPU type and a company and sometimes even an OS.
461 386bsd)
462 basic_machine=i386-unknown
463 os=-bsd
464 ;;
465 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 783 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
466 basic_machine=m68000-att 784 basic_machine=m68000-att
467 ;; 785 ;;
468 3b*) 786 3b*)
469 basic_machine=we32k-att 787 basic_machine=we32k-att
470 ;; 788 ;;
471 a29khif)
472 basic_machine=a29k-amd
473 os=-udi
474 ;;
475 abacus) 789 abacus)
476 basic_machine=abacus-unknown 790 basic_machine=abacus-unknown
477 ;; 791 ;;
478 adobe68k)
479 basic_machine=m68010-adobe
480 os=-scout
481 ;;
482 alliant | fx80) 792 alliant | fx80)
483 basic_machine=fx80-alliant 793 basic_machine=fx80-alliant
484 ;; 794 ;;
485 altos | altos3068) 795 altos | altos3068)
486 basic_machine=m68k-altos 796 basic_machine=m68k-altos
487 ;; 797 ;;
488 am29k)
489 basic_machine=a29k-none
490 os=-bsd
491 ;;
492 amd64) 798 amd64)
493 basic_machine=x86_64-pc 799 basic_machine=x86_64-pc
494 ;; 800 ;;
495 amd64-*) 801 amd64-*)
496 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` 802 basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
497 ;;
498 amdahl)
499 basic_machine=580-amdahl
500 os=-sysv
501 ;; 803 ;;
502 amiga | amiga-*) 804 amiga | amiga-*)
503 basic_machine=m68k-unknown 805 basic_machine=m68k-unknown
504 ;; 806 ;;
505 amigaos | amigados)
506 basic_machine=m68k-unknown
507 os=-amigaos
508 ;;
509 amigaunix | amix)
510 basic_machine=m68k-unknown
511 os=-sysv4
512 ;;
513 apollo68)
514 basic_machine=m68k-apollo
515 os=-sysv
516 ;;
517 apollo68bsd)
518 basic_machine=m68k-apollo
519 os=-bsd
520 ;;
521 aros)
522 basic_machine=i386-pc
523 os=-aros
524 ;;
525 asmjs) 807 asmjs)
526 basic_machine=asmjs-unknown 808 basic_machine=asmjs-unknown
527 ;; 809 ;;
528 aux)
529 basic_machine=m68k-apple
530 os=-aux
531 ;;
532 balance)
533 basic_machine=ns32k-sequent
534 os=-dynix
535 ;;
536 blackfin)
537 basic_machine=bfin-unknown
538 os=-linux
539 ;;
540 blackfin-*) 810 blackfin-*)
541 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` 811 basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'`
542 os=-linux 812 os=linux
543 ;; 813 ;;
544 bluegene*) 814 bluegene*)
545 basic_machine=powerpc-ibm 815 basic_machine=powerpc-ibm
546 os=-cnk 816 os=cnk
547 ;; 817 ;;
548 c54x-*) 818 c54x-*)
549 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` 819 basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
550 ;; 820 ;;
551 c55x-*) 821 c55x-*)
552 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` 822 basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
553 ;; 823 ;;
554 c6x-*) 824 c6x-*)
555 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` 825 basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
556 ;; 826 ;;
557 c90) 827 c90)
558 basic_machine=c90-cray 828 basic_machine=c90-cray
559 os=-unicos 829 os=${os:-unicos}
560 ;;
561 cegcc)
562 basic_machine=arm-unknown
563 os=-cegcc
564 ;; 830 ;;
565 convex-c1) 831 convex-c1)
566 basic_machine=c1-convex 832 basic_machine=c1-convex
567 os=-bsd 833 os=bsd
568 ;; 834 ;;
569 convex-c2) 835 convex-c2)
570 basic_machine=c2-convex 836 basic_machine=c2-convex
571 os=-bsd 837 os=bsd
572 ;; 838 ;;
573 convex-c32) 839 convex-c32)
574 basic_machine=c32-convex 840 basic_machine=c32-convex
575 os=-bsd 841 os=bsd
576 ;; 842 ;;
577 convex-c34) 843 convex-c34)
578 basic_machine=c34-convex 844 basic_machine=c34-convex
579 os=-bsd 845 os=bsd
580 ;; 846 ;;
581 convex-c38) 847 convex-c38)
582 basic_machine=c38-convex 848 basic_machine=c38-convex
583 os=-bsd 849 os=bsd
584 ;;
585 cray | j90)
586 basic_machine=j90-cray
587 os=-unicos
588 ;;
589 craynv)
590 basic_machine=craynv-cray
591 os=-unicosmp
592 ;; 850 ;;
593 cr16 | cr16-*) 851 cr16 | cr16-*)
594 basic_machine=cr16-unknown 852 basic_machine=cr16-unknown
595 os=-elf 853 os=${os:-elf}
596 ;; 854 ;;
597 crds | unos) 855 crds | unos)
598 basic_machine=m68k-crds 856 basic_machine=m68k-crds
599 ;; 857 ;;
600 crisv32 | crisv32-* | etraxfs*) 858 crisv32 | crisv32-* | etraxfs*)
603 cris | cris-* | etrax*) 861 cris | cris-* | etrax*)
604 basic_machine=cris-axis 862 basic_machine=cris-axis
605 ;; 863 ;;
606 crx) 864 crx)
607 basic_machine=crx-unknown 865 basic_machine=crx-unknown
608 os=-elf 866 os=${os:-elf}
609 ;; 867 ;;
610 da30 | da30-*) 868 da30 | da30-*)
611 basic_machine=m68k-da30 869 basic_machine=m68k-da30
612 ;; 870 ;;
613 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 871 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
614 basic_machine=mips-dec 872 basic_machine=mips-dec
615 ;; 873 ;;
616 decsystem10* | dec10*) 874 decsystem10* | dec10*)
617 basic_machine=pdp10-dec 875 basic_machine=pdp10-dec
618 os=-tops10 876 os=tops10
619 ;; 877 ;;
620 decsystem20* | dec20*) 878 decsystem20* | dec20*)
621 basic_machine=pdp10-dec 879 basic_machine=pdp10-dec
622 os=-tops20 880 os=tops20
623 ;; 881 ;;
624 delta | 3300 | motorola-3300 | motorola-delta \ 882 delta | 3300 | motorola-3300 | motorola-delta \
625 | 3300-motorola | delta-motorola) 883 | 3300-motorola | delta-motorola)
626 basic_machine=m68k-motorola 884 basic_machine=m68k-motorola
627 ;; 885 ;;
628 delta88)
629 basic_machine=m88k-motorola
630 os=-sysv3
631 ;;
632 dicos)
633 basic_machine=i686-pc
634 os=-dicos
635 ;;
636 djgpp)
637 basic_machine=i586-pc
638 os=-msdosdjgpp
639 ;;
640 dpx20 | dpx20-*) 886 dpx20 | dpx20-*)
641 basic_machine=rs6000-bull 887 basic_machine=rs6000-bull
642 os=-bosx 888 os=${os:-bosx}
643 ;; 889 ;;
644 dpx2* | dpx2*-bull) 890 dpx2*)
645 basic_machine=m68k-bull 891 basic_machine=m68k-bull
646 os=-sysv3 892 os=sysv3
647 ;; 893 ;;
648 e500v[12]) 894 e500v[12])
649 basic_machine=powerpc-unknown 895 basic_machine=powerpc-unknown
650 os=$os"spe" 896 os=$os"spe"
651 ;; 897 ;;
652 e500v[12]-*) 898 e500v[12]-*)
653 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 899 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
654 os=$os"spe" 900 os=$os"spe"
655 ;; 901 ;;
656 ebmon29k) 902 encore | umax | mmax)
657 basic_machine=a29k-amd 903 basic_machine=ns32k-encore
658 os=-ebmon
659 ;; 904 ;;
660 elxsi) 905 elxsi)
661 basic_machine=elxsi-elxsi 906 basic_machine=elxsi-elxsi
662 os=-bsd 907 os=${os:-bsd}
663 ;;
664 encore | umax | mmax)
665 basic_machine=ns32k-encore
666 ;;
667 es1800 | OSE68k | ose68k | ose | OSE)
668 basic_machine=m68k-ericsson
669 os=-ose
670 ;; 908 ;;
671 fx2800) 909 fx2800)
672 basic_machine=i860-alliant 910 basic_machine=i860-alliant
673 ;; 911 ;;
674 genix) 912 genix)
675 basic_machine=ns32k-ns 913 basic_machine=ns32k-ns
676 ;; 914 ;;
677 gmicro)
678 basic_machine=tron-gmicro
679 os=-sysv
680 ;;
681 go32)
682 basic_machine=i386-pc
683 os=-go32
684 ;;
685 h3050r* | hiux*) 915 h3050r* | hiux*)
686 basic_machine=hppa1.1-hitachi 916 basic_machine=hppa1.1-hitachi
687 os=-hiuxwe2 917 os=hiuxwe2
688 ;;
689 h8300hms)
690 basic_machine=h8300-hitachi
691 os=-hms
692 ;;
693 h8300xray)
694 basic_machine=h8300-hitachi
695 os=-xray
696 ;;
697 h8500hms)
698 basic_machine=h8500-hitachi
699 os=-hms
700 ;;
701 harris)
702 basic_machine=m88k-harris
703 os=-sysv3
704 ;; 918 ;;
705 hp300-*) 919 hp300-*)
706 basic_machine=m68k-hp 920 basic_machine=m68k-hp
707 ;;
708 hp300bsd)
709 basic_machine=m68k-hp
710 os=-bsd
711 ;;
712 hp300hpux)
713 basic_machine=m68k-hp
714 os=-hpux
715 ;; 921 ;;
716 hp3k9[0-9][0-9] | hp9[0-9][0-9]) 922 hp3k9[0-9][0-9] | hp9[0-9][0-9])
717 basic_machine=hppa1.0-hp 923 basic_machine=hppa1.0-hp
718 ;; 924 ;;
719 hp9k2[0-9][0-9] | hp9k31[0-9]) 925 hp9k2[0-9][0-9] | hp9k31[0-9])
740 basic_machine=hppa1.1-hp 946 basic_machine=hppa1.1-hp
741 ;; 947 ;;
742 hp9k8[0-9][0-9] | hp8[0-9][0-9]) 948 hp9k8[0-9][0-9] | hp8[0-9][0-9])
743 basic_machine=hppa1.0-hp 949 basic_machine=hppa1.0-hp
744 ;; 950 ;;
745 hppa-next)
746 os=-nextstep3
747 ;;
748 hppaosf)
749 basic_machine=hppa1.1-hp
750 os=-osf
751 ;;
752 hppro)
753 basic_machine=hppa1.1-hp
754 os=-proelf
755 ;;
756 i370-ibm* | ibm*) 951 i370-ibm* | ibm*)
757 basic_machine=i370-ibm 952 basic_machine=i370-ibm
758 ;; 953 ;;
759 i*86v32) 954 i*86v32)
760 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 955 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
761 os=-sysv32 956 os=sysv32
762 ;; 957 ;;
763 i*86v4*) 958 i*86v4*)
764 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 959 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
765 os=-sysv4 960 os=sysv4
766 ;; 961 ;;
767 i*86v) 962 i*86v)
768 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 963 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
769 os=-sysv 964 os=sysv
770 ;; 965 ;;
771 i*86sol2) 966 i*86sol2)
772 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 967 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
773 os=-solaris2 968 os=solaris2
774 ;; 969 ;;
775 i386mach) 970 j90 | j90-cray)
776 basic_machine=i386-mach 971 basic_machine=j90-cray
777 os=-mach 972 os=${os:-unicos}
778 ;;
779 i386-vsta | vsta)
780 basic_machine=i386-unknown
781 os=-vsta
782 ;; 973 ;;
783 iris | iris4d) 974 iris | iris4d)
784 basic_machine=mips-sgi 975 basic_machine=mips-sgi
785 case $os in 976 case $os in
786 -irix*) 977 irix*)
787 ;; 978 ;;
788 *) 979 *)
789 os=-irix4 980 os=irix4
790 ;; 981 ;;
791 esac 982 esac
792 ;; 983 ;;
793 isi68 | isi)
794 basic_machine=m68k-isi
795 os=-sysv
796 ;;
797 leon-*|leon[3-9]-*) 984 leon-*|leon[3-9]-*)
798 basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'` 985 basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'`
799 ;;
800 m68knommu)
801 basic_machine=m68k-unknown
802 os=-linux
803 ;; 986 ;;
804 m68knommu-*) 987 m68knommu-*)
805 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` 988 basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'`
806 os=-linux 989 os=linux
807 ;;
808 m88k-omron*)
809 basic_machine=m88k-omron
810 ;;
811 magnum | m3230)
812 basic_machine=mips-mips
813 os=-sysv
814 ;;
815 merlin)
816 basic_machine=ns32k-utek
817 os=-sysv
818 ;; 990 ;;
819 microblaze*) 991 microblaze*)
820 basic_machine=microblaze-xilinx 992 basic_machine=microblaze-xilinx
821 ;; 993 ;;
822 mingw64)
823 basic_machine=x86_64-pc
824 os=-mingw64
825 ;;
826 mingw32)
827 basic_machine=i686-pc
828 os=-mingw32
829 ;;
830 mingw32ce)
831 basic_machine=arm-unknown
832 os=-mingw32ce
833 ;;
834 miniframe) 994 miniframe)
835 basic_machine=m68000-convergent 995 basic_machine=m68000-convergent
836 ;; 996 ;;
837 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) 997 *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
838 basic_machine=m68k-atari 998 basic_machine=m68k-atari
839 os=-mint 999 os=mint
840 ;; 1000 ;;
841 mips3*-*) 1001 mips3*-*)
842 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` 1002 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`
843 ;; 1003 ;;
844 mips3*) 1004 mips3*)
845 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 1005 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown
846 ;;
847 monitor)
848 basic_machine=m68k-rom68k
849 os=-coff
850 ;;
851 morphos)
852 basic_machine=powerpc-unknown
853 os=-morphos
854 ;;
855 moxiebox)
856 basic_machine=moxie-unknown
857 os=-moxiebox
858 ;;
859 msdos)
860 basic_machine=i386-pc
861 os=-msdos
862 ;; 1006 ;;
863 ms1-*) 1007 ms1-*)
864 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` 1008 basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'`
865 ;;
866 msys)
867 basic_machine=i686-pc
868 os=-msys
869 ;;
870 mvs)
871 basic_machine=i370-ibm
872 os=-mvs
873 ;;
874 nacl)
875 basic_machine=le32-unknown
876 os=-nacl
877 ;;
878 ncr3000)
879 basic_machine=i486-ncr
880 os=-sysv4
881 ;;
882 netbsd386)
883 basic_machine=i386-unknown
884 os=-netbsd
885 ;;
886 netwinder)
887 basic_machine=armv4l-rebel
888 os=-linux
889 ;;
890 news | news700 | news800 | news900)
891 basic_machine=m68k-sony
892 os=-newsos
893 ;;
894 news1000)
895 basic_machine=m68030-sony
896 os=-newsos
897 ;; 1009 ;;
898 news-3600 | risc-news) 1010 news-3600 | risc-news)
899 basic_machine=mips-sony 1011 basic_machine=mips-sony
900 os=-newsos 1012 os=newsos
901 ;; 1013 ;;
902 necv70) 1014 next | m*-next)
903 basic_machine=v70-nec
904 os=-sysv
905 ;;
906 next | m*-next )
907 basic_machine=m68k-next 1015 basic_machine=m68k-next
908 case $os in 1016 case $os in
909 -nextstep* ) 1017 nextstep* )
910 ;; 1018 ;;
911 -ns2*) 1019 ns2*)
912 os=-nextstep2 1020 os=nextstep2
913 ;; 1021 ;;
914 *) 1022 *)
915 os=-nextstep3 1023 os=nextstep3
916 ;; 1024 ;;
917 esac 1025 esac
918 ;; 1026 ;;
919 nh3000)
920 basic_machine=m68k-harris
921 os=-cxux
922 ;;
923 nh[45]000)
924 basic_machine=m88k-harris
925 os=-cxux
926 ;;
927 nindy960)
928 basic_machine=i960-intel
929 os=-nindy
930 ;;
931 mon960)
932 basic_machine=i960-intel
933 os=-mon960
934 ;;
935 nonstopux)
936 basic_machine=mips-compaq
937 os=-nonstopux
938 ;;
939 np1) 1027 np1)
940 basic_machine=np1-gould 1028 basic_machine=np1-gould
941 ;; 1029 ;;
942 neo-tandem) 1030 neo-tandem)
943 basic_machine=neo-tandem 1031 basic_machine=neo-tandem
946 basic_machine=nse-tandem 1034 basic_machine=nse-tandem
947 ;; 1035 ;;
948 nsr-tandem) 1036 nsr-tandem)
949 basic_machine=nsr-tandem 1037 basic_machine=nsr-tandem
950 ;; 1038 ;;
1039 nsv-tandem)
1040 basic_machine=nsv-tandem
1041 ;;
1042 nsx-tandem)
1043 basic_machine=nsx-tandem
1044 ;;
951 op50n-* | op60c-*) 1045 op50n-* | op60c-*)
952 basic_machine=hppa1.1-oki 1046 basic_machine=hppa1.1-oki
953 os=-proelf 1047 os=proelf
954 ;; 1048 ;;
955 openrisc | openrisc-*) 1049 openrisc | openrisc-*)
956 basic_machine=or32-unknown 1050 basic_machine=or32-unknown
957 ;; 1051 ;;
958 os400)
959 basic_machine=powerpc-ibm
960 os=-os400
961 ;;
962 OSE68000 | ose68000)
963 basic_machine=m68000-ericsson
964 os=-ose
965 ;;
966 os68k)
967 basic_machine=m68k-none
968 os=-os68k
969 ;;
970 pa-hitachi) 1052 pa-hitachi)
971 basic_machine=hppa1.1-hitachi 1053 basic_machine=hppa1.1-hitachi
972 os=-hiuxwe2 1054 os=hiuxwe2
973 ;;
974 paragon)
975 basic_machine=i860-intel
976 os=-osf
977 ;;
978 parisc)
979 basic_machine=hppa-unknown
980 os=-linux
981 ;; 1055 ;;
982 parisc-*) 1056 parisc-*)
983 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` 1057 basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'`
984 os=-linux 1058 os=linux
985 ;; 1059 ;;
986 pbd) 1060 pbd)
987 basic_machine=sparc-tti 1061 basic_machine=sparc-tti
988 ;; 1062 ;;
989 pbb) 1063 pbb)
994 ;; 1068 ;;
995 pc98) 1069 pc98)
996 basic_machine=i386-pc 1070 basic_machine=i386-pc
997 ;; 1071 ;;
998 pc98-*) 1072 pc98-*)
999 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` 1073 basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1000 ;; 1074 ;;
1001 pentium | p5 | k5 | k6 | nexgen | viac3) 1075 pentium | p5 | k5 | k6 | nexgen | viac3)
1002 basic_machine=i586-pc 1076 basic_machine=i586-pc
1003 ;; 1077 ;;
1004 pentiumpro | p6 | 6x86 | athlon | athlon_*) 1078 pentiumpro | p6 | 6x86 | athlon | athlon_*)
1009 ;; 1083 ;;
1010 pentium4) 1084 pentium4)
1011 basic_machine=i786-pc 1085 basic_machine=i786-pc
1012 ;; 1086 ;;
1013 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 1087 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1014 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 1088 basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1015 ;; 1089 ;;
1016 pentiumpro-* | p6-* | 6x86-* | athlon-*) 1090 pentiumpro-* | p6-* | 6x86-* | athlon-*)
1017 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 1091 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1018 ;; 1092 ;;
1019 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) 1093 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1020 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 1094 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1021 ;; 1095 ;;
1022 pentium4-*) 1096 pentium4-*)
1023 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` 1097 basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1024 ;; 1098 ;;
1025 pn) 1099 pn)
1026 basic_machine=pn-gould 1100 basic_machine=pn-gould
1027 ;; 1101 ;;
1028 power) basic_machine=power-ibm 1102 power) basic_machine=power-ibm
1029 ;; 1103 ;;
1030 ppc | ppcbe) basic_machine=powerpc-unknown 1104 ppc | ppcbe) basic_machine=powerpc-unknown
1031 ;; 1105 ;;
1032 ppc-* | ppcbe-*) 1106 ppc-* | ppcbe-*)
1033 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 1107 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1034 ;; 1108 ;;
1035 ppcle | powerpclittle) 1109 ppcle | powerpclittle)
1036 basic_machine=powerpcle-unknown 1110 basic_machine=powerpcle-unknown
1037 ;; 1111 ;;
1038 ppcle-* | powerpclittle-*) 1112 ppcle-* | powerpclittle-*)
1039 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 1113 basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1040 ;; 1114 ;;
1041 ppc64) basic_machine=powerpc64-unknown 1115 ppc64) basic_machine=powerpc64-unknown
1042 ;; 1116 ;;
1043 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` 1117 ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1044 ;; 1118 ;;
1045 ppc64le | powerpc64little) 1119 ppc64le | powerpc64little)
1046 basic_machine=powerpc64le-unknown 1120 basic_machine=powerpc64le-unknown
1047 ;; 1121 ;;
1048 ppc64le-* | powerpc64little-*) 1122 ppc64le-* | powerpc64little-*)
1049 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` 1123 basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1050 ;; 1124 ;;
1051 ps2) 1125 ps2)
1052 basic_machine=i386-ibm 1126 basic_machine=i386-ibm
1053 ;; 1127 ;;
1054 pw32)
1055 basic_machine=i586-unknown
1056 os=-pw32
1057 ;;
1058 rdos | rdos64)
1059 basic_machine=x86_64-pc
1060 os=-rdos
1061 ;;
1062 rdos32)
1063 basic_machine=i386-pc
1064 os=-rdos
1065 ;;
1066 rom68k)
1067 basic_machine=m68k-rom68k
1068 os=-coff
1069 ;;
1070 rm[46]00) 1128 rm[46]00)
1071 basic_machine=mips-siemens 1129 basic_machine=mips-siemens
1072 ;; 1130 ;;
1073 rtpc | rtpc-*) 1131 rtpc | rtpc-*)
1074 basic_machine=romp-ibm 1132 basic_machine=romp-ibm
1077 basic_machine=s390-ibm 1135 basic_machine=s390-ibm
1078 ;; 1136 ;;
1079 s390x | s390x-*) 1137 s390x | s390x-*)
1080 basic_machine=s390x-ibm 1138 basic_machine=s390x-ibm
1081 ;; 1139 ;;
1082 sa29200)
1083 basic_machine=a29k-amd
1084 os=-udi
1085 ;;
1086 sb1) 1140 sb1)
1087 basic_machine=mipsisa64sb1-unknown 1141 basic_machine=mipsisa64sb1-unknown
1088 ;; 1142 ;;
1089 sb1el) 1143 sb1el)
1090 basic_machine=mipsisa64sb1el-unknown 1144 basic_machine=mipsisa64sb1el-unknown
1091 ;; 1145 ;;
1092 sde) 1146 sde)
1093 basic_machine=mipsisa32-sde 1147 basic_machine=mipsisa32-sde
1094 os=-elf 1148 os=${os:-elf}
1095 ;;
1096 sei)
1097 basic_machine=mips-sei
1098 os=-seiux
1099 ;; 1149 ;;
1100 sequent) 1150 sequent)
1101 basic_machine=i386-sequent 1151 basic_machine=i386-sequent
1102 ;; 1152 ;;
1103 sh)
1104 basic_machine=sh-hitachi
1105 os=-hms
1106 ;;
1107 sh5el) 1153 sh5el)
1108 basic_machine=sh5le-unknown 1154 basic_machine=sh5le-unknown
1109 ;; 1155 ;;
1110 sh64) 1156 simso-wrs)
1111 basic_machine=sh64-unknown
1112 ;;
1113 sparclite-wrs | simso-wrs)
1114 basic_machine=sparclite-wrs 1157 basic_machine=sparclite-wrs
1115 os=-vxworks 1158 os=vxworks
1116 ;;
1117 sps7)
1118 basic_machine=m68k-bull
1119 os=-sysv2
1120 ;; 1159 ;;
1121 spur) 1160 spur)
1122 basic_machine=spur-unknown 1161 basic_machine=spur-unknown
1123 ;; 1162 ;;
1124 st2000) 1163 st2000)
1125 basic_machine=m68k-tandem 1164 basic_machine=m68k-tandem
1126 ;; 1165 ;;
1127 stratus)
1128 basic_machine=i860-stratus
1129 os=-sysv4
1130 ;;
1131 strongarm-* | thumb-*) 1166 strongarm-* | thumb-*)
1132 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` 1167 basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1133 ;; 1168 ;;
1134 sun2) 1169 sun2)
1135 basic_machine=m68000-sun 1170 basic_machine=m68000-sun
1136 ;; 1171 ;;
1137 sun2os3)
1138 basic_machine=m68000-sun
1139 os=-sunos3
1140 ;;
1141 sun2os4)
1142 basic_machine=m68000-sun
1143 os=-sunos4
1144 ;;
1145 sun3os3)
1146 basic_machine=m68k-sun
1147 os=-sunos3
1148 ;;
1149 sun3os4)
1150 basic_machine=m68k-sun
1151 os=-sunos4
1152 ;;
1153 sun4os3)
1154 basic_machine=sparc-sun
1155 os=-sunos3
1156 ;;
1157 sun4os4)
1158 basic_machine=sparc-sun
1159 os=-sunos4
1160 ;;
1161 sun4sol2)
1162 basic_machine=sparc-sun
1163 os=-solaris2
1164 ;;
1165 sun3 | sun3-*) 1172 sun3 | sun3-*)
1166 basic_machine=m68k-sun 1173 basic_machine=m68k-sun
1167 ;; 1174 ;;
1168 sun4) 1175 sun4)
1169 basic_machine=sparc-sun 1176 basic_machine=sparc-sun
1170 ;; 1177 ;;
1171 sun386 | sun386i | roadrunner) 1178 sun386 | sun386i | roadrunner)
1172 basic_machine=i386-sun 1179 basic_machine=i386-sun
1173 ;; 1180 ;;
1174 sv1)
1175 basic_machine=sv1-cray
1176 os=-unicos
1177 ;;
1178 symmetry)
1179 basic_machine=i386-sequent
1180 os=-dynix
1181 ;;
1182 t3e)
1183 basic_machine=alphaev5-cray
1184 os=-unicos
1185 ;;
1186 t90)
1187 basic_machine=t90-cray
1188 os=-unicos
1189 ;;
1190 tile*) 1181 tile*)
1191 basic_machine=$basic_machine-unknown 1182 basic_machine=$basic_machine-unknown
1192 os=-linux-gnu 1183 os=linux-gnu
1193 ;; 1184 ;;
1194 tx39) 1185 tx39)
1195 basic_machine=mipstx39-unknown 1186 basic_machine=mipstx39-unknown
1196 ;; 1187 ;;
1197 tx39el) 1188 tx39el)
1198 basic_machine=mipstx39el-unknown 1189 basic_machine=mipstx39el-unknown
1199 ;; 1190 ;;
1200 toad1)
1201 basic_machine=pdp10-xkl
1202 os=-tops20
1203 ;;
1204 tower | tower-32) 1191 tower | tower-32)
1205 basic_machine=m68k-ncr 1192 basic_machine=m68k-ncr
1206 ;; 1193 ;;
1207 tpf)
1208 basic_machine=s390x-ibm
1209 os=-tpf
1210 ;;
1211 udi29k)
1212 basic_machine=a29k-amd
1213 os=-udi
1214 ;;
1215 ultra3)
1216 basic_machine=a29k-nyu
1217 os=-sym1
1218 ;;
1219 v810 | necv810)
1220 basic_machine=v810-nec
1221 os=-none
1222 ;;
1223 vaxv)
1224 basic_machine=vax-dec
1225 os=-sysv
1226 ;;
1227 vms)
1228 basic_machine=vax-dec
1229 os=-vms
1230 ;;
1231 vpp*|vx|vx-*) 1194 vpp*|vx|vx-*)
1232 basic_machine=f301-fujitsu 1195 basic_machine=f301-fujitsu
1233 ;; 1196 ;;
1234 vxworks960)
1235 basic_machine=i960-wrs
1236 os=-vxworks
1237 ;;
1238 vxworks68)
1239 basic_machine=m68k-wrs
1240 os=-vxworks
1241 ;;
1242 vxworks29k)
1243 basic_machine=a29k-wrs
1244 os=-vxworks
1245 ;;
1246 w65*) 1197 w65*)
1247 basic_machine=w65-wdc 1198 basic_machine=w65-wdc
1248 os=-none 1199 os=none
1249 ;; 1200 ;;
1250 w89k-*) 1201 w89k-*)
1251 basic_machine=hppa1.1-winbond 1202 basic_machine=hppa1.1-winbond
1252 os=-proelf 1203 os=proelf
1253 ;; 1204 ;;
1254 xbox) 1205 x64)
1255 basic_machine=i686-pc 1206 basic_machine=x86_64-pc
1256 os=-mingw32
1257 ;; 1207 ;;
1258 xps | xps100) 1208 xps | xps100)
1259 basic_machine=xps100-honeywell 1209 basic_machine=xps100-honeywell
1260 ;; 1210 ;;
1261 xscale-* | xscalee[bl]-*) 1211 xscale-* | xscalee[bl]-*)
1262 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` 1212 basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'`
1263 ;;
1264 ymp)
1265 basic_machine=ymp-cray
1266 os=-unicos
1267 ;;
1268 z8k-*-coff)
1269 basic_machine=z8k-unknown
1270 os=-sim
1271 ;;
1272 z80-*-coff)
1273 basic_machine=z80-unknown
1274 os=-sim
1275 ;; 1213 ;;
1276 none) 1214 none)
1277 basic_machine=none-none 1215 basic_machine=none-none
1278 os=-none 1216 os=${os:-none}
1279 ;; 1217 ;;
1280 1218
1281 # Here we handle the default manufacturer of certain CPU types. It is in 1219 # Here we handle the default manufacturer of certain CPU types. It is in
1282 # some cases the only manufacturer, in others, it is the most popular. 1220 # some cases the only manufacturer, in others, it is the most popular.
1283 w89k) 1221 w89k)
1299 basic_machine=rs6000-ibm 1237 basic_machine=rs6000-ibm
1300 ;; 1238 ;;
1301 vax) 1239 vax)
1302 basic_machine=vax-dec 1240 basic_machine=vax-dec
1303 ;; 1241 ;;
1304 pdp10)
1305 # there are many clones, so DEC is not a safe bet
1306 basic_machine=pdp10-unknown
1307 ;;
1308 pdp11) 1242 pdp11)
1309 basic_machine=pdp11-dec 1243 basic_machine=pdp11-dec
1310 ;; 1244 ;;
1311 we32k) 1245 we32k)
1312 basic_machine=we32k-att 1246 basic_machine=we32k-att
1313 ;; 1247 ;;
1314 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) 1248 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1315 basic_machine=sh-unknown 1249 basic_machine=sh-unknown
1316 ;; 1250 ;;
1317 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1318 basic_machine=sparc-sun
1319 ;;
1320 cydra) 1251 cydra)
1321 basic_machine=cydra-cydrome 1252 basic_machine=cydra-cydrome
1322 ;; 1253 ;;
1323 orion) 1254 orion)
1324 basic_machine=orion-highlevel 1255 basic_machine=orion-highlevel
1334 ;; 1265 ;;
1335 *-unknown) 1266 *-unknown)
1336 # Make sure to match an already-canonicalized machine name. 1267 # Make sure to match an already-canonicalized machine name.
1337 ;; 1268 ;;
1338 *) 1269 *)
1339 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 1270 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
1340 exit 1 1271 exit 1
1341 ;; 1272 ;;
1342 esac 1273 esac
1343 1274
1344 # Here we canonicalize certain aliases for manufacturers. 1275 # Here we canonicalize certain aliases for manufacturers.
1345 case $basic_machine in 1276 case $basic_machine in
1346 *-digital*) 1277 *-digital*)
1347 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` 1278 basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'`
1348 ;; 1279 ;;
1349 *-commodore*) 1280 *-commodore*)
1350 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` 1281 basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'`
1351 ;; 1282 ;;
1352 *) 1283 *)
1353 ;; 1284 ;;
1354 esac 1285 esac
1355 1286
1356 # Decode manufacturer-specific aliases for certain operating systems. 1287 # Decode manufacturer-specific aliases for certain operating systems.
1357 1288
1358 if [ x"$os" != x"" ] 1289 if [ x$os != x ]
1359 then 1290 then
1360 case $os in 1291 case $os in
1361 # First match some system type aliases 1292 # First match some system type aliases that might get confused
1362 # that might get confused with valid system types. 1293 # with valid system types.
1363 # -solaris* is a basic system type, with this one exception. 1294 # solaris* is a basic system type, with this one exception.
1364 -auroraux) 1295 auroraux)
1365 os=-auroraux 1296 os=auroraux
1366 ;; 1297 ;;
1367 -solaris1 | -solaris1.*) 1298 bluegene*)
1299 os=cnk
1300 ;;
1301 solaris1 | solaris1.*)
1368 os=`echo $os | sed -e 's|solaris1|sunos4|'` 1302 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1369 ;; 1303 ;;
1370 -solaris) 1304 solaris)
1371 os=-solaris2 1305 os=solaris2
1372 ;; 1306 ;;
1373 -svr4*) 1307 unixware*)
1374 os=-sysv4 1308 os=sysv4.2uw
1375 ;; 1309 ;;
1376 -unixware*) 1310 gnu/linux*)
1377 os=-sysv4.2uw
1378 ;;
1379 -gnu/linux*)
1380 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` 1311 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1381 ;; 1312 ;;
1382 # First accept the basic system types. 1313 # es1800 is here to avoid being matched by es* (a different OS)
1314 es1800*)
1315 os=ose
1316 ;;
1317 # Some version numbers need modification
1318 chorusos*)
1319 os=chorusos
1320 ;;
1321 isc)
1322 os=isc2.2
1323 ;;
1324 sco6)
1325 os=sco5v6
1326 ;;
1327 sco5)
1328 os=sco3.2v5
1329 ;;
1330 sco4)
1331 os=sco3.2v4
1332 ;;
1333 sco3.2.[4-9]*)
1334 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
1335 ;;
1336 sco3.2v[4-9]* | sco5v6*)
1337 # Don't forget version if it is 3.2v4 or newer.
1338 ;;
1339 scout)
1340 # Don't match below
1341 ;;
1342 sco*)
1343 os=sco3.2v2
1344 ;;
1345 psos*)
1346 os=psos
1347 ;;
1348 # Now accept the basic system types.
1383 # The portable systems comes first. 1349 # The portable systems comes first.
1384 # Each alternative MUST END IN A *, to match a version number. 1350 # Each alternative MUST end in a * to match a version number.
1385 # -sysv* is not here because it comes later, after sysvr4. 1351 # sysv* is not here because it comes later, after sysvr4.
1386 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 1352 gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
1387 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ 1353 | *vms* | esix* | aix* | cnk* | sunos | sunos[34]*\
1388 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ 1354 | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
1389 | -sym* | -kopensolaris* | -plan9* \ 1355 | sym* | kopensolaris* | plan9* \
1390 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 1356 | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
1391 | -aos* | -aros* | -cloudabi* | -sortix* \ 1357 | aos* | aros* | cloudabi* | sortix* \
1392 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1358 | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
1393 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1359 | clix* | riscos* | uniplus* | iris* | rtu* | xenix* \
1394 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ 1360 | knetbsd* | mirbsd* | netbsd* \
1395 | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \ 1361 | bitrig* | openbsd* | solidbsd* | libertybsd* \
1396 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1362 | ekkobsd* | kfreebsd* | freebsd* | riscix* | lynxos* \
1397 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1363 | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
1398 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1364 | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
1399 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1365 | udi* | eabi* | lites* | ieee* | go32* | aux* | hcos* \
1400 | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \ 1366 | chorusrdb* | cegcc* | glidix* \
1401 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1367 | cygwin* | msys* | pe* | moss* | proelf* | rtems* \
1402 | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ 1368 | midipix* | mingw32* | mingw64* | linux-gnu* | linux-android* \
1403 | -linux-newlib* | -linux-musl* | -linux-uclibc* \ 1369 | linux-newlib* | linux-musl* | linux-uclibc* \
1404 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ 1370 | uxpv* | beos* | mpeix* | udk* | moxiebox* \
1405 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1371 | interix* | uwin* | mks* | rhapsody* | darwin* \
1406 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1372 | openstep* | oskit* | conix* | pw32* | nonstopux* \
1407 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1373 | storm-chaos* | tops10* | tenex* | tops20* | its* \
1408 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1374 | os2* | vos* | palmos* | uclinux* | nucleus* \
1409 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1375 | morphos* | superux* | rtmk* | windiss* \
1410 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 1376 | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
1411 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ 1377 | skyos* | haiku* | rdos* | toppers* | drops* | es* \
1412 | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox*) 1378 | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
1379 | midnightbsd*)
1413 # Remember, each alternative MUST END IN *, to match a version number. 1380 # Remember, each alternative MUST END IN *, to match a version number.
1414 ;; 1381 ;;
1415 -qnx*) 1382 qnx*)
1416 case $basic_machine in 1383 case $basic_machine in
1417 x86-* | i*86-*) 1384 x86-* | i*86-*)
1418 ;; 1385 ;;
1419 *) 1386 *)
1420 os=-nto$os 1387 os=nto-$os
1421 ;; 1388 ;;
1422 esac 1389 esac
1423 ;; 1390 ;;
1424 -nto-qnx*) 1391 hiux*)
1425 ;; 1392 os=hiuxwe2
1426 -nto*) 1393 ;;
1394 nto-qnx*)
1395 ;;
1396 nto*)
1427 os=`echo $os | sed -e 's|nto|nto-qnx|'` 1397 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1428 ;; 1398 ;;
1429 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 1399 sim | xray | os68k* | v88r* \
1430 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ 1400 | windows* | osx | abug | netware* | os9* \
1431 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 1401 | macos* | mpw* | magic* | mmixware* | mon960* | lnews*)
1432 ;; 1402 ;;
1433 -mac*) 1403 linux-dietlibc)
1434 os=`echo $os | sed -e 's|mac|macos|'` 1404 os=linux-dietlibc
1435 ;; 1405 ;;
1436 -linux-dietlibc) 1406 linux*)
1437 os=-linux-dietlibc
1438 ;;
1439 -linux*)
1440 os=`echo $os | sed -e 's|linux|linux-gnu|'` 1407 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1441 ;; 1408 ;;
1442 -sunos5*) 1409 lynx*178)
1443 os=`echo $os | sed -e 's|sunos5|solaris2|'` 1410 os=lynxos178
1444 ;; 1411 ;;
1445 -sunos6*) 1412 lynx*5)
1446 os=`echo $os | sed -e 's|sunos6|solaris3|'` 1413 os=lynxos5
1447 ;; 1414 ;;
1448 -opened*) 1415 lynx*)
1449 os=-openedition 1416 os=lynxos
1450 ;; 1417 ;;
1451 -os400*) 1418 mac*)
1452 os=-os400 1419 os=`echo "$os" | sed -e 's|mac|macos|'`
1453 ;; 1420 ;;
1454 -wince*) 1421 opened*)
1455 os=-wince 1422 os=openedition
1456 ;; 1423 ;;
1457 -osfrose*) 1424 os400*)
1458 os=-osfrose 1425 os=os400
1459 ;; 1426 ;;
1460 -osf*) 1427 sunos5*)
1461 os=-osf 1428 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
1462 ;; 1429 ;;
1463 -utek*) 1430 sunos6*)
1464 os=-bsd 1431 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
1465 ;; 1432 ;;
1466 -dynix*) 1433 wince*)
1467 os=-bsd 1434 os=wince
1468 ;; 1435 ;;
1469 -acis*) 1436 utek*)
1470 os=-aos 1437 os=bsd
1471 ;; 1438 ;;
1472 -atheos*) 1439 dynix*)
1473 os=-atheos 1440 os=bsd
1474 ;; 1441 ;;
1475 -syllable*) 1442 acis*)
1476 os=-syllable 1443 os=aos
1477 ;; 1444 ;;
1478 -386bsd) 1445 atheos*)
1479 os=-bsd 1446 os=atheos
1480 ;; 1447 ;;
1481 -ctix* | -uts*) 1448 syllable*)
1482 os=-sysv 1449 os=syllable
1483 ;; 1450 ;;
1484 -nova*) 1451 386bsd)
1485 os=-rtmk-nova 1452 os=bsd
1486 ;; 1453 ;;
1487 -ns2 ) 1454 ctix* | uts*)
1488 os=-nextstep2 1455 os=sysv
1489 ;; 1456 ;;
1490 -nsk*) 1457 nova*)
1491 os=-nsk 1458 os=rtmk-nova
1459 ;;
1460 ns2)
1461 os=nextstep2
1462 ;;
1463 nsk*)
1464 os=nsk
1492 ;; 1465 ;;
1493 # Preserve the version number of sinix5. 1466 # Preserve the version number of sinix5.
1494 -sinix5.*) 1467 sinix5.*)
1495 os=`echo $os | sed -e 's|sinix|sysv|'` 1468 os=`echo $os | sed -e 's|sinix|sysv|'`
1496 ;; 1469 ;;
1497 -sinix*) 1470 sinix*)
1498 os=-sysv4 1471 os=sysv4
1499 ;; 1472 ;;
1500 -tpf*) 1473 tpf*)
1501 os=-tpf 1474 os=tpf
1502 ;; 1475 ;;
1503 -triton*) 1476 triton*)
1504 os=-sysv3 1477 os=sysv3
1505 ;; 1478 ;;
1506 -oss*) 1479 oss*)
1507 os=-sysv3 1480 os=sysv3
1508 ;; 1481 ;;
1509 -svr4) 1482 svr4*)
1510 os=-sysv4 1483 os=sysv4
1511 ;; 1484 ;;
1512 -svr3) 1485 svr3)
1513 os=-sysv3 1486 os=sysv3
1514 ;; 1487 ;;
1515 -sysvr4) 1488 sysvr4)
1516 os=-sysv4 1489 os=sysv4
1517 ;; 1490 ;;
1518 # This must come after -sysvr4. 1491 # This must come after sysvr4.
1519 -sysv*) 1492 sysv*)
1520 ;; 1493 ;;
1521 -ose*) 1494 ose*)
1522 os=-ose 1495 os=ose
1523 ;; 1496 ;;
1524 -es1800*) 1497 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
1525 os=-ose 1498 os=mint
1526 ;; 1499 ;;
1527 -xenix) 1500 zvmoe)
1528 os=-xenix 1501 os=zvmoe
1529 ;; 1502 ;;
1530 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 1503 dicos*)
1531 os=-mint 1504 os=dicos
1532 ;; 1505 ;;
1533 -aros*) 1506 pikeos*)
1534 os=-aros 1507 # Until real need of OS specific support for
1535 ;; 1508 # particular features comes up, bare metal
1536 -zvmoe) 1509 # configurations are quite functional.
1537 os=-zvmoe 1510 case $basic_machine in
1538 ;; 1511 arm*)
1539 -dicos*) 1512 os=eabi
1540 os=-dicos 1513 ;;
1541 ;; 1514 *)
1542 -nacl*) 1515 os=elf
1543 ;; 1516 ;;
1544 -ios) 1517 esac
1545 ;; 1518 ;;
1546 -none) 1519 nacl*)
1520 ;;
1521 ios)
1522 ;;
1523 none)
1524 ;;
1525 *-eabi)
1547 ;; 1526 ;;
1548 *) 1527 *)
1549 # Get rid of the `-' at the beginning of $os. 1528 echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
1550 os=`echo $os | sed 's/[^-]*-//'`
1551 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1552 exit 1 1529 exit 1
1553 ;; 1530 ;;
1554 esac 1531 esac
1555 else 1532 else
1556 1533
1564 # will signal an error saying that MANUFACTURER isn't an operating 1541 # will signal an error saying that MANUFACTURER isn't an operating
1565 # system, and we'll never get to this point. 1542 # system, and we'll never get to this point.
1566 1543
1567 case $basic_machine in 1544 case $basic_machine in
1568 score-*) 1545 score-*)
1569 os=-elf 1546 os=elf
1570 ;; 1547 ;;
1571 spu-*) 1548 spu-*)
1572 os=-elf 1549 os=elf
1573 ;; 1550 ;;
1574 *-acorn) 1551 *-acorn)
1575 os=-riscix1.2 1552 os=riscix1.2
1576 ;; 1553 ;;
1577 arm*-rebel) 1554 arm*-rebel)
1578 os=-linux 1555 os=linux
1579 ;; 1556 ;;
1580 arm*-semi) 1557 arm*-semi)
1581 os=-aout 1558 os=aout
1582 ;; 1559 ;;
1583 c4x-* | tic4x-*) 1560 c4x-* | tic4x-*)
1584 os=-coff 1561 os=coff
1585 ;; 1562 ;;
1586 c8051-*) 1563 c8051-*)
1587 os=-elf 1564 os=elf
1565 ;;
1566 clipper-intergraph)
1567 os=clix
1588 ;; 1568 ;;
1589 hexagon-*) 1569 hexagon-*)
1590 os=-elf 1570 os=elf
1591 ;; 1571 ;;
1592 tic54x-*) 1572 tic54x-*)
1593 os=-coff 1573 os=coff
1594 ;; 1574 ;;
1595 tic55x-*) 1575 tic55x-*)
1596 os=-coff 1576 os=coff
1597 ;; 1577 ;;
1598 tic6x-*) 1578 tic6x-*)
1599 os=-coff 1579 os=coff
1600 ;; 1580 ;;
1601 # This must come before the *-dec entry. 1581 # This must come before the *-dec entry.
1602 pdp10-*) 1582 pdp10-*)
1603 os=-tops20 1583 os=tops20
1604 ;; 1584 ;;
1605 pdp11-*) 1585 pdp11-*)
1606 os=-none 1586 os=none
1607 ;; 1587 ;;
1608 *-dec | vax-*) 1588 *-dec | vax-*)
1609 os=-ultrix4.2 1589 os=ultrix4.2
1610 ;; 1590 ;;
1611 m68*-apollo) 1591 m68*-apollo)
1612 os=-domain 1592 os=domain
1613 ;; 1593 ;;
1614 i386-sun) 1594 i386-sun)
1615 os=-sunos4.0.2 1595 os=sunos4.0.2
1616 ;; 1596 ;;
1617 m68000-sun) 1597 m68000-sun)
1618 os=-sunos3 1598 os=sunos3
1619 ;; 1599 ;;
1620 m68*-cisco) 1600 m68*-cisco)
1621 os=-aout 1601 os=aout
1622 ;; 1602 ;;
1623 mep-*) 1603 mep-*)
1624 os=-elf 1604 os=elf
1625 ;; 1605 ;;
1626 mips*-cisco) 1606 mips*-cisco)
1627 os=-elf 1607 os=elf
1628 ;; 1608 ;;
1629 mips*-*) 1609 mips*-*)
1630 os=-elf 1610 os=elf
1631 ;; 1611 ;;
1632 or32-*) 1612 or32-*)
1633 os=-coff 1613 os=coff
1634 ;; 1614 ;;
1635 *-tti) # must be before sparc entry or we get the wrong os. 1615 *-tti) # must be before sparc entry or we get the wrong os.
1636 os=-sysv3 1616 os=sysv3
1637 ;; 1617 ;;
1638 sparc-* | *-sun) 1618 sparc-* | *-sun)
1639 os=-sunos4.1.1 1619 os=sunos4.1.1
1640 ;; 1620 ;;
1641 pru-*) 1621 pru-*)
1642 os=-elf 1622 os=elf
1643 ;; 1623 ;;
1644 *-be) 1624 *-be)
1645 os=-beos 1625 os=beos
1646 ;;
1647 *-haiku)
1648 os=-haiku
1649 ;; 1626 ;;
1650 *-ibm) 1627 *-ibm)
1651 os=-aix 1628 os=aix
1652 ;; 1629 ;;
1653 *-knuth) 1630 *-knuth)
1654 os=-mmixware 1631 os=mmixware
1655 ;; 1632 ;;
1656 *-wec) 1633 *-wec)
1657 os=-proelf 1634 os=proelf
1658 ;; 1635 ;;
1659 *-winbond) 1636 *-winbond)
1660 os=-proelf 1637 os=proelf
1661 ;; 1638 ;;
1662 *-oki) 1639 *-oki)
1663 os=-proelf 1640 os=proelf
1664 ;; 1641 ;;
1665 *-hp) 1642 *-hp)
1666 os=-hpux 1643 os=hpux
1667 ;; 1644 ;;
1668 *-hitachi) 1645 *-hitachi)
1669 os=-hiux 1646 os=hiux
1670 ;; 1647 ;;
1671 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) 1648 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1672 os=-sysv 1649 os=sysv
1673 ;; 1650 ;;
1674 *-cbm) 1651 *-cbm)
1675 os=-amigaos 1652 os=amigaos
1676 ;; 1653 ;;
1677 *-dg) 1654 *-dg)
1678 os=-dgux 1655 os=dgux
1679 ;; 1656 ;;
1680 *-dolphin) 1657 *-dolphin)
1681 os=-sysv3 1658 os=sysv3
1682 ;; 1659 ;;
1683 m68k-ccur) 1660 m68k-ccur)
1684 os=-rtu 1661 os=rtu
1685 ;; 1662 ;;
1686 m88k-omron*) 1663 m88k-omron*)
1687 os=-luna 1664 os=luna
1688 ;; 1665 ;;
1689 *-next ) 1666 *-next)
1690 os=-nextstep 1667 os=nextstep
1691 ;; 1668 ;;
1692 *-sequent) 1669 *-sequent)
1693 os=-ptx 1670 os=ptx
1694 ;; 1671 ;;
1695 *-crds) 1672 *-crds)
1696 os=-unos 1673 os=unos
1697 ;; 1674 ;;
1698 *-ns) 1675 *-ns)
1699 os=-genix 1676 os=genix
1700 ;; 1677 ;;
1701 i370-*) 1678 i370-*)
1702 os=-mvs 1679 os=mvs
1703 ;;
1704 *-next)
1705 os=-nextstep3
1706 ;; 1680 ;;
1707 *-gould) 1681 *-gould)
1708 os=-sysv 1682 os=sysv
1709 ;; 1683 ;;
1710 *-highlevel) 1684 *-highlevel)
1711 os=-bsd 1685 os=bsd
1712 ;; 1686 ;;
1713 *-encore) 1687 *-encore)
1714 os=-bsd 1688 os=bsd
1715 ;; 1689 ;;
1716 *-sgi) 1690 *-sgi)
1717 os=-irix 1691 os=irix
1718 ;; 1692 ;;
1719 *-siemens) 1693 *-siemens)
1720 os=-sysv4 1694 os=sysv4
1721 ;; 1695 ;;
1722 *-masscomp) 1696 *-masscomp)
1723 os=-rtu 1697 os=rtu
1724 ;; 1698 ;;
1725 f30[01]-fujitsu | f700-fujitsu) 1699 f30[01]-fujitsu | f700-fujitsu)
1726 os=-uxpv 1700 os=uxpv
1727 ;; 1701 ;;
1728 *-rom68k) 1702 *-rom68k)
1729 os=-coff 1703 os=coff
1730 ;; 1704 ;;
1731 *-*bug) 1705 *-*bug)
1732 os=-coff 1706 os=coff
1733 ;; 1707 ;;
1734 *-apple) 1708 *-apple)
1735 os=-macos 1709 os=macos
1736 ;; 1710 ;;
1737 *-atari*) 1711 *-atari*)
1738 os=-mint 1712 os=mint
1713 ;;
1714 *-wrs)
1715 os=vxworks
1739 ;; 1716 ;;
1740 *) 1717 *)
1741 os=-none 1718 os=none
1742 ;; 1719 ;;
1743 esac 1720 esac
1744 fi 1721 fi
1745 1722
1746 # Here we handle the case where we know the os, and the CPU type, but not the 1723 # Here we handle the case where we know the os, and the CPU type, but not the
1747 # manufacturer. We pick the logical manufacturer. 1724 # manufacturer. We pick the logical manufacturer.
1748 vendor=unknown 1725 vendor=unknown
1749 case $basic_machine in 1726 case $basic_machine in
1750 *-unknown) 1727 *-unknown)
1751 case $os in 1728 case $os in
1752 -riscix*) 1729 riscix*)
1753 vendor=acorn 1730 vendor=acorn
1754 ;; 1731 ;;
1755 -sunos*) 1732 sunos*)
1756 vendor=sun 1733 vendor=sun
1757 ;; 1734 ;;
1758 -cnk*|-aix*) 1735 cnk*|-aix*)
1759 vendor=ibm 1736 vendor=ibm
1760 ;; 1737 ;;
1761 -beos*) 1738 beos*)
1762 vendor=be 1739 vendor=be
1763 ;; 1740 ;;
1764 -hpux*) 1741 hpux*)
1765 vendor=hp 1742 vendor=hp
1766 ;; 1743 ;;
1767 -mpeix*) 1744 mpeix*)
1768 vendor=hp 1745 vendor=hp
1769 ;; 1746 ;;
1770 -hiux*) 1747 hiux*)
1771 vendor=hitachi 1748 vendor=hitachi
1772 ;; 1749 ;;
1773 -unos*) 1750 unos*)
1774 vendor=crds 1751 vendor=crds
1775 ;; 1752 ;;
1776 -dgux*) 1753 dgux*)
1777 vendor=dg 1754 vendor=dg
1778 ;; 1755 ;;
1779 -luna*) 1756 luna*)
1780 vendor=omron 1757 vendor=omron
1781 ;; 1758 ;;
1782 -genix*) 1759 genix*)
1783 vendor=ns 1760 vendor=ns
1784 ;; 1761 ;;
1785 -mvs* | -opened*) 1762 clix*)
1763 vendor=intergraph
1764 ;;
1765 mvs* | opened*)
1786 vendor=ibm 1766 vendor=ibm
1787 ;; 1767 ;;
1788 -os400*) 1768 os400*)
1789 vendor=ibm 1769 vendor=ibm
1790 ;; 1770 ;;
1791 -ptx*) 1771 ptx*)
1792 vendor=sequent 1772 vendor=sequent
1793 ;; 1773 ;;
1794 -tpf*) 1774 tpf*)
1795 vendor=ibm 1775 vendor=ibm
1796 ;; 1776 ;;
1797 -vxsim* | -vxworks* | -windiss*) 1777 vxsim* | vxworks* | windiss*)
1798 vendor=wrs 1778 vendor=wrs
1799 ;; 1779 ;;
1800 -aux*) 1780 aux*)
1801 vendor=apple 1781 vendor=apple
1802 ;; 1782 ;;
1803 -hms*) 1783 hms*)
1804 vendor=hitachi 1784 vendor=hitachi
1805 ;; 1785 ;;
1806 -mpw* | -macos*) 1786 mpw* | macos*)
1807 vendor=apple 1787 vendor=apple
1808 ;; 1788 ;;
1809 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 1789 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
1810 vendor=atari 1790 vendor=atari
1811 ;; 1791 ;;
1812 -vos*) 1792 vos*)
1813 vendor=stratus 1793 vendor=stratus
1814 ;; 1794 ;;
1815 esac 1795 esac
1816 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 1796 basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"`
1817 ;; 1797 ;;
1818 esac 1798 esac
1819 1799
1820 echo $basic_machine$os 1800 echo "$basic_machine-$os"
1821 exit 1801 exit
1822 1802
1823 # Local variables: 1803 # Local variables:
1824 # eval: (add-hook 'write-file-hooks 'time-stamp) 1804 # eval: (add-hook 'before-save-hook 'time-stamp)
1825 # time-stamp-start: "timestamp='" 1805 # time-stamp-start: "timestamp='"
1826 # time-stamp-format: "%:y-%02m-%02d" 1806 # time-stamp-format: "%:y-%02m-%02d"
1827 # time-stamp-end: "'" 1807 # time-stamp-end: "'"
1828 # End: 1808 # End: