| 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, 2010, |
| 5 |
< |
# 2011 Free Software Foundation, Inc. |
| 5 |
> |
# 2011, 2012, 2013 Free Software Foundation, Inc. |
| 6 |
|
|
| 7 |
< |
timestamp='2011-11-11' |
| 7 |
> |
timestamp='2012-12-29' |
| 8 |
|
|
| 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 |
| 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 |
| 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 |
| 12 |
|
# (at your option) any later version. |
| 13 |
|
# |
| 14 |
< |
# This program is distributed in the hope that it will be useful, |
| 15 |
< |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 |
< |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 |
< |
# 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. |
| 18 |
|
# |
| 19 |
|
# You should have received a copy of the GNU General Public License |
| 20 |
< |
# along with this program; if not, write to the Free Software |
| 25 |
< |
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA |
| 26 |
< |
# 02110-1301, USA. |
| 20 |
> |
# along with this program; if not, see <http://www.gnu.org/licenses/>. |
| 21 |
|
# |
| 22 |
|
# As a special exception to the GNU General Public License, if you |
| 23 |
|
# distribute this file as part of a program that contains a |
| 24 |
|
# configuration script generated by Autoconf, you may include it under |
| 25 |
< |
# the same distribution terms that you use for the rest of that program. |
| 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"). |
| 28 |
|
|
| 29 |
|
|
| 30 |
< |
# Please send patches to <config-patches@gnu.org>. Submit a context |
| 35 |
< |
# diff and a properly formatted GNU ChangeLog entry. |
| 30 |
> |
# Please send patches with a ChangeLog entry to config-patches@gnu.org. |
| 31 |
|
# |
| 32 |
|
# Configuration subroutine to validate and canonicalize a configuration type. |
| 33 |
|
# Supply the specified configuration type as an argument. |
| 71 |
|
GNU config.sub ($timestamp) |
| 72 |
|
|
| 73 |
|
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
| 74 |
< |
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free |
| 75 |
< |
Software Foundation, Inc. |
| 74 |
> |
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, |
| 75 |
> |
2012, 2013 Free Software Foundation, Inc. |
| 76 |
|
|
| 77 |
|
This is free software; see the source for copying conditions. There is NO |
| 78 |
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
| 120 |
|
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
| 121 |
|
case $maybe_os in |
| 122 |
|
nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ |
| 123 |
< |
linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ |
| 123 |
> |
linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ |
| 124 |
|
knetbsd*-gnu* | netbsd*-gnu* | \ |
| 125 |
|
kopensolaris*-gnu* | \ |
| 126 |
|
storm-chaos* | os2-emx* | rtmk-nova*) |
| 127 |
|
os=-$maybe_os |
| 128 |
|
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
| 129 |
|
;; |
| 130 |
+ |
android-linux) |
| 131 |
+ |
os=-linux-android |
| 132 |
+ |
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown |
| 133 |
+ |
;; |
| 134 |
|
*) |
| 135 |
|
basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
| 136 |
|
if [ $basic_machine != $1 ] |
| 153 |
|
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
| 154 |
|
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
| 155 |
|
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
| 156 |
< |
-apple | -axis | -knuth | -cray | -microblaze) |
| 156 |
> |
-apple | -axis | -knuth | -cray | -microblaze*) |
| 157 |
|
os= |
| 158 |
|
basic_machine=$1 |
| 159 |
|
;; |
| 222 |
|
-isc*) |
| 223 |
|
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
| 224 |
|
;; |
| 225 |
+ |
-lynx*178) |
| 226 |
+ |
os=-lynxos178 |
| 227 |
+ |
;; |
| 228 |
+ |
-lynx*5) |
| 229 |
+ |
os=-lynxos5 |
| 230 |
+ |
;; |
| 231 |
|
-lynx*) |
| 232 |
|
os=-lynxos |
| 233 |
|
;; |
| 252 |
|
# Some are omitted here because they have special meanings below. |
| 253 |
|
1750a | 580 \ |
| 254 |
|
| a29k \ |
| 255 |
+ |
| aarch64 | aarch64_be \ |
| 256 |
|
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
| 257 |
|
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
| 258 |
|
| am33_2.0 \ |
| 259 |
< |
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ |
| 260 |
< |
| be32 | be64 \ |
| 259 |
> |
| arc \ |
| 260 |
> |
| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ |
| 261 |
> |
| avr | avr32 \ |
| 262 |
> |
| be32 | be64 \ |
| 263 |
|
| bfin \ |
| 264 |
|
| c4x | clipper \ |
| 265 |
|
| d10v | d30v | dlx | dsp16xx \ |
| 272 |
|
| le32 | le64 \ |
| 273 |
|
| lm32 \ |
| 274 |
|
| m32c | m32r | m32rle | m68000 | m68k | m88k \ |
| 275 |
< |
| maxq | mb | microblaze | mcore | mep | metag \ |
| 275 |
> |
| maxq | mb | microblaze | microblazeel | mcore | mep | metag \ |
| 276 |
|
| mips | mipsbe | mipseb | mipsel | mipsle \ |
| 277 |
|
| mips16 \ |
| 278 |
|
| mips64 | mips64el \ |
| 327 |
|
c6x) |
| 328 |
|
basic_machine=tic6x-unknown |
| 329 |
|
;; |
| 330 |
< |
m6811 | m68hc11 | m6812 | m68hc12 | picochip) |
| 323 |
< |
# Motorola 68HC11/12. |
| 330 |
> |
m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) |
| 331 |
|
basic_machine=$basic_machine-unknown |
| 332 |
|
os=-none |
| 333 |
|
;; |
| 340 |
|
strongarm | thumb | xscale) |
| 341 |
|
basic_machine=arm-unknown |
| 342 |
|
;; |
| 343 |
< |
|
| 343 |
> |
xgate) |
| 344 |
> |
basic_machine=$basic_machine-unknown |
| 345 |
> |
os=-none |
| 346 |
> |
;; |
| 347 |
|
xscaleeb) |
| 348 |
|
basic_machine=armeb-unknown |
| 349 |
|
;; |
| 366 |
|
# Recognize the basic CPU types with company name. |
| 367 |
|
580-* \ |
| 368 |
|
| a29k-* \ |
| 369 |
+ |
| aarch64-* | aarch64_be-* \ |
| 370 |
|
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
| 371 |
|
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
| 372 |
|
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
| 388 |
|
| lm32-* \ |
| 389 |
|
| m32c-* | m32r-* | m32rle-* \ |
| 390 |
|
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
| 391 |
< |
| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ |
| 391 |
> |
| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ |
| 392 |
> |
| microblaze-* | microblazeel-* \ |
| 393 |
|
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
| 394 |
|
| mips16-* \ |
| 395 |
|
| mips64-* | mips64el-* \ |
| 731 |
|
i370-ibm* | ibm*) |
| 732 |
|
basic_machine=i370-ibm |
| 733 |
|
;; |
| 722 |
– |
# I'm not sure what "Sysv32" means. Should this be sysv3.2? |
| 734 |
|
i*86v32) |
| 735 |
|
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
| 736 |
|
os=-sysv32 |
| 788 |
|
basic_machine=ns32k-utek |
| 789 |
|
os=-sysv |
| 790 |
|
;; |
| 791 |
< |
microblaze) |
| 791 |
> |
microblaze*) |
| 792 |
|
basic_machine=microblaze-xilinx |
| 793 |
|
;; |
| 794 |
+ |
mingw64) |
| 795 |
+ |
basic_machine=x86_64-pc |
| 796 |
+ |
os=-mingw64 |
| 797 |
+ |
;; |
| 798 |
|
mingw32) |
| 799 |
|
basic_machine=i386-pc |
| 800 |
|
os=-mingw32 |
| 1023 |
|
basic_machine=i586-unknown |
| 1024 |
|
os=-pw32 |
| 1025 |
|
;; |
| 1026 |
< |
rdos) |
| 1026 |
> |
rdos | rdos64) |
| 1027 |
> |
basic_machine=x86_64-pc |
| 1028 |
> |
os=-rdos |
| 1029 |
> |
;; |
| 1030 |
> |
rdos32) |
| 1031 |
|
basic_machine=i386-pc |
| 1032 |
|
os=-rdos |
| 1033 |
|
;; |
| 1360 |
|
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
| 1361 |
|
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
| 1362 |
|
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
| 1363 |
< |
| -openbsd* | -solidbsd* \ |
| 1363 |
> |
| -bitrig* | -openbsd* | -solidbsd* \ |
| 1364 |
|
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
| 1365 |
|
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
| 1366 |
|
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
| 1367 |
|
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
| 1368 |
|
| -chorusos* | -chorusrdb* | -cegcc* \ |
| 1369 |
|
| -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
| 1370 |
< |
| -mingw32* | -linux-gnu* | -linux-android* \ |
| 1371 |
< |
| -linux-newlib* | -linux-uclibc* \ |
| 1370 |
> |
| -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ |
| 1371 |
> |
| -linux-newlib* | -linux-musl* | -linux-uclibc* \ |
| 1372 |
|
| -uxpv* | -beos* | -mpeix* | -udk* \ |
| 1373 |
|
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
| 1374 |
|
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
| 1551 |
|
c4x-* | tic4x-*) |
| 1552 |
|
os=-coff |
| 1553 |
|
;; |
| 1554 |
+ |
hexagon-*) |
| 1555 |
+ |
os=-elf |
| 1556 |
+ |
;; |
| 1557 |
|
tic54x-*) |
| 1558 |
|
os=-coff |
| 1559 |
|
;; |
| 1581 |
|
;; |
| 1582 |
|
m68000-sun) |
| 1583 |
|
os=-sunos3 |
| 1562 |
– |
# This also exists in the configure program, but was not the |
| 1563 |
– |
# default. |
| 1564 |
– |
# os=-sunos4 |
| 1584 |
|
;; |
| 1585 |
|
m68*-cisco) |
| 1586 |
|
os=-aout |