1 | #! /bin/sh |
1 | #! /bin/sh |
2 | # Configuration validation subroutine script. |
2 | # Configuration validation subroutine script. |
3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
|
|
4 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 |
|
|
5 | # Free Software Foundation, Inc. |
3 | # Copyright 1992-2016 Free Software Foundation, Inc. |
6 | |
4 | |
7 | timestamp='2009-06-11' |
5 | timestamp='2016-09-05' |
8 | |
6 | |
9 | # This file is (in principle) common to ALL GNU software. |
|
|
10 | # The presence of a machine in this file suggests that SOME GNU software |
|
|
11 | # can handle that machine. It does not imply ALL GNU software can. |
|
|
12 | # |
|
|
13 | # This file is free software; you can redistribute it and/or modify |
7 | # This file is free software; you can redistribute it and/or modify it |
14 | # it under the terms of the GNU General Public License as published by |
8 | # under the terms of the GNU General Public License as published by |
15 | # the Free Software Foundation; either version 2 of the License, or |
9 | # the Free Software Foundation; either version 3 of the License, or |
16 | # (at your option) any later version. |
10 | # (at your option) any later version. |
17 | # |
11 | # |
18 | # This program is distributed in the hope that it will be useful, |
12 | # This program is distributed in the hope that it will be useful, but |
19 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
21 | # GNU General Public License for more details. |
15 | # General Public License for more details. |
22 | # |
16 | # |
23 | # You should have received a copy of the GNU General Public License |
17 | # You should have received a copy of the GNU General Public License |
24 | # along with this program; if not, write to the Free Software |
18 | # along with this program; if not, see <http://www.gnu.org/licenses/>. |
25 | # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA |
|
|
26 | # 02110-1301, USA. |
|
|
27 | # |
19 | # |
28 | # As a special exception to the GNU General Public License, if you |
20 | # As a special exception to the GNU General Public License, if you |
29 | # distribute this file as part of a program that contains a |
21 | # distribute this file as part of a program that contains a |
30 | # configuration script generated by Autoconf, you may include it under |
22 | # configuration script generated by Autoconf, you may include it under |
31 | # the same distribution terms that you use for the rest of that program. |
23 | # the same distribution terms that you use for the rest of that |
|
|
24 | # program. This Exception is an additional permission under section 7 |
|
|
25 | # of the GNU General Public License, version 3 ("GPLv3"). |
32 | |
26 | |
33 | |
27 | |
34 | # Please send patches to <config-patches@gnu.org>. Submit a context |
28 | # Please send patches to <config-patches@gnu.org>. |
35 | # diff and a properly formatted ChangeLog entry. |
|
|
36 | # |
29 | # |
37 | # Configuration subroutine to validate and canonicalize a configuration type. |
30 | # Configuration subroutine to validate and canonicalize a configuration type. |
38 | # Supply the specified configuration type as an argument. |
31 | # Supply the specified configuration type as an argument. |
39 | # If it is invalid, we print an error message on stderr and exit with code 1. |
32 | # If it is invalid, we print an error message on stderr and exit with code 1. |
40 | # Otherwise, we print the canonical config type on stdout and succeed. |
33 | # Otherwise, we print the canonical config type on stdout and succeed. |
|
|
34 | |
|
|
35 | # You can get the latest version of this script from: |
|
|
36 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub |
41 | |
37 | |
42 | # This file is supposed to be the same for all GNU packages |
38 | # This file is supposed to be the same for all GNU packages |
43 | # and recognize all the CPU types, system types and aliases |
39 | # and recognize all the CPU types, system types and aliases |
44 | # that are meaningful with *any* GNU software. |
40 | # that are meaningful with *any* GNU software. |
45 | # Each package is responsible for reporting which valid configurations |
41 | # Each package is responsible for reporting which valid configurations |
… | |
… | |
55 | # It is wrong to echo any other type of specification. |
51 | # It is wrong to echo any other type of specification. |
56 | |
52 | |
57 | me=`echo "$0" | sed -e 's,.*/,,'` |
53 | me=`echo "$0" | sed -e 's,.*/,,'` |
58 | |
54 | |
59 | usage="\ |
55 | usage="\ |
60 | Usage: $0 [OPTION] CPU-MFR-OPSYS |
56 | Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS |
61 | $0 [OPTION] ALIAS |
|
|
62 | |
57 | |
63 | Canonicalize a configuration name. |
58 | Canonicalize a configuration name. |
64 | |
59 | |
65 | Operation modes: |
60 | Operation modes: |
66 | -h, --help print this help, then exit |
61 | -h, --help print this help, then exit |
… | |
… | |
70 | Report bugs and patches to <config-patches@gnu.org>." |
65 | Report bugs and patches to <config-patches@gnu.org>." |
71 | |
66 | |
72 | version="\ |
67 | version="\ |
73 | GNU config.sub ($timestamp) |
68 | GNU config.sub ($timestamp) |
74 | |
69 | |
75 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, |
70 | Copyright 1992-2016 Free Software Foundation, Inc. |
76 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
|
|
77 | |
71 | |
78 | This is free software; see the source for copying conditions. There is NO |
72 | This is free software; see the source for copying conditions. There is NO |
79 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
73 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
80 | |
74 | |
81 | help=" |
75 | help=" |
… | |
… | |
118 | |
112 | |
119 | # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
113 | # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
120 | # Here we must recognize all the valid KERNEL-OS combinations. |
114 | # Here we must recognize all the valid KERNEL-OS combinations. |
121 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
115 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
122 | case $maybe_os in |
116 | case $maybe_os in |
123 | nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ |
117 | nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ |
124 | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ |
118 | linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ |
125 | kopensolaris*-gnu* | \ |
119 | knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ |
|
|
120 | kopensolaris*-gnu* | cloudabi*-eabi* | \ |
126 | storm-chaos* | os2-emx* | rtmk-nova*) |
121 | storm-chaos* | os2-emx* | rtmk-nova*) |
127 | os=-$maybe_os |
122 | os=-$maybe_os |
128 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
123 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
|
|
124 | ;; |
|
|
125 | android-linux) |
|
|
126 | os=-linux-android |
|
|
127 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown |
129 | ;; |
128 | ;; |
130 | *) |
129 | *) |
131 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
130 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
132 | if [ $basic_machine != $1 ] |
131 | if [ $basic_machine != $1 ] |
133 | then os=`echo $1 | sed 's/.*-/-/'` |
132 | then os=`echo $1 | sed 's/.*-/-/'` |
… | |
… | |
147 | -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ |
146 | -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ |
148 | -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ |
147 | -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ |
149 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
148 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
150 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
149 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
151 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
150 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
152 | -apple | -axis | -knuth | -cray) |
151 | -apple | -axis | -knuth | -cray | -microblaze*) |
153 | os= |
152 | os= |
154 | basic_machine=$1 |
153 | basic_machine=$1 |
155 | ;; |
154 | ;; |
156 | -bluegene*) |
155 | -bluegene*) |
157 | os=-cnk |
156 | os=-cnk |
158 | ;; |
157 | ;; |
159 | -sim | -cisco | -oki | -wec | -winbond) |
158 | -sim | -cisco | -oki | -wec | -winbond) |
160 | os= |
159 | os= |
161 | basic_machine=$1 |
160 | basic_machine=$1 |
162 | ;; |
161 | ;; |
… | |
… | |
168 | ;; |
167 | ;; |
169 | -chorusos*) |
168 | -chorusos*) |
170 | os=-chorusos |
169 | os=-chorusos |
171 | basic_machine=$1 |
170 | basic_machine=$1 |
172 | ;; |
171 | ;; |
173 | -chorusrdb) |
172 | -chorusrdb) |
174 | os=-chorusrdb |
173 | os=-chorusrdb |
175 | basic_machine=$1 |
174 | basic_machine=$1 |
176 | ;; |
175 | ;; |
177 | -hiux*) |
176 | -hiux*) |
178 | os=-hiuxwe2 |
177 | os=-hiuxwe2 |
179 | ;; |
178 | ;; |
180 | -sco6) |
179 | -sco6) |
181 | os=-sco5v6 |
180 | os=-sco5v6 |
… | |
… | |
215 | -clix*) |
214 | -clix*) |
216 | basic_machine=clipper-intergraph |
215 | basic_machine=clipper-intergraph |
217 | ;; |
216 | ;; |
218 | -isc*) |
217 | -isc*) |
219 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
218 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
|
|
219 | ;; |
|
|
220 | -lynx*178) |
|
|
221 | os=-lynxos178 |
|
|
222 | ;; |
|
|
223 | -lynx*5) |
|
|
224 | os=-lynxos5 |
220 | ;; |
225 | ;; |
221 | -lynx*) |
226 | -lynx*) |
222 | os=-lynxos |
227 | os=-lynxos |
223 | ;; |
228 | ;; |
224 | -ptx*) |
229 | -ptx*) |
… | |
… | |
240 | case $basic_machine in |
245 | case $basic_machine in |
241 | # Recognize the basic CPU types without company name. |
246 | # Recognize the basic CPU types without company name. |
242 | # Some are omitted here because they have special meanings below. |
247 | # Some are omitted here because they have special meanings below. |
243 | 1750a | 580 \ |
248 | 1750a | 580 \ |
244 | | a29k \ |
249 | | a29k \ |
|
|
250 | | aarch64 | aarch64_be \ |
245 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
251 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
246 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
252 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
247 | | am33_2.0 \ |
253 | | am33_2.0 \ |
|
|
254 | | arc | arceb \ |
248 | | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ |
255 | | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ |
|
|
256 | | avr | avr32 \ |
|
|
257 | | ba \ |
|
|
258 | | be32 | be64 \ |
249 | | bfin \ |
259 | | bfin \ |
250 | | c4x | clipper \ |
260 | | c4x | c8051 | clipper \ |
251 | | d10v | d30v | dlx | dsp16xx \ |
261 | | d10v | d30v | dlx | dsp16xx \ |
|
|
262 | | e2k | epiphany \ |
252 | | fido | fr30 | frv \ |
263 | | fido | fr30 | frv | ft32 \ |
253 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
264 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
|
|
265 | | hexagon \ |
254 | | i370 | i860 | i960 | ia64 \ |
266 | | i370 | i860 | i960 | ia64 \ |
255 | | ip2k | iq2000 \ |
267 | | ip2k | iq2000 \ |
|
|
268 | | k1om \ |
|
|
269 | | le32 | le64 \ |
256 | | lm32 \ |
270 | | lm32 \ |
257 | | m32c | m32r | m32rle | m68000 | m68k | m88k \ |
271 | | m32c | m32r | m32rle | m68000 | m68k | m88k \ |
258 | | maxq | mb | microblaze | mcore | mep | metag \ |
272 | | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ |
259 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
273 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
260 | | mips16 \ |
274 | | mips16 \ |
261 | | mips64 | mips64el \ |
275 | | mips64 | mips64el \ |
262 | | mips64octeon | mips64octeonel \ |
276 | | mips64octeon | mips64octeonel \ |
263 | | mips64orion | mips64orionel \ |
277 | | mips64orion | mips64orionel \ |
… | |
… | |
267 | | mips64vr4300 | mips64vr4300el \ |
281 | | mips64vr4300 | mips64vr4300el \ |
268 | | mips64vr5000 | mips64vr5000el \ |
282 | | mips64vr5000 | mips64vr5000el \ |
269 | | mips64vr5900 | mips64vr5900el \ |
283 | | mips64vr5900 | mips64vr5900el \ |
270 | | mipsisa32 | mipsisa32el \ |
284 | | mipsisa32 | mipsisa32el \ |
271 | | mipsisa32r2 | mipsisa32r2el \ |
285 | | mipsisa32r2 | mipsisa32r2el \ |
|
|
286 | | mipsisa32r6 | mipsisa32r6el \ |
272 | | mipsisa64 | mipsisa64el \ |
287 | | mipsisa64 | mipsisa64el \ |
273 | | mipsisa64r2 | mipsisa64r2el \ |
288 | | mipsisa64r2 | mipsisa64r2el \ |
|
|
289 | | mipsisa64r6 | mipsisa64r6el \ |
274 | | mipsisa64sb1 | mipsisa64sb1el \ |
290 | | mipsisa64sb1 | mipsisa64sb1el \ |
275 | | mipsisa64sr71k | mipsisa64sr71kel \ |
291 | | mipsisa64sr71k | mipsisa64sr71kel \ |
|
|
292 | | mipsr5900 | mipsr5900el \ |
276 | | mipstx39 | mipstx39el \ |
293 | | mipstx39 | mipstx39el \ |
277 | | mn10200 | mn10300 \ |
294 | | mn10200 | mn10300 \ |
278 | | moxie \ |
295 | | moxie \ |
279 | | mt \ |
296 | | mt \ |
280 | | msp430 \ |
297 | | msp430 \ |
281 | | nios | nios2 \ |
298 | | nds32 | nds32le | nds32be \ |
|
|
299 | | nios | nios2 | nios2eb | nios2el \ |
282 | | ns16k | ns32k \ |
300 | | ns16k | ns32k \ |
283 | | or32 \ |
301 | | open8 | or1k | or1knd | or32 \ |
284 | | pdp10 | pdp11 | pj | pjl \ |
302 | | pdp10 | pdp11 | pj | pjl \ |
285 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
303 | | powerpc | powerpc64 | powerpc64le | powerpcle \ |
286 | | pyramid \ |
304 | | pyramid \ |
|
|
305 | | riscv32 | riscv64 \ |
|
|
306 | | rl78 | rx \ |
287 | | score \ |
307 | | score \ |
288 | | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
308 | | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
289 | | sh64 | sh64le \ |
309 | | sh64 | sh64le \ |
290 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
310 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
291 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
311 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
292 | | spu | strongarm \ |
312 | | spu \ |
293 | | tahoe | thumb | tic4x | tic80 | tron \ |
313 | | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ |
294 | | v850 | v850e \ |
314 | | ubicom32 \ |
|
|
315 | | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ |
|
|
316 | | visium \ |
295 | | we32k \ |
317 | | we32k \ |
296 | | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ |
318 | | x86 | xc16x | xstormy16 | xtensa \ |
297 | | z8k | z80) |
319 | | z8k | z80) |
298 | basic_machine=$basic_machine-unknown |
320 | basic_machine=$basic_machine-unknown |
299 | ;; |
321 | ;; |
300 | m6811 | m68hc11 | m6812 | m68hc12) |
322 | c54x) |
301 | # Motorola 68HC11/12. |
323 | basic_machine=tic54x-unknown |
|
|
324 | ;; |
|
|
325 | c55x) |
|
|
326 | basic_machine=tic55x-unknown |
|
|
327 | ;; |
|
|
328 | c6x) |
|
|
329 | basic_machine=tic6x-unknown |
|
|
330 | ;; |
|
|
331 | leon|leon[3-9]) |
|
|
332 | basic_machine=sparc-$basic_machine |
|
|
333 | ;; |
|
|
334 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) |
302 | basic_machine=$basic_machine-unknown |
335 | basic_machine=$basic_machine-unknown |
303 | os=-none |
336 | os=-none |
304 | ;; |
337 | ;; |
305 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
338 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
306 | ;; |
339 | ;; |
307 | ms1) |
340 | ms1) |
308 | basic_machine=mt-unknown |
341 | basic_machine=mt-unknown |
|
|
342 | ;; |
|
|
343 | |
|
|
344 | strongarm | thumb | xscale) |
|
|
345 | basic_machine=arm-unknown |
|
|
346 | ;; |
|
|
347 | xgate) |
|
|
348 | basic_machine=$basic_machine-unknown |
|
|
349 | os=-none |
|
|
350 | ;; |
|
|
351 | xscaleeb) |
|
|
352 | basic_machine=armeb-unknown |
|
|
353 | ;; |
|
|
354 | |
|
|
355 | xscaleel) |
|
|
356 | basic_machine=armel-unknown |
309 | ;; |
357 | ;; |
310 | |
358 | |
311 | # We use `pc' rather than `unknown' |
359 | # We use `pc' rather than `unknown' |
312 | # because (1) that's what they normally are, and |
360 | # because (1) that's what they normally are, and |
313 | # (2) the word "unknown" tends to confuse beginning users. |
361 | # (2) the word "unknown" tends to confuse beginning users. |
… | |
… | |
320 | exit 1 |
368 | exit 1 |
321 | ;; |
369 | ;; |
322 | # Recognize the basic CPU types with company name. |
370 | # Recognize the basic CPU types with company name. |
323 | 580-* \ |
371 | 580-* \ |
324 | | a29k-* \ |
372 | | a29k-* \ |
|
|
373 | | aarch64-* | aarch64_be-* \ |
325 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
374 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
326 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
375 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
327 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
376 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ |
328 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
377 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
329 | | avr-* | avr32-* \ |
378 | | avr-* | avr32-* \ |
|
|
379 | | ba-* \ |
|
|
380 | | be32-* | be64-* \ |
330 | | bfin-* | bs2000-* \ |
381 | | bfin-* | bs2000-* \ |
331 | | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
382 | | c[123]* | c30-* | [cjt]90-* | c4x-* \ |
332 | | clipper-* | craynv-* | cydra-* \ |
383 | | c8051-* | clipper-* | craynv-* | cydra-* \ |
333 | | d10v-* | d30v-* | dlx-* \ |
384 | | d10v-* | d30v-* | dlx-* \ |
334 | | elxsi-* \ |
385 | | e2k-* | elxsi-* \ |
335 | | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ |
386 | | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ |
336 | | h8300-* | h8500-* \ |
387 | | h8300-* | h8500-* \ |
337 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
388 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
|
|
389 | | hexagon-* \ |
338 | | i*86-* | i860-* | i960-* | ia64-* \ |
390 | | i*86-* | i860-* | i960-* | ia64-* \ |
339 | | ip2k-* | iq2000-* \ |
391 | | ip2k-* | iq2000-* \ |
|
|
392 | | k1om-* \ |
|
|
393 | | le32-* | le64-* \ |
340 | | lm32-* \ |
394 | | lm32-* \ |
341 | | m32c-* | m32r-* | m32rle-* \ |
395 | | m32c-* | m32r-* | m32rle-* \ |
342 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
396 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
343 | | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ |
397 | | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ |
|
|
398 | | microblaze-* | microblazeel-* \ |
344 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
399 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
345 | | mips16-* \ |
400 | | mips16-* \ |
346 | | mips64-* | mips64el-* \ |
401 | | mips64-* | mips64el-* \ |
347 | | mips64octeon-* | mips64octeonel-* \ |
402 | | mips64octeon-* | mips64octeonel-* \ |
348 | | mips64orion-* | mips64orionel-* \ |
403 | | mips64orion-* | mips64orionel-* \ |
… | |
… | |
352 | | mips64vr4300-* | mips64vr4300el-* \ |
407 | | mips64vr4300-* | mips64vr4300el-* \ |
353 | | mips64vr5000-* | mips64vr5000el-* \ |
408 | | mips64vr5000-* | mips64vr5000el-* \ |
354 | | mips64vr5900-* | mips64vr5900el-* \ |
409 | | mips64vr5900-* | mips64vr5900el-* \ |
355 | | mipsisa32-* | mipsisa32el-* \ |
410 | | mipsisa32-* | mipsisa32el-* \ |
356 | | mipsisa32r2-* | mipsisa32r2el-* \ |
411 | | mipsisa32r2-* | mipsisa32r2el-* \ |
|
|
412 | | mipsisa32r6-* | mipsisa32r6el-* \ |
357 | | mipsisa64-* | mipsisa64el-* \ |
413 | | mipsisa64-* | mipsisa64el-* \ |
358 | | mipsisa64r2-* | mipsisa64r2el-* \ |
414 | | mipsisa64r2-* | mipsisa64r2el-* \ |
|
|
415 | | mipsisa64r6-* | mipsisa64r6el-* \ |
359 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
416 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
360 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
417 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
|
|
418 | | mipsr5900-* | mipsr5900el-* \ |
361 | | mipstx39-* | mipstx39el-* \ |
419 | | mipstx39-* | mipstx39el-* \ |
362 | | mmix-* \ |
420 | | mmix-* \ |
363 | | mt-* \ |
421 | | mt-* \ |
364 | | msp430-* \ |
422 | | msp430-* \ |
365 | | nios-* | nios2-* \ |
423 | | nds32-* | nds32le-* | nds32be-* \ |
|
|
424 | | nios-* | nios2-* | nios2eb-* | nios2el-* \ |
366 | | none-* | np1-* | ns16k-* | ns32k-* \ |
425 | | none-* | np1-* | ns16k-* | ns32k-* \ |
|
|
426 | | open8-* \ |
|
|
427 | | or1k*-* \ |
367 | | orion-* \ |
428 | | orion-* \ |
368 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
429 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
369 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
430 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ |
370 | | pyramid-* \ |
431 | | pyramid-* \ |
371 | | romp-* | rs6000-* \ |
432 | | riscv32-* | riscv64-* \ |
|
|
433 | | rl78-* | romp-* | rs6000-* | rx-* \ |
372 | | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
434 | | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
373 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
435 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
374 | | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
436 | | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
375 | | sparclite-* \ |
437 | | sparclite-* \ |
376 | | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ |
438 | | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \ |
377 | | tahoe-* | thumb-* \ |
439 | | tahoe-* \ |
378 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ |
440 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
|
|
441 | | tile*-* \ |
379 | | tron-* \ |
442 | | tron-* \ |
380 | | v850-* | v850e-* | vax-* \ |
443 | | ubicom32-* \ |
|
|
444 | | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ |
|
|
445 | | vax-* \ |
|
|
446 | | visium-* \ |
381 | | we32k-* \ |
447 | | we32k-* \ |
382 | | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ |
448 | | x86-* | x86_64-* | xc16x-* | xps100-* \ |
383 | | xstormy16-* | xtensa*-* \ |
449 | | xstormy16-* | xtensa*-* \ |
384 | | ymp-* \ |
450 | | ymp-* \ |
385 | | z8k-* | z80-*) |
451 | | z8k-* | z80-*) |
386 | ;; |
452 | ;; |
387 | # Recognize the basic CPU types without company name, with glob match. |
453 | # Recognize the basic CPU types without company name, with glob match. |
… | |
… | |
402 | ;; |
468 | ;; |
403 | a29khif) |
469 | a29khif) |
404 | basic_machine=a29k-amd |
470 | basic_machine=a29k-amd |
405 | os=-udi |
471 | os=-udi |
406 | ;; |
472 | ;; |
407 | abacus) |
473 | abacus) |
408 | basic_machine=abacus-unknown |
474 | basic_machine=abacus-unknown |
409 | ;; |
475 | ;; |
410 | adobe68k) |
476 | adobe68k) |
411 | basic_machine=m68010-adobe |
477 | basic_machine=m68010-adobe |
412 | os=-scout |
478 | os=-scout |
… | |
… | |
452 | ;; |
518 | ;; |
453 | aros) |
519 | aros) |
454 | basic_machine=i386-pc |
520 | basic_machine=i386-pc |
455 | os=-aros |
521 | os=-aros |
456 | ;; |
522 | ;; |
|
|
523 | asmjs) |
|
|
524 | basic_machine=asmjs-unknown |
|
|
525 | ;; |
457 | aux) |
526 | aux) |
458 | basic_machine=m68k-apple |
527 | basic_machine=m68k-apple |
459 | os=-aux |
528 | os=-aux |
460 | ;; |
529 | ;; |
461 | balance) |
530 | balance) |
… | |
… | |
472 | ;; |
541 | ;; |
473 | bluegene*) |
542 | bluegene*) |
474 | basic_machine=powerpc-ibm |
543 | basic_machine=powerpc-ibm |
475 | os=-cnk |
544 | os=-cnk |
476 | ;; |
545 | ;; |
|
|
546 | c54x-*) |
|
|
547 | basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` |
|
|
548 | ;; |
|
|
549 | c55x-*) |
|
|
550 | basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` |
|
|
551 | ;; |
|
|
552 | c6x-*) |
|
|
553 | basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` |
|
|
554 | ;; |
477 | c90) |
555 | c90) |
478 | basic_machine=c90-cray |
556 | basic_machine=c90-cray |
479 | os=-unicos |
557 | os=-unicos |
480 | ;; |
558 | ;; |
481 | cegcc) |
559 | cegcc) |
482 | basic_machine=arm-unknown |
560 | basic_machine=arm-unknown |
483 | os=-cegcc |
561 | os=-cegcc |
484 | ;; |
562 | ;; |
485 | convex-c1) |
563 | convex-c1) |
486 | basic_machine=c1-convex |
564 | basic_machine=c1-convex |
… | |
… | |
508 | ;; |
586 | ;; |
509 | craynv) |
587 | craynv) |
510 | basic_machine=craynv-cray |
588 | basic_machine=craynv-cray |
511 | os=-unicosmp |
589 | os=-unicosmp |
512 | ;; |
590 | ;; |
513 | cr16) |
591 | cr16 | cr16-*) |
514 | basic_machine=cr16-unknown |
592 | basic_machine=cr16-unknown |
515 | os=-elf |
593 | os=-elf |
516 | ;; |
594 | ;; |
517 | crds | unos) |
595 | crds | unos) |
518 | basic_machine=m68k-crds |
596 | basic_machine=m68k-crds |
… | |
… | |
563 | ;; |
641 | ;; |
564 | dpx2* | dpx2*-bull) |
642 | dpx2* | dpx2*-bull) |
565 | basic_machine=m68k-bull |
643 | basic_machine=m68k-bull |
566 | os=-sysv3 |
644 | os=-sysv3 |
567 | ;; |
645 | ;; |
|
|
646 | e500v[12]) |
|
|
647 | basic_machine=powerpc-unknown |
|
|
648 | os=$os"spe" |
|
|
649 | ;; |
|
|
650 | e500v[12]-*) |
|
|
651 | basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
|
|
652 | os=$os"spe" |
|
|
653 | ;; |
568 | ebmon29k) |
654 | ebmon29k) |
569 | basic_machine=a29k-amd |
655 | basic_machine=a29k-amd |
570 | os=-ebmon |
656 | os=-ebmon |
571 | ;; |
657 | ;; |
572 | elxsi) |
658 | elxsi) |
… | |
… | |
666 | os=-proelf |
752 | os=-proelf |
667 | ;; |
753 | ;; |
668 | i370-ibm* | ibm*) |
754 | i370-ibm* | ibm*) |
669 | basic_machine=i370-ibm |
755 | basic_machine=i370-ibm |
670 | ;; |
756 | ;; |
671 | # I'm not sure what "Sysv32" means. Should this be sysv3.2? |
|
|
672 | i*86v32) |
757 | i*86v32) |
673 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
758 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
674 | os=-sysv32 |
759 | os=-sysv32 |
675 | ;; |
760 | ;; |
676 | i*86v4*) |
761 | i*86v4*) |
… | |
… | |
705 | ;; |
790 | ;; |
706 | isi68 | isi) |
791 | isi68 | isi) |
707 | basic_machine=m68k-isi |
792 | basic_machine=m68k-isi |
708 | os=-sysv |
793 | os=-sysv |
709 | ;; |
794 | ;; |
|
|
795 | leon-*|leon[3-9]-*) |
|
|
796 | basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'` |
|
|
797 | ;; |
710 | m68knommu) |
798 | m68knommu) |
711 | basic_machine=m68k-unknown |
799 | basic_machine=m68k-unknown |
712 | os=-linux |
800 | os=-linux |
713 | ;; |
801 | ;; |
714 | m68knommu-*) |
802 | m68knommu-*) |
… | |
… | |
724 | ;; |
812 | ;; |
725 | merlin) |
813 | merlin) |
726 | basic_machine=ns32k-utek |
814 | basic_machine=ns32k-utek |
727 | os=-sysv |
815 | os=-sysv |
728 | ;; |
816 | ;; |
|
|
817 | microblaze*) |
|
|
818 | basic_machine=microblaze-xilinx |
|
|
819 | ;; |
|
|
820 | mingw64) |
|
|
821 | basic_machine=x86_64-pc |
|
|
822 | os=-mingw64 |
|
|
823 | ;; |
729 | mingw32) |
824 | mingw32) |
730 | basic_machine=i386-pc |
825 | basic_machine=i686-pc |
731 | os=-mingw32 |
826 | os=-mingw32 |
732 | ;; |
827 | ;; |
733 | mingw32ce) |
828 | mingw32ce) |
734 | basic_machine=arm-unknown |
829 | basic_machine=arm-unknown |
735 | os=-mingw32ce |
830 | os=-mingw32ce |
… | |
… | |
753 | ;; |
848 | ;; |
754 | morphos) |
849 | morphos) |
755 | basic_machine=powerpc-unknown |
850 | basic_machine=powerpc-unknown |
756 | os=-morphos |
851 | os=-morphos |
757 | ;; |
852 | ;; |
|
|
853 | moxiebox) |
|
|
854 | basic_machine=moxie-unknown |
|
|
855 | os=-moxiebox |
|
|
856 | ;; |
758 | msdos) |
857 | msdos) |
759 | basic_machine=i386-pc |
858 | basic_machine=i386-pc |
760 | os=-msdos |
859 | os=-msdos |
761 | ;; |
860 | ;; |
762 | ms1-*) |
861 | ms1-*) |
763 | basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` |
862 | basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` |
764 | ;; |
863 | ;; |
|
|
864 | msys) |
|
|
865 | basic_machine=i686-pc |
|
|
866 | os=-msys |
|
|
867 | ;; |
765 | mvs) |
868 | mvs) |
766 | basic_machine=i370-ibm |
869 | basic_machine=i370-ibm |
767 | os=-mvs |
870 | os=-mvs |
|
|
871 | ;; |
|
|
872 | nacl) |
|
|
873 | basic_machine=le32-unknown |
|
|
874 | os=-nacl |
768 | ;; |
875 | ;; |
769 | ncr3000) |
876 | ncr3000) |
770 | basic_machine=i486-ncr |
877 | basic_machine=i486-ncr |
771 | os=-sysv4 |
878 | os=-sysv4 |
772 | ;; |
879 | ;; |
… | |
… | |
828 | os=-nonstopux |
935 | os=-nonstopux |
829 | ;; |
936 | ;; |
830 | np1) |
937 | np1) |
831 | basic_machine=np1-gould |
938 | basic_machine=np1-gould |
832 | ;; |
939 | ;; |
|
|
940 | neo-tandem) |
|
|
941 | basic_machine=neo-tandem |
|
|
942 | ;; |
|
|
943 | nse-tandem) |
|
|
944 | basic_machine=nse-tandem |
|
|
945 | ;; |
833 | nsr-tandem) |
946 | nsr-tandem) |
834 | basic_machine=nsr-tandem |
947 | basic_machine=nsr-tandem |
835 | ;; |
948 | ;; |
836 | op50n-* | op60c-*) |
949 | op50n-* | op60c-*) |
837 | basic_machine=hppa1.1-oki |
950 | basic_machine=hppa1.1-oki |
… | |
… | |
910 | pn) |
1023 | pn) |
911 | basic_machine=pn-gould |
1024 | basic_machine=pn-gould |
912 | ;; |
1025 | ;; |
913 | power) basic_machine=power-ibm |
1026 | power) basic_machine=power-ibm |
914 | ;; |
1027 | ;; |
915 | ppc) basic_machine=powerpc-unknown |
1028 | ppc | ppcbe) basic_machine=powerpc-unknown |
916 | ;; |
1029 | ;; |
|
|
1030 | ppc-* | ppcbe-*) |
917 | ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
1031 | basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
918 | ;; |
1032 | ;; |
919 | ppcle | powerpclittle | ppc-le | powerpc-little) |
1033 | ppcle | powerpclittle) |
920 | basic_machine=powerpcle-unknown |
1034 | basic_machine=powerpcle-unknown |
921 | ;; |
1035 | ;; |
922 | ppcle-* | powerpclittle-*) |
1036 | ppcle-* | powerpclittle-*) |
923 | basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` |
1037 | basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` |
924 | ;; |
1038 | ;; |
925 | ppc64) basic_machine=powerpc64-unknown |
1039 | ppc64) basic_machine=powerpc64-unknown |
926 | ;; |
1040 | ;; |
927 | ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` |
1041 | ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` |
928 | ;; |
1042 | ;; |
929 | ppc64le | powerpc64little | ppc64-le | powerpc64-little) |
1043 | ppc64le | powerpc64little) |
930 | basic_machine=powerpc64le-unknown |
1044 | basic_machine=powerpc64le-unknown |
931 | ;; |
1045 | ;; |
932 | ppc64le-* | powerpc64little-*) |
1046 | ppc64le-* | powerpc64little-*) |
933 | basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` |
1047 | basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` |
934 | ;; |
1048 | ;; |
… | |
… | |
937 | ;; |
1051 | ;; |
938 | pw32) |
1052 | pw32) |
939 | basic_machine=i586-unknown |
1053 | basic_machine=i586-unknown |
940 | os=-pw32 |
1054 | os=-pw32 |
941 | ;; |
1055 | ;; |
|
|
1056 | rdos | rdos64) |
|
|
1057 | basic_machine=x86_64-pc |
|
|
1058 | os=-rdos |
|
|
1059 | ;; |
942 | rdos) |
1060 | rdos32) |
943 | basic_machine=i386-pc |
1061 | basic_machine=i386-pc |
944 | os=-rdos |
1062 | os=-rdos |
945 | ;; |
1063 | ;; |
946 | rom68k) |
1064 | rom68k) |
947 | basic_machine=m68k-rom68k |
1065 | basic_machine=m68k-rom68k |
… | |
… | |
1006 | ;; |
1124 | ;; |
1007 | stratus) |
1125 | stratus) |
1008 | basic_machine=i860-stratus |
1126 | basic_machine=i860-stratus |
1009 | os=-sysv4 |
1127 | os=-sysv4 |
1010 | ;; |
1128 | ;; |
|
|
1129 | strongarm-* | thumb-*) |
|
|
1130 | basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` |
|
|
1131 | ;; |
1011 | sun2) |
1132 | sun2) |
1012 | basic_machine=m68000-sun |
1133 | basic_machine=m68000-sun |
1013 | ;; |
1134 | ;; |
1014 | sun2os3) |
1135 | sun2os3) |
1015 | basic_machine=m68000-sun |
1136 | basic_machine=m68000-sun |
… | |
… | |
1062 | ;; |
1183 | ;; |
1063 | t90) |
1184 | t90) |
1064 | basic_machine=t90-cray |
1185 | basic_machine=t90-cray |
1065 | os=-unicos |
1186 | os=-unicos |
1066 | ;; |
1187 | ;; |
1067 | tic54x | c54x*) |
|
|
1068 | basic_machine=tic54x-unknown |
|
|
1069 | os=-coff |
|
|
1070 | ;; |
|
|
1071 | tic55x | c55x*) |
|
|
1072 | basic_machine=tic55x-unknown |
|
|
1073 | os=-coff |
|
|
1074 | ;; |
|
|
1075 | tic6x | c6x*) |
|
|
1076 | basic_machine=tic6x-unknown |
|
|
1077 | os=-coff |
|
|
1078 | ;; |
|
|
1079 | tile*) |
1188 | tile*) |
1080 | basic_machine=tile-unknown |
1189 | basic_machine=$basic_machine-unknown |
1081 | os=-linux-gnu |
1190 | os=-linux-gnu |
1082 | ;; |
1191 | ;; |
1083 | tx39) |
1192 | tx39) |
1084 | basic_machine=mipstx39-unknown |
1193 | basic_machine=mipstx39-unknown |
1085 | ;; |
1194 | ;; |
… | |
… | |
1144 | basic_machine=i686-pc |
1253 | basic_machine=i686-pc |
1145 | os=-mingw32 |
1254 | os=-mingw32 |
1146 | ;; |
1255 | ;; |
1147 | xps | xps100) |
1256 | xps | xps100) |
1148 | basic_machine=xps100-honeywell |
1257 | basic_machine=xps100-honeywell |
|
|
1258 | ;; |
|
|
1259 | xscale-* | xscalee[bl]-*) |
|
|
1260 | basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` |
1149 | ;; |
1261 | ;; |
1150 | ymp) |
1262 | ymp) |
1151 | basic_machine=ymp-cray |
1263 | basic_machine=ymp-cray |
1152 | os=-unicos |
1264 | os=-unicos |
1153 | ;; |
1265 | ;; |
… | |
… | |
1242 | # Decode manufacturer-specific aliases for certain operating systems. |
1354 | # Decode manufacturer-specific aliases for certain operating systems. |
1243 | |
1355 | |
1244 | if [ x"$os" != x"" ] |
1356 | if [ x"$os" != x"" ] |
1245 | then |
1357 | then |
1246 | case $os in |
1358 | case $os in |
1247 | # First match some system type aliases |
1359 | # First match some system type aliases |
1248 | # that might get confused with valid system types. |
1360 | # that might get confused with valid system types. |
1249 | # -solaris* is a basic system type, with this one exception. |
1361 | # -solaris* is a basic system type, with this one exception. |
|
|
1362 | -auroraux) |
|
|
1363 | os=-auroraux |
|
|
1364 | ;; |
1250 | -solaris1 | -solaris1.*) |
1365 | -solaris1 | -solaris1.*) |
1251 | os=`echo $os | sed -e 's|solaris1|sunos4|'` |
1366 | os=`echo $os | sed -e 's|solaris1|sunos4|'` |
1252 | ;; |
1367 | ;; |
1253 | -solaris) |
1368 | -solaris) |
1254 | os=-solaris2 |
1369 | os=-solaris2 |
… | |
… | |
1266 | # The portable systems comes first. |
1381 | # The portable systems comes first. |
1267 | # Each alternative MUST END IN A *, to match a version number. |
1382 | # Each alternative MUST END IN A *, to match a version number. |
1268 | # -sysv* is not here because it comes later, after sysvr4. |
1383 | # -sysv* is not here because it comes later, after sysvr4. |
1269 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
1384 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
1270 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ |
1385 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ |
1271 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ |
1386 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ |
1272 | | -kopensolaris* \ |
1387 | | -sym* | -kopensolaris* | -plan9* \ |
1273 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
1388 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
1274 | | -aos* | -aros* \ |
1389 | | -aos* | -aros* | -cloudabi* | -sortix* \ |
1275 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
1390 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
1276 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
1391 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
1277 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
1392 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
1278 | | -openbsd* | -solidbsd* \ |
1393 | | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \ |
1279 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
1394 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
1280 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1395 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1281 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1396 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1282 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1397 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1283 | | -chorusos* | -chorusrdb* | -cegcc* \ |
1398 | | -chorusos* | -chorusrdb* | -cegcc* \ |
1284 | | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1399 | | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1285 | | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ |
1400 | | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ |
|
|
1401 | | -linux-newlib* | -linux-musl* | -linux-uclibc* \ |
1286 | | -uxpv* | -beos* | -mpeix* | -udk* \ |
1402 | | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ |
1287 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1403 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1288 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1404 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1289 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1405 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1290 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1406 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1291 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1407 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1292 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
1408 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
1293 | | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) |
1409 | | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ |
|
|
1410 | | -onefs* | -tirtos* | -phoenix*) |
1294 | # Remember, each alternative MUST END IN *, to match a version number. |
1411 | # Remember, each alternative MUST END IN *, to match a version number. |
1295 | ;; |
1412 | ;; |
1296 | -qnx*) |
1413 | -qnx*) |
1297 | case $basic_machine in |
1414 | case $basic_machine in |
1298 | x86-* | i*86-*) |
1415 | x86-* | i*86-*) |
… | |
… | |
1327 | os=`echo $os | sed -e 's|sunos6|solaris3|'` |
1444 | os=`echo $os | sed -e 's|sunos6|solaris3|'` |
1328 | ;; |
1445 | ;; |
1329 | -opened*) |
1446 | -opened*) |
1330 | os=-openedition |
1447 | os=-openedition |
1331 | ;; |
1448 | ;; |
1332 | -os400*) |
1449 | -os400*) |
1333 | os=-os400 |
1450 | os=-os400 |
1334 | ;; |
1451 | ;; |
1335 | -wince*) |
1452 | -wince*) |
1336 | os=-wince |
1453 | os=-wince |
1337 | ;; |
1454 | ;; |
… | |
… | |
1376 | os=`echo $os | sed -e 's|sinix|sysv|'` |
1493 | os=`echo $os | sed -e 's|sinix|sysv|'` |
1377 | ;; |
1494 | ;; |
1378 | -sinix*) |
1495 | -sinix*) |
1379 | os=-sysv4 |
1496 | os=-sysv4 |
1380 | ;; |
1497 | ;; |
1381 | -tpf*) |
1498 | -tpf*) |
1382 | os=-tpf |
1499 | os=-tpf |
1383 | ;; |
1500 | ;; |
1384 | -triton*) |
1501 | -triton*) |
1385 | os=-sysv3 |
1502 | os=-sysv3 |
1386 | ;; |
1503 | ;; |
… | |
… | |
1412 | os=-mint |
1529 | os=-mint |
1413 | ;; |
1530 | ;; |
1414 | -aros*) |
1531 | -aros*) |
1415 | os=-aros |
1532 | os=-aros |
1416 | ;; |
1533 | ;; |
1417 | -kaos*) |
|
|
1418 | os=-kaos |
|
|
1419 | ;; |
|
|
1420 | -zvmoe) |
1534 | -zvmoe) |
1421 | os=-zvmoe |
1535 | os=-zvmoe |
1422 | ;; |
1536 | ;; |
1423 | -dicos*) |
1537 | -dicos*) |
1424 | os=-dicos |
1538 | os=-dicos |
|
|
1539 | ;; |
|
|
1540 | -nacl*) |
|
|
1541 | ;; |
|
|
1542 | -ios) |
1425 | ;; |
1543 | ;; |
1426 | -none) |
1544 | -none) |
1427 | ;; |
1545 | ;; |
1428 | *) |
1546 | *) |
1429 | # Get rid of the `-' at the beginning of $os. |
1547 | # Get rid of the `-' at the beginning of $os. |
… | |
… | |
1443 | # that MANUFACTURER isn't an operating system. Otherwise, code above |
1561 | # that MANUFACTURER isn't an operating system. Otherwise, code above |
1444 | # will signal an error saying that MANUFACTURER isn't an operating |
1562 | # will signal an error saying that MANUFACTURER isn't an operating |
1445 | # system, and we'll never get to this point. |
1563 | # system, and we'll never get to this point. |
1446 | |
1564 | |
1447 | case $basic_machine in |
1565 | case $basic_machine in |
1448 | score-*) |
1566 | score-*) |
1449 | os=-elf |
1567 | os=-elf |
1450 | ;; |
1568 | ;; |
1451 | spu-*) |
1569 | spu-*) |
1452 | os=-elf |
1570 | os=-elf |
1453 | ;; |
1571 | ;; |
1454 | *-acorn) |
1572 | *-acorn) |
1455 | os=-riscix1.2 |
1573 | os=-riscix1.2 |
1456 | ;; |
1574 | ;; |
… | |
… | |
1458 | os=-linux |
1576 | os=-linux |
1459 | ;; |
1577 | ;; |
1460 | arm*-semi) |
1578 | arm*-semi) |
1461 | os=-aout |
1579 | os=-aout |
1462 | ;; |
1580 | ;; |
1463 | c4x-* | tic4x-*) |
1581 | c4x-* | tic4x-*) |
1464 | os=-coff |
1582 | os=-coff |
|
|
1583 | ;; |
|
|
1584 | c8051-*) |
|
|
1585 | os=-elf |
|
|
1586 | ;; |
|
|
1587 | hexagon-*) |
|
|
1588 | os=-elf |
|
|
1589 | ;; |
|
|
1590 | tic54x-*) |
|
|
1591 | os=-coff |
|
|
1592 | ;; |
|
|
1593 | tic55x-*) |
|
|
1594 | os=-coff |
|
|
1595 | ;; |
|
|
1596 | tic6x-*) |
|
|
1597 | os=-coff |
1465 | ;; |
1598 | ;; |
1466 | # This must come before the *-dec entry. |
1599 | # This must come before the *-dec entry. |
1467 | pdp10-*) |
1600 | pdp10-*) |
1468 | os=-tops20 |
1601 | os=-tops20 |
1469 | ;; |
1602 | ;; |
… | |
… | |
1479 | i386-sun) |
1612 | i386-sun) |
1480 | os=-sunos4.0.2 |
1613 | os=-sunos4.0.2 |
1481 | ;; |
1614 | ;; |
1482 | m68000-sun) |
1615 | m68000-sun) |
1483 | os=-sunos3 |
1616 | os=-sunos3 |
1484 | # This also exists in the configure program, but was not the |
|
|
1485 | # default. |
|
|
1486 | # os=-sunos4 |
|
|
1487 | ;; |
1617 | ;; |
1488 | m68*-cisco) |
1618 | m68*-cisco) |
1489 | os=-aout |
1619 | os=-aout |
1490 | ;; |
1620 | ;; |
1491 | mep-*) |
1621 | mep-*) |
1492 | os=-elf |
1622 | os=-elf |
1493 | ;; |
1623 | ;; |
1494 | mips*-cisco) |
1624 | mips*-cisco) |
1495 | os=-elf |
1625 | os=-elf |
1496 | ;; |
1626 | ;; |
… | |
… | |
1513 | os=-haiku |
1643 | os=-haiku |
1514 | ;; |
1644 | ;; |
1515 | *-ibm) |
1645 | *-ibm) |
1516 | os=-aix |
1646 | os=-aix |
1517 | ;; |
1647 | ;; |
1518 | *-knuth) |
1648 | *-knuth) |
1519 | os=-mmixware |
1649 | os=-mmixware |
1520 | ;; |
1650 | ;; |
1521 | *-wec) |
1651 | *-wec) |
1522 | os=-proelf |
1652 | os=-proelf |
1523 | ;; |
1653 | ;; |
… | |
… | |
1689 | # eval: (add-hook 'write-file-hooks 'time-stamp) |
1819 | # eval: (add-hook 'write-file-hooks 'time-stamp) |
1690 | # time-stamp-start: "timestamp='" |
1820 | # time-stamp-start: "timestamp='" |
1691 | # time-stamp-format: "%:y-%02m-%02d" |
1821 | # time-stamp-format: "%:y-%02m-%02d" |
1692 | # time-stamp-end: "'" |
1822 | # time-stamp-end: "'" |
1693 | # End: |
1823 | # End: |
|
|
1824 | |