annotate config.sub @ 390:c6012109f545 r21-2-10

Import from CVS: tag r21-2-10
author cvs
date Mon, 13 Aug 2007 11:10:03 +0200
parents 8626e4521993
children 74fd4e045ea6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 #! /bin/sh
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 # Configuration validation subroutine script, version 1.1.
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
3 # Copyright (C) 1991, 92-97, 1998 Free Software Foundation, Inc.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 # This file is (in principle) common to ALL GNU software.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 # The presence of a machine in this file suggests that SOME GNU software
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 # can handle that machine. It does not imply ALL GNU software can.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 # This file is free software; you can redistribute it and/or modify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 # it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 # the Free Software Foundation; either version 2 of the License, or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 # (at your option) any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 # This program is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 # GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 # You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 # along with this program; if not, write to the Free Software
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 # Foundation, Inc., 59 Temple Place - Suite 330,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 # Boston, MA 02111-1307, USA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 # As a special exception to the GNU General Public License, if you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 # distribute this file as part of a program that contains a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 # configuration script generated by Autoconf, you may include it under
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 # the same distribution terms that you use for the rest of that program.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 # Configuration subroutine to validate and canonicalize a configuration type.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 # Supply the specified configuration type as an argument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 # If it is invalid, we print an error message on stderr and exit with code 1.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 # Otherwise, we print the canonical config type on stdout and succeed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 # This file is supposed to be the same for all GNU packages
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 # and recognize all the CPU types, system types and aliases
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 # that are meaningful with *any* GNU software.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 # Each package is responsible for reporting which valid configurations
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 # it does not support. The user should be able to distinguish
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 # a failure to support a valid configuration from a meaningless
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 # configuration.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 # The goal of this file is to map all the various variations of a given
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 # machine specification into a single specification in the form:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
44 # or in some cases, the newer four-part form:
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
45 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 # It is wrong to echo any other type of specification.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 if [ x$1 = x ]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 echo Configuration name missing. 1>&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 echo "or $0 ALIAS" 1>&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 echo where ALIAS is a recognized configuration type. 1>&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 # First pass through any local machine types.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 case $1 in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 *local*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 echo $1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 exit 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
67 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
68 # Here we must recognize all the valid KERNEL-OS combinations.
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
69 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
70 case $maybe_os in
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
71 linux-gnu*)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
72 os=-$maybe_os
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
73 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
74 ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
75 *)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
76 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
77 if [ $basic_machine != $1 ]
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
78 then os=`echo $1 | sed 's/.*-/-/'`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
79 else os=; fi
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
80 ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
81 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 ### Let's recognize common machines as not being operating systems so
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 ### that things like config.sub decstation-3100 work. We also
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 ### recognize some manufacturers as not being operating systems, so we
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 ### can provide default operating systems below.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 case $os in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 -sun*os*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 # Prevent following clause from handling this invalid input.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 -apple)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 os=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 basic_machine=$1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 -hiux*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 os=-hiuxwe2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 -sco5)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 os=sco3.2v5
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
106 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 -sco4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 os=-sco3.2v4
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
110 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 -sco3.2.[4-9]*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
114 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 -sco3.2v[4-9]*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 # Don't forget version if it is 3.2v4 or newer.
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
118 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 -sco*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 os=-sco3.2v2
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
122 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 -isc)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 os=-isc2.2
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
126 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 -clix*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 basic_machine=clipper-intergraph
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 -isc*)
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
132 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 -lynx*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 os=-lynxos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 -ptx*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 -windowsnt*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 os=`echo $os | sed -e 's/windowsnt/winnt/'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 -psos*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 os=-psos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 # Decode aliases for certain CPU-COMPANY combinations.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 case $basic_machine in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 # Recognize the basic CPU types without company name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 # Some are omitted here because they have special meanings below.
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
152 tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
153 | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
154 | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 | hppa2.0 \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
155 | alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
156 | i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
157 | mips64 | mipsel | mips64el | mips64orion | mips64orionel \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
158 | mipstx39 | mipstx39el \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
159 | sparc | sparclet | sparclite | sparc64 | v850)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 basic_machine=$basic_machine-unknown
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
162 # We use `pc' rather than `unknown'
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
163 # because (1) that's what they normally are, and
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
164 # (2) the word "unknown" tends to confuse beginning users.
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
165 i[34567]86)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
166 basic_machine=$basic_machine-pc
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
167 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 # Object if more than one company name word.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 *-*-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 # Recognize the basic CPU types with company name.
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
174 vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
175 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
176 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
177 | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
178 | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
179 | alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
180 | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
181 | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
182 | sparc64-* | mips64-* | mipsel-* \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
183 | mips64el-* | mips64orion-* | mips64orionel-* \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
184 | mipstx39-* | mipstx39el-* \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
185 | f301-*)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 # Recognize the various machine names and aliases which stand
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 # for a CPU type and a company and sometimes even an OS.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 basic_machine=m68000-att
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 3b*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 basic_machine=we32k-att
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 alliant | fx80)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 basic_machine=fx80-alliant
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 altos | altos3068)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 basic_machine=m68k-altos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 am29k)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 basic_machine=a29k-none
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 amdahl)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 basic_machine=580-amdahl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 amiga | amiga-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 basic_machine=m68k-cbm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
212 amigaos | amigados)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 basic_machine=m68k-cbm
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
214 os=-amigaos
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 amigaunix | amix)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 basic_machine=m68k-cbm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 os=-sysv4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 apollo68)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221 basic_machine=m68k-apollo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 aux)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 basic_machine=m68k-apple
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 os=-aux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 balance)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 basic_machine=ns32k-sequent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 os=-dynix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 convex-c1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 basic_machine=c1-convex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 convex-c2)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 basic_machine=c2-convex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 convex-c32)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 basic_machine=c32-convex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 convex-c34)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 basic_machine=c34-convex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 convex-c38)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 basic_machine=c38-convex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 cray | ymp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 basic_machine=ymp-cray
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 os=-unicos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 cray2)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 basic_machine=cray2-cray
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 os=-unicos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 [ctj]90-cray)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 basic_machine=c90-cray
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 os=-unicos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 crds | unos)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 basic_machine=m68k-crds
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267 da30 | da30-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268 basic_machine=m68k-da30
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 basic_machine=mips-dec
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 delta | 3300 | motorola-3300 | motorola-delta \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274 | 3300-motorola | delta-motorola)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275 basic_machine=m68k-motorola
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277 delta88)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 basic_machine=m88k-motorola
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 os=-sysv3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 dpx20 | dpx20-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 basic_machine=rs6000-bull
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 os=-bosx
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285 dpx2* | dpx2*-bull)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 basic_machine=m68k-bull
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287 os=-sysv3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 ebmon29k)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
290 basic_machine=a29k-amd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 os=-ebmon
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293 elxsi)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294 basic_machine=elxsi-elxsi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297 encore | umax | mmax)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298 basic_machine=ns32k-encore
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
299 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
300 fx2800)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
301 basic_machine=i860-alliant
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
302 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
303 genix)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304 basic_machine=ns32k-ns
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
306 gmicro)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
307 basic_machine=tron-gmicro
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
308 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310 h3050r* | hiux*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311 basic_machine=hppa1.1-hitachi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
312 os=-hiuxwe2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
313 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314 h8300hms)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315 basic_machine=h8300-hitachi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
316 os=-hms
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
317 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318 harris)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
319 basic_machine=m88k-harris
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
320 os=-sysv3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
321 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
322 hp300-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
323 basic_machine=m68k-hp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
324 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
325 hp300bsd)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
326 basic_machine=m68k-hp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
327 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
328 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
329 hp300hpux)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
330 basic_machine=m68k-hp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
331 os=-hpux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
332 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
333 hp9k2[0-9][0-9] | hp9k31[0-9])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
334 basic_machine=m68000-hp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
335 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
336 hp9k3[2-9][0-9])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337 basic_machine=m68k-hp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
338 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339 hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340 basic_machine=hppa1.1-hp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
341 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342 hp9k8[0-9][0-9] | hp8[0-9][0-9])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
343 basic_machine=hppa1.0-hp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
344 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
345 hppa-next)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
346 os=-nextstep3
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
347 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
348 i370-ibm* | ibm*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349 basic_machine=i370-ibm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350 os=-mvs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
351 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
353 i[34567]86v32)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
354 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355 os=-sysv32
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
356 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
357 i[34567]86v4*)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
358 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
359 os=-sysv4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
360 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
361 i[34567]86v)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
362 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
363 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
364 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
365 i[34567]86sol2)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
366 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367 os=-solaris2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
368 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
369 iris | iris4d)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
370 basic_machine=mips-sgi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371 case $os in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
372 -irix*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
373 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
374 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
375 os=-irix4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
376 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
377 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
378 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
379 isi68 | isi)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
380 basic_machine=m68k-isi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
381 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
382 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
383 m88k-omron*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
384 basic_machine=m88k-omron
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
385 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
386 magnum | m3230)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
387 basic_machine=mips-mips
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
388 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
389 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
390 merlin)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
391 basic_machine=ns32k-utek
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
392 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
393 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
394 miniframe)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
395 basic_machine=m68000-convergent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
396 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
397 mipsel*-linux*)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
398 basic_machine=mipsel-unknown
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
399 os=-linux-gnu
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
400 ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
401 mips*-linux*)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
402 basic_machine=mips-unknown
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
403 os=-linux-gnu
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
404 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
405 mips3*-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
406 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
407 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
408 mips3*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
409 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
410 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
411 ncr3000)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
412 basic_machine=i486-ncr
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
413 os=-sysv4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
414 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
415 news | news700 | news800 | news900)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
416 basic_machine=m68k-sony
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
417 os=-newsos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
418 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
419 news1000)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
420 basic_machine=m68030-sony
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
421 os=-newsos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
422 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
423 news-3600 | risc-news)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
424 basic_machine=mips-sony
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
425 os=-newsos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
426 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
427 next | m*-next )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
428 basic_machine=m68k-next
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
429 case $os in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
430 -nextstep* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
431 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
432 -ns2*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
433 os=-nextstep2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
434 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
435 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
436 os=-nextstep3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
437 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
438 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
439 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
440 nh3000)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
441 basic_machine=m68k-harris
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
442 os=-cxux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
443 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
444 nh[45]000)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
445 basic_machine=m88k-harris
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
446 os=-cxux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
447 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
448 nindy960)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
449 basic_machine=i960-intel
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
450 os=-nindy
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
451 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
452 np1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
453 basic_machine=np1-gould
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
454 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
455 pa-hitachi)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
456 basic_machine=hppa1.1-hitachi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
457 os=-hiuxwe2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
458 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
459 paragon)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
460 basic_machine=i860-intel
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
461 os=-osf
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
462 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
463 pbd)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
464 basic_machine=sparc-tti
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
465 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
466 pbb)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
467 basic_machine=m68k-tti
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
468 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
469 pc532 | pc532-*)
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
470 basic_machine=ns32k-pc532
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
471 ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
472 pentium | p5 | k5 | nexen)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
473 basic_machine=i586-pc
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
474 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
475 pentiumpro | p6 | k6 | 6x86)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
476 basic_machine=i686-pc
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
477 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
478 pentiumii | pentium2)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
479 basic_machine=i786-pc
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
480 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
481 pentium-* | p5-* | k5-* | nexen-*)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
482 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
483 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
484 pentiumpro-* | p6-* | k6-* | 6x86-*)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
485 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
486 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
487 pentiumii-* | pentium2-*)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
488 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
489 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
490 pn)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
491 basic_machine=pn-gould
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
492 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
493 power) basic_machine=rs6000-ibm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
494 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
495 ppc) basic_machine=powerpc-unknown
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
496 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
497 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
498 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
499 ppcle | powerpclittle | ppc-le | powerpc-little)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
500 basic_machine=powerpcle-unknown
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
501 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
502 ppcle-* | powerpclittle-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
503 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
504 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
505 ps2)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
506 basic_machine=i386-ibm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
507 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
508 rm[46]00)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
509 basic_machine=mips-siemens
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
510 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
511 rtpc | rtpc-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
512 basic_machine=romp-ibm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
513 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
514 sequent)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
515 basic_machine=i386-sequent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
516 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
517 sh)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
518 basic_machine=sh-hitachi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
519 os=-hms
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
520 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
521 sps7)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
522 basic_machine=m68k-bull
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
523 os=-sysv2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
524 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
525 spur)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
526 basic_machine=spur-unknown
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
527 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
528 sun2)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
529 basic_machine=m68000-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
530 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
531 sun2os3)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
532 basic_machine=m68000-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
533 os=-sunos3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
534 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
535 sun2os4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
536 basic_machine=m68000-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
537 os=-sunos4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
538 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
539 sun3os3)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
540 basic_machine=m68k-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
541 os=-sunos3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
542 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
543 sun3os4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
544 basic_machine=m68k-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
545 os=-sunos4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
546 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
547 sun4os3)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
548 basic_machine=sparc-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
549 os=-sunos3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
550 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
551 sun4os4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
552 basic_machine=sparc-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
553 os=-sunos4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
554 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
555 sun4sol2)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
556 basic_machine=sparc-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
557 os=-solaris2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
558 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
559 sun3 | sun3-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
560 basic_machine=m68k-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
561 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
562 sun4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
563 basic_machine=sparc-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
564 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
565 sun386 | sun386i | roadrunner)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
566 basic_machine=i386-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
567 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
568 symmetry)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
569 basic_machine=i386-sequent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
570 os=-dynix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
571 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
572 tx39)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
573 basic_machine=mipstx39-unknown
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
574 ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
575 tx39el)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
576 basic_machine=mipstx39el-unknown
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
577 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
578 tower | tower-32)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
579 basic_machine=m68k-ncr
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
580 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
581 udi29k)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
582 basic_machine=a29k-amd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
583 os=-udi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
584 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
585 ultra3)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
586 basic_machine=a29k-nyu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
587 os=-sym1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
588 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
589 vaxv)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
590 basic_machine=vax-dec
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
591 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
592 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
593 vms)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
594 basic_machine=vax-dec
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
595 os=-vms
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
596 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
597 vpp*|vx|vx-*)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
598 basic_machine=f301-fujitsu
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
599 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
600 vxworks960)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
601 basic_machine=i960-wrs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
602 os=-vxworks
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
603 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
604 vxworks68)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
605 basic_machine=m68k-wrs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
606 os=-vxworks
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
607 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
608 vxworks29k)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
609 basic_machine=a29k-wrs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
610 os=-vxworks
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
611 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
612 xmp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
613 basic_machine=xmp-cray
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
614 os=-unicos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
615 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
616 xps | xps100)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
617 basic_machine=xps100-honeywell
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
618 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
619 none)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
620 basic_machine=none-none
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
621 os=-none
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
622 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
623
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
624 # Here we handle the default manufacturer of certain CPU types. It is in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
625 # some cases the only manufacturer, in others, it is the most popular.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
626 mips)
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
627 if [ x$os = x-linux-gnu ]; then
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
628 basic_machine=mips-unknown
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
629 else
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
630 basic_machine=mips-mips
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
631 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
632 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
633 romp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
634 basic_machine=romp-ibm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
635 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
636 rs6000)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
637 basic_machine=rs6000-ibm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
638 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
639 vax)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
640 basic_machine=vax-dec
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
641 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
642 pdp11)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
643 basic_machine=pdp11-dec
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
644 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
645 we32k)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
646 basic_machine=we32k-att
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
647 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
648 sparc)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
649 basic_machine=sparc-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
650 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
651 cydra)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
652 basic_machine=cydra-cydrome
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
653 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
654 orion)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
655 basic_machine=orion-highlevel
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
656 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
657 orion105)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
658 basic_machine=clipper-highlevel
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
659 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
660 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
661 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
662 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
663 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
664 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
665
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
666 # Here we canonicalize certain aliases for manufacturers.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
667 case $basic_machine in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
668 *-digital*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
669 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
670 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
671 *-commodore*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
672 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
673 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
674 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
675 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
676 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
677
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
678 # Decode manufacturer-specific aliases for certain operating systems.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
679
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
680 if [ x"$os" != x"" ]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
681 then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
682 case $os in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
683 # First match some system type aliases
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
684 # that might get confused with valid system types.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
685 # -solaris* is a basic system type, with this one exception.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
686 -solaris1 | -solaris1.*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
687 os=`echo $os | sed -e 's|solaris1|sunos4|'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
688 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
689 -solaris)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
690 os=-solaris2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
691 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
692 -svr4*)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
693 os=-sysv4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
694 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
695 -unixware*)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
696 os=-sysv4.2uw
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
697 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
698 -gnu/linux*)
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
699 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
700 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
701 # First accept the basic system types.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
702 # The portable systems comes first.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
703 # Each alternative MUST END IN A *, to match a version number.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
704 # -sysv* is not here because it comes later, after sysvr4.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
705 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
706 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
707 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
708 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
709 | -aos* \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
710 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
711 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
712 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
713 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
714 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
715 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
716 | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
717 | -mingw32* | -linux-gnu* | -uxpv* | -beos*)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
718 # Remember, each alternative MUST END IN *, to match a version number.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
719 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
720 -linux*)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
721 os=`echo $os | sed -e 's|linux|linux-gnu|'`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
722 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
723 -sunos5*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
724 os=`echo $os | sed -e 's|sunos5|solaris2|'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
725 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
726 -sunos6*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
727 os=`echo $os | sed -e 's|sunos6|solaris3|'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
728 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
729 -osfrose*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
730 os=-osfrose
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
731 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
732 -osf*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
733 os=-osf
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
734 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
735 -utek*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
736 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
737 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
738 -dynix*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
739 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
740 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
741 -acis*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
742 os=-aos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
743 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
744 -ctix* | -uts*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
745 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
746 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
747 -ns2 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
748 os=-nextstep2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
749 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
750 # Preserve the version number of sinix5.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
751 -sinix5.*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
752 os=`echo $os | sed -e 's|sinix|sysv|'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
753 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
754 -sinix*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
755 os=-sysv4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
756 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
757 -triton*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
758 os=-sysv3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
759 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
760 -oss*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
761 os=-sysv3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
762 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
763 -svr4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
764 os=-sysv4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
765 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
766 -svr3)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
767 os=-sysv3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
768 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
769 -sysvr4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
770 os=-sysv4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
771 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
772 # This must come after -sysvr4.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
773 -sysv*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
774 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
775 -xenix)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
776 os=-xenix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
777 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
778 -none)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
779 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
780 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
781 # Get rid of the `-' at the beginning of $os.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
782 os=`echo $os | sed 's/[^-]*-//'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
783 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
784 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
785 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
786 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
787 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
788
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
789 # Here we handle the default operating systems that come with various machines.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
790 # The value should be what the vendor currently ships out the door with their
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
791 # machine or put another way, the most popular os provided with the machine.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
792
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
793 # Note that if you're going to try to match "-MANUFACTURER" here (say,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
794 # "-sun"), then you have to tell the case statement up towards the top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
795 # that MANUFACTURER isn't an operating system. Otherwise, code above
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
796 # will signal an error saying that MANUFACTURER isn't an operating
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
797 # system, and we'll never get to this point.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
798
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
799 case $basic_machine in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
800 *-acorn)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
801 os=-riscix1.2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
802 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
803 arm*-semi)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
804 os=-aout
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
805 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
806 pdp11-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
807 os=-none
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
808 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
809 *-dec | vax-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
810 os=-ultrix4.2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
811 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
812 m68*-apollo)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
813 os=-domain
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
814 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
815 i386-sun)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
816 os=-sunos4.0.2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
817 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
818 m68000-sun)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
819 os=-sunos3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
820 # This also exists in the configure program, but was not the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
821 # default.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
822 # os=-sunos4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
823 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
824 *-tti) # must be before sparc entry or we get the wrong os.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
825 os=-sysv3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
826 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
827 sparc-* | *-sun)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
828 os=-sunos4.1.1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
829 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
830 *-be)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
831 os=-beos
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
832 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
833 *-ibm)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
834 os=-aix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
835 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
836 *-hp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
837 os=-hpux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
838 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
839 *-hitachi)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
840 os=-hiux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
841 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
842 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
843 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
844 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
845 *-cbm)
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
846 os=-amigaos
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
847 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
848 *-dg)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
849 os=-dgux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
850 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
851 *-dolphin)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
852 os=-sysv3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
853 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
854 m68k-ccur)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
855 os=-rtu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
856 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
857 m88k-omron*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
858 os=-luna
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
859 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
860 *-next )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
861 os=-nextstep
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
862 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
863 *-sequent)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
864 os=-ptx
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
865 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
866 *-crds)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
867 os=-unos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
868 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
869 *-ns)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
870 os=-genix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
871 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
872 i370-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
873 os=-mvs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
874 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
875 *-next)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
876 os=-nextstep3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
877 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
878 *-gould)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
879 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
880 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
881 *-highlevel)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
882 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
883 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
884 *-encore)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
885 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
886 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
887 *-sgi)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
888 os=-irix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
889 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
890 *-siemens)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
891 os=-sysv4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
892 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
893 *-masscomp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
894 os=-rtu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
895 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
896 f301-fujitsu)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
897 os=-uxpv
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
898 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
899 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
900 os=-none
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
901 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
902 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
903 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
904
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
905 # Here we handle the case where we know the os, and the CPU type, but not the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
906 # manufacturer. We pick the logical manufacturer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
907 vendor=unknown
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
908 case $basic_machine in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
909 *-unknown)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
910 case $os in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
911 -riscix*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
912 vendor=acorn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
913 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
914 -sunos*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
915 vendor=sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
916 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
917 -aix*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
918 vendor=ibm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
919 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
920 -hpux*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
921 vendor=hp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
922 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
923 -hiux*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
924 vendor=hitachi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
925 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
926 -unos*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
927 vendor=crds
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
928 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
929 -dgux*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
930 vendor=dg
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
931 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
932 -luna*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
933 vendor=omron
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
934 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
935 -genix*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
936 vendor=ns
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
937 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
938 -mvs*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
939 vendor=ibm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
940 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
941 -ptx*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
942 vendor=sequent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
943 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
944 -vxsim* | -vxworks*)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
945 vendor=wrs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
946 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
947 -aux*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
948 vendor=apple
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
949 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
950 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
951 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
952 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
953 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
954
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
955 echo $basic_machine$os