2
2
# Configuration validation subroutine script.
3
3
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
4
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
5
# 2011, 2012 Free Software Foundation, Inc.
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.
13
# This file is free software; you can redistribute it and/or modify
14
# it under the terms of the GNU General Public License as published by
15
# the Free Software Foundation; either version 2 of the License, or
5
# 2011, 2012, 2013 Free Software Foundation, Inc.
9
# This file is free software; you can redistribute it and/or modify it
10
# under the terms of the GNU General Public License as published by
11
# the Free Software Foundation; either version 3 of the License, or
16
12
# (at your option) any later version.
18
# This program is distributed in the hope that it will be useful,
19
# but WITHOUT ANY WARRANTY; without even the implied warranty of
20
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
# GNU General Public License for more details.
14
# This program is distributed in the hope that it will be useful, but
15
# WITHOUT ANY WARRANTY; without even the implied warranty of
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
# General Public License for more details.
23
19
# You should have received a copy of the GNU General Public License
24
20
# along with this program; if not, see <http://www.gnu.org/licenses/>.
26
22
# As a special exception to the GNU General Public License, if you
27
23
# distribute this file as part of a program that contains a
28
24
# configuration script generated by Autoconf, you may include it under
29
# the same distribution terms that you use for the rest of that program.
32
# Please send patches to <config-patches@gnu.org>. Submit a context
33
# diff and a properly formatted GNU ChangeLog entry.
25
# the same distribution terms that you use for the rest of that
26
# program. This Exception is an additional permission under section 7
27
# of the GNU General Public License, version 3 ("GPLv3").
30
# Please send patches with a ChangeLog entry to config-patches@gnu.org.
35
32
# Configuration subroutine to validate and canonicalize a configuration type.
36
33
# Supply the specified configuration type as an argument.
74
71
GNU config.sub ($timestamp)
76
73
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
77
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
78
Free Software Foundation, Inc.
74
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
75
2012, 2013 Free Software Foundation, Inc.
80
77
This is free software; see the source for copying conditions. There is NO
81
78
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
123
120
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
124
121
case $maybe_os in
125
122
nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
126
linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
123
linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
127
124
knetbsd*-gnu* | netbsd*-gnu* | \
128
125
kopensolaris*-gnu* | \
129
126
storm-chaos* | os2-emx* | rtmk-nova*)
156
153
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
157
154
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
158
155
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
159
-apple | -axis | -knuth | -cray | -microblaze)
156
-apple | -axis | -knuth | -cray | -microblaze*)
253
256
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
254
257
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
256
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
260
| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
259
264
| c4x | clipper \
260
265
| d10v | d30v | dlx | dsp16xx \
384
389
| m32c-* | m32r-* | m32rle-* \
385
390
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
386
| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
391
| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
392
| microblaze-* | microblazeel-* \
387
393
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
389
395
| mips64-* | mips64el-* \
1346
1360
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1347
1361
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1348
1362
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1349
| -openbsd* | -solidbsd* \
1363
| -bitrig* | -openbsd* | -solidbsd* \
1350
1364
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1351
1365
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1352
1366
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1353
1367
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1354
1368
| -chorusos* | -chorusrdb* | -cegcc* \
1355
1369
| -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1356
| -mingw32* | -linux-gnu* | -linux-android* \
1357
| -linux-newlib* | -linux-uclibc* \
1370
| -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1371
| -linux-newlib* | -linux-musl* | -linux-uclibc* \
1358
1372
| -uxpv* | -beos* | -mpeix* | -udk* \
1359
1373
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1360
1374
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \