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