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