| | |
| | | #! /bin/sh |
| | | # Configuration validation subroutine script. |
| | | # Copyright 1992-2015 Free Software Foundation, Inc. |
| | | # Copyright 1992-2016 Free Software Foundation, Inc. |
| | | |
| | | timestamp='2015-08-20' |
| | | timestamp='2016-11-04' |
| | | |
| | | # This file is free software; you can redistribute it and/or modify it |
| | | # under the terms of the GNU General Public License as published by |
| | |
| | | # Otherwise, we print the canonical config type on stdout and succeed. |
| | | |
| | | # You can get the latest version of this script from: |
| | | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD |
| | | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub |
| | | |
| | | # This file is supposed to be the same for all GNU packages |
| | | # and recognize all the CPU types, system types and aliases |
| | |
| | | me=`echo "$0" | sed -e 's,.*/,,'` |
| | | |
| | | usage="\ |
| | | Usage: $0 [OPTION] CPU-MFR-OPSYS |
| | | $0 [OPTION] ALIAS |
| | | Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS |
| | | |
| | | Canonicalize a configuration name. |
| | | |
| | |
| | | version="\ |
| | | GNU config.sub ($timestamp) |
| | | |
| | | Copyright 1992-2015 Free Software Foundation, Inc. |
| | | Copyright 1992-2016 Free Software Foundation, Inc. |
| | | |
| | | This is free software; see the source for copying conditions. There is NO |
| | | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
| | |
| | | nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ |
| | | linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ |
| | | knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ |
| | | kopensolaris*-gnu* | \ |
| | | kopensolaris*-gnu* | cloudabi*-eabi* | \ |
| | | storm-chaos* | os2-emx* | rtmk-nova*) |
| | | os=-$maybe_os |
| | | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
| | |
| | | | open8 | or1k | or1knd | or32 \ |
| | | | pdp10 | pdp11 | pj | pjl \ |
| | | | powerpc | powerpc64 | powerpc64le | powerpcle \ |
| | | | pru \ |
| | | | pyramid \ |
| | | | riscv32 | riscv64 \ |
| | | | rl78 | rx \ |
| | |
| | | | orion-* \ |
| | | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
| | | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ |
| | | | pru-* \ |
| | | | pyramid-* \ |
| | | | riscv32-* | riscv64-* \ |
| | | | rl78-* | romp-* | rs6000-* | rx-* \ |
| | |
| | | basic_machine=i386-pc |
| | | os=-aros |
| | | ;; |
| | | asmjs) |
| | | asmjs) |
| | | basic_machine=asmjs-unknown |
| | | ;; |
| | | aux) |
| | |
| | | dpx2* | dpx2*-bull) |
| | | basic_machine=m68k-bull |
| | | os=-sysv3 |
| | | ;; |
| | | e500v[12]) |
| | | basic_machine=powerpc-unknown |
| | | os=$os"spe" |
| | | ;; |
| | | e500v[12]-*) |
| | | basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
| | | os=$os"spe" |
| | | ;; |
| | | ebmon29k) |
| | | basic_machine=a29k-amd |
| | |
| | | ppc-* | ppcbe-*) |
| | | basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
| | | ;; |
| | | ppcle | powerpclittle | ppc-le | powerpc-little) |
| | | ppcle | powerpclittle) |
| | | basic_machine=powerpcle-unknown |
| | | ;; |
| | | ppcle-* | powerpclittle-*) |
| | |
| | | ;; |
| | | ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` |
| | | ;; |
| | | ppc64le | powerpc64little | ppc64-le | powerpc64-little) |
| | | ppc64le | powerpc64little) |
| | | basic_machine=powerpc64le-unknown |
| | | ;; |
| | | ppc64le-* | powerpc64little-*) |
| | |
| | | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
| | | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
| | | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
| | | | -bitrig* | -openbsd* | -solidbsd* \ |
| | | | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \ |
| | | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
| | | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
| | | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
| | | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
| | | | -chorusos* | -chorusrdb* | -cegcc* \ |
| | | | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
| | | | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ |
| | | | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ |
| | | | -linux-newlib* | -linux-musl* | -linux-uclibc* \ |
| | | | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ |
| | | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
| | |
| | | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
| | | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
| | | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
| | | | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*) |
| | | | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ |
| | | | -onefs* | -tirtos* | -phoenix* | -fuchsia*) |
| | | # Remember, each alternative MUST END IN *, to match a version number. |
| | | ;; |
| | | -qnx*) |
| | |
| | | ;; |
| | | -nacl*) |
| | | ;; |
| | | -ios) |
| | | ;; |
| | | -none) |
| | | ;; |
| | | *) |