VirtualBox

source: vbox/trunk/src/libs/xpcom18a4/nsprpub/build/autoconf/config.sub@ 2426

Last change on this file since 2426 was 1, checked in by vboxsync, 55 years ago

import

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 29.5 KB
Line 
1#! /bin/sh
2# Configuration validation subroutine script.
3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
5
6timestamp='2003-02-22'
7
8# This file is (in principle) common to ALL GNU software.
9# The presence of a machine in this file suggests that SOME GNU software
10# can handle that machine. It does not imply ALL GNU software can.
11#
12# This file is free software; you can redistribute it and/or modify
13# it under the terms of the GNU General Public License as published by
14# the Free Software Foundation; either version 2 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with this program; if not, write to the Free Software
24# Foundation, Inc., 59 Temple Place - Suite 330,
25# Boston, MA 02111-1307, USA.
26
27# As a special exception to the GNU General Public License, if you
28# distribute this file as part of a program that contains a
29# configuration script generated by Autoconf, you may include it under
30# the same distribution terms that you use for the rest of that program.
31
32# Please send patches to <config-patches@gnu.org>. Submit a context
33# diff and a properly formatted ChangeLog entry.
34#
35# Configuration subroutine to validate and canonicalize a configuration type.
36# Supply the specified configuration type as an argument.
37# If it is invalid, we print an error message on stderr and exit with code 1.
38# Otherwise, we print the canonical config type on stdout and succeed.
39
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.
47
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.
54
55me=`echo "$0" | sed -e 's,.*/,,'`
56
57usage="\
58Usage: $0 [OPTION] CPU-MFR-OPSYS
59 $0 [OPTION] ALIAS
60
61Canonicalize a configuration name.
62
63Operation 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
67
68Report bugs and patches to <config-patches@gnu.org>."
69
70version="\
71GNU config.sub ($timestamp)
72
73Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
74Free Software Foundation, Inc.
75
76This is free software; see the source for copying conditions. There is NO
77warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
78
79help="
80Try \`$me --help' for more information."
81
82# Parse command line
83while test $# -gt 0 ; do
84 case $1 in
85 --time-stamp | --time* | -t )
86 echo "$timestamp" ; exit 0 ;;
87 --version | -v )
88 echo "$version" ; exit 0 ;;
89 --help | --h* | -h )
90 echo "$usage"; exit 0 ;;
91 -- ) # Stop option processing
92 shift; break ;;
93 - ) # Use stdin as input.
94 break ;;
95 -* )
96 echo "$me: invalid option $1$help"
97 exit 1 ;;
98
99 *local*)
100 # First pass through any local machine types.
101 echo $1
102 exit 0;;
103
104 * )
105 break ;;
106 esac
107done
108
109case $# in
110 0) echo "$me: missing argument$help" >&2
111 exit 1;;
112 1) ;;
113 *) echo "$me: too many arguments$help" >&2
114 exit 1;;
115esac
116
117# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
118# Here we must recognize all the valid KERNEL-OS combinations.
119maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
120case $maybe_os in
121 nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
122 os=-$maybe_os
123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124 ;;
125 *)
126 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
127 if [ $basic_machine != $1 ]
128 then os=`echo $1 | sed 's/.*-/-/'`
129 else os=; fi
130 ;;
131esac
132
133### Let's recognize common machines as not being operating systems so
134### that things like config.sub decstation-3100 work. We also
135### recognize some manufacturers as not being operating systems, so we
136### can provide default operating systems below.
137case $os in
138 -sun*os*)
139 # Prevent following clause from handling this invalid input.
140 ;;
141 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
142 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
143 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
144 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
145 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
146 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
147 -apple | -axis)
148 os=
149 basic_machine=$1
150 ;;
151 -sim | -cisco | -oki | -wec | -winbond)
152 os=
153 basic_machine=$1
154 ;;
155 -scout)
156 ;;
157 -wrs)
158 os=-vxworks
159 basic_machine=$1
160 ;;
161 -chorusos*)
162 os=-chorusos
163 basic_machine=$1
164 ;;
165 -chorusrdb)
166 os=-chorusrdb
167 basic_machine=$1
168 ;;
169 -hiux*)
170 os=-hiuxwe2
171 ;;
172 -sco5)
173 os=-sco3.2v5
174 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
175 ;;
176 -sco4)
177 os=-sco3.2v4
178 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
179 ;;
180 -sco3.2.[4-9]*)
181 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
182 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
183 ;;
184 -sco3.2v[4-9]*)
185 # Don't forget version if it is 3.2v4 or newer.
186 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
187 ;;
188 -sco*)
189 os=-sco3.2v2
190 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
191 ;;
192 -udk*)
193 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
194 ;;
195 -isc)
196 os=-isc2.2
197 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
198 ;;
199 -clix*)
200 basic_machine=clipper-intergraph
201 ;;
202 -isc*)
203 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
204 ;;
205 -lynx*)
206 os=-lynxos
207 ;;
208 -ptx*)
209 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
210 ;;
211 -windowsnt*)
212 os=`echo $os | sed -e 's/windowsnt/winnt/'`
213 ;;
214 -psos*)
215 os=-psos
216 ;;
217 -mint | -mint[0-9]*)
218 basic_machine=m68k-atari
219 os=-mint
220 ;;
221esac
222
223# Decode aliases for certain CPU-COMPANY combinations.
224case $basic_machine in
225 # Recognize the basic CPU types without company name.
226 # Some are omitted here because they have special meanings below.
227#### MozillaHack
228# mips*el
229#### End MozillaHack
230 1750a | 580 \
231 | a29k \
232 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
233 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
234 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
235 | clipper \
236 | d10v | d30v | dlx | dsp16xx \
237 | fr30 | frv \
238 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
239 | i370 | i860 | i960 | ia64 \
240 | ip2k \
241 | m32r | m68000 | m68k | m88k | mcore \
242 | mips | mipsbe | mipseb | mips*el | mipsle \
243 | mips16 \
244 | mips64 | mips64el \
245 | mips64vr | mips64vrel \
246 | mips64orion | mips64orionel \
247 | mips64vr4100 | mips64vr4100el \
248 | mips64vr4300 | mips64vr4300el \
249 | mips64vr5000 | mips64vr5000el \
250 | mipsisa32 | mipsisa32el \
251 | mipsisa32r2 | mipsisa32r2el \
252 | mipsisa64 | mipsisa64el \
253 | mipsisa64sb1 | mipsisa64sb1el \
254 | mipsisa64sr71k | mipsisa64sr71kel \
255 | mipstx39 | mipstx39el \
256 | mn10200 | mn10300 \
257 | msp430 \
258 | ns16k | ns32k \
259 | openrisc | or32 \
260 | pdp10 | pdp11 | pj | pjl \
261 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
262 | pyramid \
263 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
264 | sh64 | sh64le \
265 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
266 | strongarm \
267 | tahoe | thumb | tic80 | tron \
268 | v850 | v850e \
269 | we32k \
270 | x86 | xscale | xstormy16 | xtensa \
271 | z8k)
272 basic_machine=$basic_machine-unknown
273 ;;
274 m6811 | m68hc11 | m6812 | m68hc12)
275 # Motorola 68HC11/12.
276 basic_machine=$basic_machine-unknown
277 os=-none
278 ;;
279 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
280 ;;
281
282 # We use `pc' rather than `unknown'
283 # because (1) that's what they normally are, and
284 # (2) the word "unknown" tends to confuse beginning users.
285 i*86 | x86_64)
286 basic_machine=$basic_machine-pc
287 ;;
288 # Object if more than one company name word.
289 *-*-*)
290 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
291 exit 1
292 ;;
293 # Recognize the basic CPU types with company name.
294#### MozillaHack
295# mips*el
296#### End MozillaHack
297 580-* \
298 | a29k-* \
299 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
300 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
301 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
302 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
303 | avr-* \
304 | bs2000-* \
305 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
306 | clipper-* | cydra-* \
307 | d10v-* | d30v-* | dlx-* \
308 | elxsi-* \
309 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
310 | h8300-* | h8500-* \
311 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
312 | i*86-* | i860-* | i960-* | ia64-* \
313 | ip2k-* \
314 | m32r-* \
315 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
316 | m88110-* | m88k-* | mcore-* \
317 | mips-* | mipsbe-* | mipseb-* | mips*el-* | mipsle-* \
318 | mips16-* \
319 | mips64-* | mips64el-* \
320 | mips64vr-* | mips64vrel-* \
321 | mips64orion-* | mips64orionel-* \
322 | mips64vr4100-* | mips64vr4100el-* \
323 | mips64vr4300-* | mips64vr4300el-* \
324 | mips64vr5000-* | mips64vr5000el-* \
325 | mipsisa32-* | mipsisa32el-* \
326 | mipsisa32r2-* | mipsisa32r2el-* \
327 | mipsisa64-* | mipsisa64el-* \
328 | mipsisa64sb1-* | mipsisa64sb1el-* \
329 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
330 | mipstx39-* | mipstx39el-* \
331 | msp430-* \
332 | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
333 | orion-* \
334 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
335 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
336 | pyramid-* \
337 | romp-* | rs6000-* \
338 | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
339 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
340 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
341 | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
342 | tahoe-* | thumb-* \
343 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
344 | tron-* \
345 | v850-* | v850e-* | vax-* \
346 | we32k-* \
347 | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
348 | xtensa-* \
349 | ymp-* \
350 | z8k-*)
351 ;;
352 # Recognize the various machine names and aliases which stand
353 # for a CPU type and a company and sometimes even an OS.
354 386bsd)
355 basic_machine=i386-unknown
356 os=-bsd
357 ;;
358 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
359 basic_machine=m68000-att
360 ;;
361 3b*)
362 basic_machine=we32k-att
363 ;;
364 a29khif)
365 basic_machine=a29k-amd
366 os=-udi
367 ;;
368 adobe68k)
369 basic_machine=m68010-adobe
370 os=-scout
371 ;;
372 alliant | fx80)
373 basic_machine=fx80-alliant
374 ;;
375 altos | altos3068)
376 basic_machine=m68k-altos
377 ;;
378 am29k)
379 basic_machine=a29k-none
380 os=-bsd
381 ;;
382 amdahl)
383 basic_machine=580-amdahl
384 os=-sysv
385 ;;
386 amiga | amiga-*)
387 basic_machine=m68k-unknown
388 ;;
389 amigaos | amigados)
390 basic_machine=m68k-unknown
391 os=-amigaos
392 ;;
393 amigaunix | amix)
394 basic_machine=m68k-unknown
395 os=-sysv4
396 ;;
397 apollo68)
398 basic_machine=m68k-apollo
399 os=-sysv
400 ;;
401 apollo68bsd)
402 basic_machine=m68k-apollo
403 os=-bsd
404 ;;
405 aux)
406 basic_machine=m68k-apple
407 os=-aux
408 ;;
409 balance)
410 basic_machine=ns32k-sequent
411 os=-dynix
412 ;;
413 c90)
414 basic_machine=c90-cray
415 os=-unicos
416 ;;
417 convex-c1)
418 basic_machine=c1-convex
419 os=-bsd
420 ;;
421 convex-c2)
422 basic_machine=c2-convex
423 os=-bsd
424 ;;
425 convex-c32)
426 basic_machine=c32-convex
427 os=-bsd
428 ;;
429 convex-c34)
430 basic_machine=c34-convex
431 os=-bsd
432 ;;
433 convex-c38)
434 basic_machine=c38-convex
435 os=-bsd
436 ;;
437 cray | j90)
438 basic_machine=j90-cray
439 os=-unicos
440 ;;
441 crds | unos)
442 basic_machine=m68k-crds
443 ;;
444 cris | cris-* | etrax*)
445 basic_machine=cris-axis
446 ;;
447 da30 | da30-*)
448 basic_machine=m68k-da30
449 ;;
450 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
451 basic_machine=mips-dec
452 ;;
453 decsystem10* | dec10*)
454 basic_machine=pdp10-dec
455 os=-tops10
456 ;;
457 decsystem20* | dec20*)
458 basic_machine=pdp10-dec
459 os=-tops20
460 ;;
461 delta | 3300 | motorola-3300 | motorola-delta \
462 | 3300-motorola | delta-motorola)
463 basic_machine=m68k-motorola
464 ;;
465 delta88)
466 basic_machine=m88k-motorola
467 os=-sysv3
468 ;;
469 dpx20 | dpx20-*)
470 basic_machine=rs6000-bull
471 os=-bosx
472 ;;
473 dpx2* | dpx2*-bull)
474 basic_machine=m68k-bull
475 os=-sysv3
476 ;;
477 ebmon29k)
478 basic_machine=a29k-amd
479 os=-ebmon
480 ;;
481 elxsi)
482 basic_machine=elxsi-elxsi
483 os=-bsd
484 ;;
485 encore | umax | mmax)
486 basic_machine=ns32k-encore
487 ;;
488 es1800 | OSE68k | ose68k | ose | OSE)
489 basic_machine=m68k-ericsson
490 os=-ose
491 ;;
492 fx2800)
493 basic_machine=i860-alliant
494 ;;
495 genix)
496 basic_machine=ns32k-ns
497 ;;
498 gmicro)
499 basic_machine=tron-gmicro
500 os=-sysv
501 ;;
502 go32)
503 basic_machine=i386-pc
504 os=-go32
505 ;;
506 h3050r* | hiux*)
507 basic_machine=hppa1.1-hitachi
508 os=-hiuxwe2
509 ;;
510 h8300hms)
511 basic_machine=h8300-hitachi
512 os=-hms
513 ;;
514 h8300xray)
515 basic_machine=h8300-hitachi
516 os=-xray
517 ;;
518 h8500hms)
519 basic_machine=h8500-hitachi
520 os=-hms
521 ;;
522 harris)
523 basic_machine=m88k-harris
524 os=-sysv3
525 ;;
526 hp300-*)
527 basic_machine=m68k-hp
528 ;;
529 hp300bsd)
530 basic_machine=m68k-hp
531 os=-bsd
532 ;;
533 hp300hpux)
534 basic_machine=m68k-hp
535 os=-hpux
536 ;;
537 hp3k9[0-9][0-9] | hp9[0-9][0-9])
538 basic_machine=hppa1.0-hp
539 ;;
540 hp9k2[0-9][0-9] | hp9k31[0-9])
541 basic_machine=m68000-hp
542 ;;
543 hp9k3[2-9][0-9])
544 basic_machine=m68k-hp
545 ;;
546 hp9k6[0-9][0-9] | hp6[0-9][0-9])
547 basic_machine=hppa1.0-hp
548 ;;
549 hp9k7[0-79][0-9] | hp7[0-79][0-9])
550 basic_machine=hppa1.1-hp
551 ;;
552 hp9k78[0-9] | hp78[0-9])
553 # FIXME: really hppa2.0-hp
554 basic_machine=hppa1.1-hp
555 ;;
556 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
557 # FIXME: really hppa2.0-hp
558 basic_machine=hppa1.1-hp
559 ;;
560 hp9k8[0-9][13679] | hp8[0-9][13679])
561 basic_machine=hppa1.1-hp
562 ;;
563 hp9k8[0-9][0-9] | hp8[0-9][0-9])
564 basic_machine=hppa1.0-hp
565 ;;
566 hppa-next)
567 os=-nextstep3
568 ;;
569 hppaosf)
570 basic_machine=hppa1.1-hp
571 os=-osf
572 ;;
573 hppro)
574 basic_machine=hppa1.1-hp
575 os=-proelf
576 ;;
577 i370-ibm* | ibm*)
578 basic_machine=i370-ibm
579 ;;
580# I'm not sure what "Sysv32" means. Should this be sysv3.2?
581 i*86v32)
582 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
583 os=-sysv32
584 ;;
585 i*86v4*)
586 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
587 os=-sysv4
588 ;;
589 i*86v)
590 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
591 os=-sysv
592 ;;
593 i*86sol2)
594 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
595 os=-solaris2
596 ;;
597 i386mach)
598 basic_machine=i386-mach
599 os=-mach
600 ;;
601 i386-vsta | vsta)
602 basic_machine=i386-unknown
603 os=-vsta
604 ;;
605 iris | iris4d)
606 basic_machine=mips-sgi
607 case $os in
608 -irix*)
609 ;;
610 *)
611 os=-irix4
612 ;;
613 esac
614 ;;
615 isi68 | isi)
616 basic_machine=m68k-isi
617 os=-sysv
618 ;;
619 m88k-omron*)
620 basic_machine=m88k-omron
621 ;;
622 magnum | m3230)
623 basic_machine=mips-mips
624 os=-sysv
625 ;;
626 merlin)
627 basic_machine=ns32k-utek
628 os=-sysv
629 ;;
630 mingw32)
631 basic_machine=i386-pc
632 os=-mingw32
633 ;;
634#### MozillaHack
635 i386-msvc | msvc)
636 basic_machine=i386-pc
637 os=-msvc
638 ;;
639#### End MozillaHack
640 miniframe)
641 basic_machine=m68000-convergent
642 ;;
643 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
644 basic_machine=m68k-atari
645 os=-mint
646 ;;
647 mips3*-*)
648 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
649 ;;
650 mips3*)
651 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
652 ;;
653 mmix*)
654 basic_machine=mmix-knuth
655 os=-mmixware
656 ;;
657 monitor)
658 basic_machine=m68k-rom68k
659 os=-coff
660 ;;
661 morphos)
662 basic_machine=powerpc-unknown
663 os=-morphos
664 ;;
665 msdos)
666 basic_machine=i386-pc
667 os=-msdos
668 ;;
669 mvs)
670 basic_machine=i370-ibm
671 os=-mvs
672 ;;
673 ncr3000)
674 basic_machine=i486-ncr
675 os=-sysv4
676 ;;
677 netbsd386)
678 basic_machine=i386-unknown
679 os=-netbsd
680 ;;
681 netwinder)
682 basic_machine=armv4l-rebel
683 os=-linux
684 ;;
685 news | news700 | news800 | news900)
686 basic_machine=m68k-sony
687 os=-newsos
688 ;;
689 news1000)
690 basic_machine=m68030-sony
691 os=-newsos
692 ;;
693 news-3600 | risc-news)
694 basic_machine=mips-sony
695 os=-newsos
696 ;;
697 necv70)
698 basic_machine=v70-nec
699 os=-sysv
700 ;;
701 next | m*-next )
702 basic_machine=m68k-next
703 case $os in
704 -nextstep* )
705 ;;
706 -ns2*)
707 os=-nextstep2
708 ;;
709 *)
710 os=-nextstep3
711 ;;
712 esac
713 ;;
714 nh3000)
715 basic_machine=m68k-harris
716 os=-cxux
717 ;;
718 nh[45]000)
719 basic_machine=m88k-harris
720 os=-cxux
721 ;;
722 nindy960)
723 basic_machine=i960-intel
724 os=-nindy
725 ;;
726 mon960)
727 basic_machine=i960-intel
728 os=-mon960
729 ;;
730 nonstopux)
731 basic_machine=mips-compaq
732 os=-nonstopux
733 ;;
734 np1)
735 basic_machine=np1-gould
736 ;;
737 nv1)
738 basic_machine=nv1-cray
739 os=-unicosmp
740 ;;
741 nsr-tandem)
742 basic_machine=nsr-tandem
743 ;;
744 op50n-* | op60c-*)
745 basic_machine=hppa1.1-oki
746 os=-proelf
747 ;;
748 or32 | or32-*)
749 basic_machine=or32-unknown
750 os=-coff
751 ;;
752 OSE68000 | ose68000)
753 basic_machine=m68000-ericsson
754 os=-ose
755 ;;
756 os68k)
757 basic_machine=m68k-none
758 os=-os68k
759 ;;
760 pa-hitachi)
761 basic_machine=hppa1.1-hitachi
762 os=-hiuxwe2
763 ;;
764 paragon)
765 basic_machine=i860-intel
766 os=-osf
767 ;;
768 pbd)
769 basic_machine=sparc-tti
770 ;;
771 pbb)
772 basic_machine=m68k-tti
773 ;;
774 pc532 | pc532-*)
775 basic_machine=ns32k-pc532
776 ;;
777 pentium | p5 | k5 | k6 | nexgen | viac3)
778 basic_machine=i586-pc
779 ;;
780 pentiumpro | p6 | 6x86 | athlon | athlon_*)
781 basic_machine=i686-pc
782 ;;
783 pentiumii | pentium2)
784 basic_machine=i686-pc
785 ;;
786 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
787 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
788 ;;
789 pentiumpro-* | p6-* | 6x86-* | athlon-*)
790 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
791 ;;
792 pentiumii-* | pentium2-*)
793 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
794 ;;
795 pn)
796 basic_machine=pn-gould
797 ;;
798 power) basic_machine=power-ibm
799 ;;
800 ppc) basic_machine=powerpc-unknown
801 ;;
802 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
803 ;;
804 ppcle | powerpclittle | ppc-le | powerpc-little)
805 basic_machine=powerpcle-unknown
806 ;;
807 ppcle-* | powerpclittle-*)
808 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
809 ;;
810 ppc64) basic_machine=powerpc64-unknown
811 ;;
812 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
813 ;;
814 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
815 basic_machine=powerpc64le-unknown
816 ;;
817 ppc64le-* | powerpc64little-*)
818 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
819 ;;
820 ps2)
821 basic_machine=i386-ibm
822 ;;
823 pw32)
824 basic_machine=i586-unknown
825 os=-pw32
826 ;;
827 rom68k)
828 basic_machine=m68k-rom68k
829 os=-coff
830 ;;
831 rm[46]00)
832 basic_machine=mips-siemens
833 ;;
834 rtpc | rtpc-*)
835 basic_machine=romp-ibm
836 ;;
837 s390 | s390-*)
838 basic_machine=s390-ibm
839 ;;
840 s390x | s390x-*)
841 basic_machine=s390x-ibm
842 ;;
843 sa29200)
844 basic_machine=a29k-amd
845 os=-udi
846 ;;
847 sb1)
848 basic_machine=mipsisa64sb1-unknown
849 ;;
850 sb1el)
851 basic_machine=mipsisa64sb1el-unknown
852 ;;
853 sequent)
854 basic_machine=i386-sequent
855 ;;
856 sh)
857 basic_machine=sh-hitachi
858 os=-hms
859 ;;
860 sparclite-wrs | simso-wrs)
861 basic_machine=sparclite-wrs
862 os=-vxworks
863 ;;
864 sps7)
865 basic_machine=m68k-bull
866 os=-sysv2
867 ;;
868 spur)
869 basic_machine=spur-unknown
870 ;;
871 st2000)
872 basic_machine=m68k-tandem
873 ;;
874 stratus)
875 basic_machine=i860-stratus
876 os=-sysv4
877 ;;
878 sun2)
879 basic_machine=m68000-sun
880 ;;
881 sun2os3)
882 basic_machine=m68000-sun
883 os=-sunos3
884 ;;
885 sun2os4)
886 basic_machine=m68000-sun
887 os=-sunos4
888 ;;
889 sun3os3)
890 basic_machine=m68k-sun
891 os=-sunos3
892 ;;
893 sun3os4)
894 basic_machine=m68k-sun
895 os=-sunos4
896 ;;
897 sun4os3)
898 basic_machine=sparc-sun
899 os=-sunos3
900 ;;
901 sun4os4)
902 basic_machine=sparc-sun
903 os=-sunos4
904 ;;
905 sun4sol2)
906 basic_machine=sparc-sun
907 os=-solaris2
908 ;;
909 sun3 | sun3-*)
910 basic_machine=m68k-sun
911 ;;
912 sun4)
913 basic_machine=sparc-sun
914 ;;
915 sun386 | sun386i | roadrunner)
916 basic_machine=i386-sun
917 ;;
918 sv1)
919 basic_machine=sv1-cray
920 os=-unicos
921 ;;
922 symmetry)
923 basic_machine=i386-sequent
924 os=-dynix
925 ;;
926 t3e)
927 basic_machine=alphaev5-cray
928 os=-unicos
929 ;;
930 t90)
931 basic_machine=t90-cray
932 os=-unicos
933 ;;
934 tic4x | c4x*)
935 basic_machine=tic4x-unknown
936 os=-coff
937 ;;
938 tic54x | c54x*)
939 basic_machine=tic54x-unknown
940 os=-coff
941 ;;
942 tic55x | c55x*)
943 basic_machine=tic55x-unknown
944 os=-coff
945 ;;
946 tic6x | c6x*)
947 basic_machine=tic6x-unknown
948 os=-coff
949 ;;
950 tx39)
951 basic_machine=mipstx39-unknown
952 ;;
953 tx39el)
954 basic_machine=mipstx39el-unknown
955 ;;
956 toad1)
957 basic_machine=pdp10-xkl
958 os=-tops20
959 ;;
960 tower | tower-32)
961 basic_machine=m68k-ncr
962 ;;
963 udi29k)
964 basic_machine=a29k-amd
965 os=-udi
966 ;;
967 ultra3)
968 basic_machine=a29k-nyu
969 os=-sym1
970 ;;
971 v810 | necv810)
972 basic_machine=v810-nec
973 os=-none
974 ;;
975 vaxv)
976 basic_machine=vax-dec
977 os=-sysv
978 ;;
979 vms)
980 basic_machine=vax-dec
981 os=-vms
982 ;;
983 vpp*|vx|vx-*)
984 basic_machine=f301-fujitsu
985 ;;
986 vxworks960)
987 basic_machine=i960-wrs
988 os=-vxworks
989 ;;
990 vxworks68)
991 basic_machine=m68k-wrs
992 os=-vxworks
993 ;;
994 vxworks29k)
995 basic_machine=a29k-wrs
996 os=-vxworks
997 ;;
998 w65*)
999 basic_machine=w65-wdc
1000 os=-none
1001 ;;
1002 w89k-*)
1003 basic_machine=hppa1.1-winbond
1004 os=-proelf
1005 ;;
1006 xps | xps100)
1007 basic_machine=xps100-honeywell
1008 ;;
1009 ymp)
1010 basic_machine=ymp-cray
1011 os=-unicos
1012 ;;
1013 z8k-*-coff)
1014 basic_machine=z8k-unknown
1015 os=-sim
1016 ;;
1017 none)
1018 basic_machine=none-none
1019 os=-none
1020 ;;
1021
1022# Here we handle the default manufacturer of certain CPU types. It is in
1023# some cases the only manufacturer, in others, it is the most popular.
1024 w89k)
1025 basic_machine=hppa1.1-winbond
1026 ;;
1027 op50n)
1028 basic_machine=hppa1.1-oki
1029 ;;
1030 op60c)
1031 basic_machine=hppa1.1-oki
1032 ;;
1033 romp)
1034 basic_machine=romp-ibm
1035 ;;
1036 rs6000)
1037 basic_machine=rs6000-ibm
1038 ;;
1039 vax)
1040 basic_machine=vax-dec
1041 ;;
1042 pdp10)
1043 # there are many clones, so DEC is not a safe bet
1044 basic_machine=pdp10-unknown
1045 ;;
1046 pdp11)
1047 basic_machine=pdp11-dec
1048 ;;
1049 we32k)
1050 basic_machine=we32k-att
1051 ;;
1052 sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
1053 basic_machine=sh-unknown
1054 ;;
1055 sh64)
1056 basic_machine=sh64-unknown
1057 ;;
1058 sparc | sparcv9 | sparcv9b)
1059 basic_machine=sparc-sun
1060 ;;
1061 cydra)
1062 basic_machine=cydra-cydrome
1063 ;;
1064 orion)
1065 basic_machine=orion-highlevel
1066 ;;
1067 orion105)
1068 basic_machine=clipper-highlevel
1069 ;;
1070 mac | mpw | mac-mpw)
1071 basic_machine=m68k-apple
1072 ;;
1073 pmac | pmac-mpw)
1074 basic_machine=powerpc-apple
1075 ;;
1076 *-unknown)
1077 # Make sure to match an already-canonicalized machine name.
1078 ;;
1079 *)
1080 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1081 exit 1
1082 ;;
1083esac
1084
1085# Here we canonicalize certain aliases for manufacturers.
1086case $basic_machine in
1087 *-digital*)
1088 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1089 ;;
1090 *-commodore*)
1091 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1092 ;;
1093 *)
1094 ;;
1095esac
1096
1097# Decode manufacturer-specific aliases for certain operating systems.
1098
1099if [ x"$os" != x"" ]
1100then
1101case $os in
1102 # First match some system type aliases
1103 # that might get confused with valid system types.
1104 # -solaris* is a basic system type, with this one exception.
1105 -solaris1 | -solaris1.*)
1106 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1107 ;;
1108 -solaris)
1109 os=-solaris2
1110 ;;
1111 -svr4*)
1112 os=-sysv4
1113 ;;
1114 -unixware*)
1115 os=-sysv4.2uw
1116 ;;
1117 -gnu/linux*)
1118 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1119 ;;
1120 # First accept the basic system types.
1121 # The portable systems comes first.
1122 # Each alternative MUST END IN A *, to match a version number.
1123 # -sysv* is not here because it comes later, after sysvr4.
1124#### MozillaHack
1125# msvc
1126#### End MozillaHack
1127 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1128 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1129 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1130 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1131 | -aos* \
1132 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1133 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1134 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
1135 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1136 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1137 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1138 | -chorusos* | -chorusrdb* \
1139 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1140 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1141 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1142 | -msvc* \
1143 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1144 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1145 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1146 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1147 | -powermax* | -dnix*)
1148 # Remember, each alternative MUST END IN *, to match a version number.
1149 ;;
1150 -qnx*)
1151 case $basic_machine in
1152 x86-* | i*86-*)
1153 ;;
1154 *)
1155 os=-nto$os
1156 ;;
1157 esac
1158 ;;
1159 -nto-qnx*)
1160 ;;
1161 -nto*)
1162 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1163 ;;
1164 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1165 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
1166 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1167 ;;
1168 -mac*)
1169 os=`echo $os | sed -e 's|mac|macos|'`
1170 ;;
1171 -linux*)
1172 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1173 ;;
1174 -sunos5*)
1175 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1176 ;;
1177 -sunos6*)
1178 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1179 ;;
1180 -opened*)
1181 os=-openedition
1182 ;;
1183 -wince*)
1184 os=-wince
1185 ;;
1186 -osfrose*)
1187 os=-osfrose
1188 ;;
1189 -osf*)
1190 os=-osf
1191 ;;
1192 -utek*)
1193 os=-bsd
1194 ;;
1195 -dynix*)
1196 os=-bsd
1197 ;;
1198 -acis*)
1199 os=-aos
1200 ;;
1201 -atheos*)
1202 os=-atheos
1203 ;;
1204 -386bsd)
1205 os=-bsd
1206 ;;
1207 -ctix* | -uts*)
1208 os=-sysv
1209 ;;
1210 -nova*)
1211 os=-rtmk-nova
1212 ;;
1213 -ns2 )
1214 os=-nextstep2
1215 ;;
1216 -nsk*)
1217 os=-nsk
1218 ;;
1219 # Preserve the version number of sinix5.
1220 -sinix5.*)
1221 os=`echo $os | sed -e 's|sinix|sysv|'`
1222 ;;
1223 -sinix*)
1224 os=-sysv4
1225 ;;
1226 -triton*)
1227 os=-sysv3
1228 ;;
1229 -oss*)
1230 os=-sysv3
1231 ;;
1232 -svr4)
1233 os=-sysv4
1234 ;;
1235 -svr3)
1236 os=-sysv3
1237 ;;
1238 -sysvr4)
1239 os=-sysv4
1240 ;;
1241 # This must come after -sysvr4.
1242 -sysv*)
1243 ;;
1244 -ose*)
1245 os=-ose
1246 ;;
1247 -es1800*)
1248 os=-ose
1249 ;;
1250 -xenix)
1251 os=-xenix
1252 ;;
1253 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1254 os=-mint
1255 ;;
1256 -aros*)
1257 os=-aros
1258 ;;
1259 -kaos*)
1260 os=-kaos
1261 ;;
1262 -none)
1263 ;;
1264 *)
1265 # Get rid of the `-' at the beginning of $os.
1266 os=`echo $os | sed 's/[^-]*-//'`
1267 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1268 exit 1
1269 ;;
1270esac
1271else
1272
1273# Here we handle the default operating systems that come with various machines.
1274# The value should be what the vendor currently ships out the door with their
1275# machine or put another way, the most popular os provided with the machine.
1276
1277# Note that if you're going to try to match "-MANUFACTURER" here (say,
1278# "-sun"), then you have to tell the case statement up towards the top
1279# that MANUFACTURER isn't an operating system. Otherwise, code above
1280# will signal an error saying that MANUFACTURER isn't an operating
1281# system, and we'll never get to this point.
1282
1283case $basic_machine in
1284 *-acorn)
1285 os=-riscix1.2
1286 ;;
1287 arm*-rebel)
1288 os=-linux
1289 ;;
1290 arm*-semi)
1291 os=-aout
1292 ;;
1293 # This must come before the *-dec entry.
1294 pdp10-*)
1295 os=-tops20
1296 ;;
1297 pdp11-*)
1298 os=-none
1299 ;;
1300 *-dec | vax-*)
1301 os=-ultrix4.2
1302 ;;
1303 m68*-apollo)
1304 os=-domain
1305 ;;
1306 i386-sun)
1307 os=-sunos4.0.2
1308 ;;
1309 m68000-sun)
1310 os=-sunos3
1311 # This also exists in the configure program, but was not the
1312 # default.
1313 # os=-sunos4
1314 ;;
1315 m68*-cisco)
1316 os=-aout
1317 ;;
1318 mips*-cisco)
1319 os=-elf
1320 ;;
1321 mips*-*)
1322 os=-elf
1323 ;;
1324 or32-*)
1325 os=-coff
1326 ;;
1327 *-tti) # must be before sparc entry or we get the wrong os.
1328 os=-sysv3
1329 ;;
1330 sparc-* | *-sun)
1331 os=-sunos4.1.1
1332 ;;
1333 *-be)
1334 os=-beos
1335 ;;
1336 *-ibm)
1337 os=-aix
1338 ;;
1339 *-wec)
1340 os=-proelf
1341 ;;
1342 *-winbond)
1343 os=-proelf
1344 ;;
1345 *-oki)
1346 os=-proelf
1347 ;;
1348 *-hp)
1349 os=-hpux
1350 ;;
1351 *-hitachi)
1352 os=-hiux
1353 ;;
1354 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1355 os=-sysv
1356 ;;
1357 *-cbm)
1358 os=-amigaos
1359 ;;
1360 *-dg)
1361 os=-dgux
1362 ;;
1363 *-dolphin)
1364 os=-sysv3
1365 ;;
1366 m68k-ccur)
1367 os=-rtu
1368 ;;
1369 m88k-omron*)
1370 os=-luna
1371 ;;
1372 *-next )
1373 os=-nextstep
1374 ;;
1375 *-sequent)
1376 os=-ptx
1377 ;;
1378 *-crds)
1379 os=-unos
1380 ;;
1381 *-ns)
1382 os=-genix
1383 ;;
1384 i370-*)
1385 os=-mvs
1386 ;;
1387 *-next)
1388 os=-nextstep3
1389 ;;
1390 *-gould)
1391 os=-sysv
1392 ;;
1393 *-highlevel)
1394 os=-bsd
1395 ;;
1396 *-encore)
1397 os=-bsd
1398 ;;
1399 *-sgi)
1400 os=-irix
1401 ;;
1402 *-siemens)
1403 os=-sysv4
1404 ;;
1405 *-masscomp)
1406 os=-rtu
1407 ;;
1408 f30[01]-fujitsu | f700-fujitsu)
1409 os=-uxpv
1410 ;;
1411 *-rom68k)
1412 os=-coff
1413 ;;
1414 *-*bug)
1415 os=-coff
1416 ;;
1417 *-apple)
1418 os=-macos
1419 ;;
1420 *-atari*)
1421 os=-mint
1422 ;;
1423 *)
1424 os=-none
1425 ;;
1426esac
1427fi
1428
1429# Here we handle the case where we know the os, and the CPU type, but not the
1430# manufacturer. We pick the logical manufacturer.
1431vendor=unknown
1432case $basic_machine in
1433 *-unknown)
1434 case $os in
1435 -riscix*)
1436 vendor=acorn
1437 ;;
1438 -sunos*)
1439 vendor=sun
1440 ;;
1441 -aix*)
1442 vendor=ibm
1443 ;;
1444 -beos*)
1445 vendor=be
1446 ;;
1447 -hpux*)
1448 vendor=hp
1449 ;;
1450 -mpeix*)
1451 vendor=hp
1452 ;;
1453 -hiux*)
1454 vendor=hitachi
1455 ;;
1456 -unos*)
1457 vendor=crds
1458 ;;
1459 -dgux*)
1460 vendor=dg
1461 ;;
1462 -luna*)
1463 vendor=omron
1464 ;;
1465 -genix*)
1466 vendor=ns
1467 ;;
1468 -mvs* | -opened*)
1469 vendor=ibm
1470 ;;
1471 -ptx*)
1472 vendor=sequent
1473 ;;
1474 -vxsim* | -vxworks* | -windiss*)
1475 vendor=wrs
1476 ;;
1477 -aux*)
1478 vendor=apple
1479 ;;
1480 -hms*)
1481 vendor=hitachi
1482 ;;
1483 -mpw* | -macos*)
1484 vendor=apple
1485 ;;
1486 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1487 vendor=atari
1488 ;;
1489 -vos*)
1490 vendor=stratus
1491 ;;
1492 esac
1493 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1494 ;;
1495esac
1496
1497echo $basic_machine$os
1498exit 0
1499
1500# Local variables:
1501# eval: (add-hook 'write-file-hooks 'time-stamp)
1502# time-stamp-start: "timestamp='"
1503# time-stamp-format: "%:y-%02m-%02d"
1504# time-stamp-end: "'"
1505# End:
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette