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