| OLD | NEW |
| 1 #! /bin/sh | 1 #! /bin/sh |
| 2 # Attempt to guess a canonical system name. | 2 # Attempt to guess a canonical system name. |
| 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | 3 # Copyright 1992-2015 Free Software Foundation, Inc. |
| 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, | |
| 5 # 2011, 2012 Free Software Foundation, Inc. | |
| 6 | 4 |
| 7 timestamp='2012-02-10' | 5 timestamp='2015-01-01' |
| 8 | 6 |
| 9 # This file is free software; you can redistribute it and/or modify it | 7 # 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 | 8 # under the terms of the GNU General Public License as published by |
| 11 # the Free Software Foundation; either version 2 of the License, or | 9 # the Free Software Foundation; either version 3 of the License, or |
| 12 # (at your option) any later version. | 10 # (at your option) any later version. |
| 13 # | 11 # |
| 14 # This program is distributed in the hope that it will be useful, but | 12 # This program is distributed in the hope that it will be useful, but |
| 15 # WITHOUT ANY WARRANTY; without even the implied warranty of | 13 # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 # General Public License for more details. | 15 # General Public License for more details. |
| 18 # | 16 # |
| 19 # 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 |
| 20 # along with this program; if not, see <http://www.gnu.org/licenses/>. | 18 # along with this program; if not, see <http://www.gnu.org/licenses/>. |
| 21 # | 19 # |
| 22 # 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 |
| 23 # distribute this file as part of a program that contains a | 21 # distribute this file as part of a program that contains a |
| 24 # configuration script generated by Autoconf, you may include it under | 22 # configuration script generated by Autoconf, you may include it under |
| 25 # 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 |
| 26 | 24 # program. This Exception is an additional permission under section 7 |
| 27 | 25 # of the GNU General Public License, version 3 ("GPLv3"). |
| 28 # Originally written by Per Bothner. Please send patches (context | |
| 29 # diff format) to <config-patches@gnu.org> and include a ChangeLog | |
| 30 # entry. | |
| 31 # | 26 # |
| 32 # This script attempts to guess a canonical system name similar to | 27 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. |
| 33 # config.sub. If it succeeds, it prints the system name on stdout, and | |
| 34 # exits with 0. Otherwise, it exits with 1. | |
| 35 # | 28 # |
| 36 # You can get the latest version of this script from: | 29 # You can get the latest version of this script from: |
| 37 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;h
b=HEAD | 30 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;h
b=HEAD |
| 31 # |
| 32 # Please send patches to <config-patches@gnu.org>. |
| 33 |
| 38 | 34 |
| 39 me=`echo "$0" | sed -e 's,.*/,,'` | 35 me=`echo "$0" | sed -e 's,.*/,,'` |
| 40 | 36 |
| 41 usage="\ | 37 usage="\ |
| 42 Usage: $0 [OPTION] | 38 Usage: $0 [OPTION] |
| 43 | 39 |
| 44 Output the configuration name of the system \`$me' is run on. | 40 Output the configuration name of the system \`$me' is run on. |
| 45 | 41 |
| 46 Operation modes: | 42 Operation modes: |
| 47 -h, --help print this help, then exit | 43 -h, --help print this help, then exit |
| 48 -t, --time-stamp print date of last modification, then exit | 44 -t, --time-stamp print date of last modification, then exit |
| 49 -v, --version print version number, then exit | 45 -v, --version print version number, then exit |
| 50 | 46 |
| 51 Report bugs and patches to <config-patches@gnu.org>." | 47 Report bugs and patches to <config-patches@gnu.org>." |
| 52 | 48 |
| 53 version="\ | 49 version="\ |
| 54 GNU config.guess ($timestamp) | 50 GNU config.guess ($timestamp) |
| 55 | 51 |
| 56 Originally written by Per Bothner. | 52 Originally written by Per Bothner. |
| 57 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, | 53 Copyright 1992-2015 Free Software Foundation, Inc. |
| 58 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 | |
| 59 Free Software Foundation, Inc. | |
| 60 | 54 |
| 61 This is free software; see the source for copying conditions. There is NO | 55 This is free software; see the source for copying conditions. There is NO |
| 62 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | 56 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
| 63 | 57 |
| 64 help=" | 58 help=" |
| 65 Try \`$me --help' for more information." | 59 Try \`$me --help' for more information." |
| 66 | 60 |
| 67 # Parse command line | 61 # Parse command line |
| 68 while test $# -gt 0 ; do | 62 while test $# -gt 0 ; do |
| 69 case $1 in | 63 case $1 in |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 # (ghazi@noc.rutgers.edu 1994-08-24) | 125 # (ghazi@noc.rutgers.edu 1994-08-24) |
| 132 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then | 126 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then |
| 133 PATH=$PATH:/.attbin ; export PATH | 127 PATH=$PATH:/.attbin ; export PATH |
| 134 fi | 128 fi |
| 135 | 129 |
| 136 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown | 130 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown |
| 137 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown | 131 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown |
| 138 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown | 132 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown |
| 139 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown | 133 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown |
| 140 | 134 |
| 135 case "${UNAME_SYSTEM}" in |
| 136 Linux|GNU|GNU/*) |
| 137 # If the system lacks a compiler, then just pick glibc. |
| 138 # We could probably try harder. |
| 139 LIBC=gnu |
| 140 |
| 141 eval $set_cc_for_build |
| 142 cat <<-EOF > $dummy.c |
| 143 #include <features.h> |
| 144 #if defined(__UCLIBC__) |
| 145 LIBC=uclibc |
| 146 #elif defined(__dietlibc__) |
| 147 LIBC=dietlibc |
| 148 #else |
| 149 LIBC=gnu |
| 150 #endif |
| 151 EOF |
| 152 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g
'` |
| 153 ;; |
| 154 esac |
| 155 |
| 141 # Note: order is significant - the case branches are not exclusive. | 156 # Note: order is significant - the case branches are not exclusive. |
| 142 | 157 |
| 143 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | 158 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in |
| 144 *:NetBSD:*:*) | 159 *:NetBSD:*:*) |
| 145 # NetBSD (nbsd) targets should (where applicable) match one or | 160 # NetBSD (nbsd) targets should (where applicable) match one or |
| 146 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, | 161 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, |
| 147 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently | 162 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently |
| 148 # switched to ELF, *-*-netbsd* would select the old | 163 # switched to ELF, *-*-netbsd* would select the old |
| 149 # object file format. This provides both forward | 164 # object file format. This provides both forward |
| 150 # compatibility and a consistent mechanism for selecting the | 165 # compatibility and a consistent mechanism for selecting the |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 ;; | 208 ;; |
| 194 *) | 209 *) |
| 195 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | 210 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` |
| 196 ;; | 211 ;; |
| 197 esac | 212 esac |
| 198 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: | 213 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: |
| 199 # contains redundant information, the shorter form: | 214 # contains redundant information, the shorter form: |
| 200 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. | 215 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
| 201 echo "${machine}-${os}${release}" | 216 echo "${machine}-${os}${release}" |
| 202 exit ;; | 217 exit ;; |
| 218 *:Bitrig:*:*) |
| 219 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` |
| 220 echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} |
| 221 exit ;; |
| 203 *:OpenBSD:*:*) | 222 *:OpenBSD:*:*) |
| 204 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` | 223 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` |
| 205 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} | 224 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} |
| 206 exit ;; | 225 exit ;; |
| 207 *:ekkoBSD:*:*) | 226 *:ekkoBSD:*:*) |
| 208 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} | 227 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} |
| 209 exit ;; | 228 exit ;; |
| 210 *:SolidBSD:*:*) | 229 *:SolidBSD:*:*) |
| 211 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} | 230 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} |
| 212 exit ;; | 231 exit ;; |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 exit ;; | 314 exit ;; |
| 296 *:z/VM:*:*) | 315 *:z/VM:*:*) |
| 297 echo s390-ibm-zvmoe | 316 echo s390-ibm-zvmoe |
| 298 exit ;; | 317 exit ;; |
| 299 *:OS400:*:*) | 318 *:OS400:*:*) |
| 300 echo powerpc-ibm-os400 | 319 echo powerpc-ibm-os400 |
| 301 exit ;; | 320 exit ;; |
| 302 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) | 321 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
| 303 echo arm-acorn-riscix${UNAME_RELEASE} | 322 echo arm-acorn-riscix${UNAME_RELEASE} |
| 304 exit ;; | 323 exit ;; |
| 305 arm:riscos:*:*|arm:RISCOS:*:*) | 324 arm*:riscos:*:*|arm*:RISCOS:*:*) |
| 306 echo arm-unknown-riscos | 325 echo arm-unknown-riscos |
| 307 exit ;; | 326 exit ;; |
| 308 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) | 327 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) |
| 309 echo hppa1.1-hitachi-hiuxmpp | 328 echo hppa1.1-hitachi-hiuxmpp |
| 310 exit ;; | 329 exit ;; |
| 311 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) | 330 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) |
| 312 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. | 331 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. |
| 313 if test "`(/bin/universe) 2>/dev/null`" = att ; then | 332 if test "`(/bin/universe) 2>/dev/null`" = att ; then |
| 314 echo pyramid-pyramid-sysv3 | 333 echo pyramid-pyramid-sysv3 |
| 315 else | 334 else |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 echo rs6000-ibm-aix3.2 | 572 echo rs6000-ibm-aix3.2 |
| 554 fi | 573 fi |
| 555 exit ;; | 574 exit ;; |
| 556 *:AIX:*:[4567]) | 575 *:AIX:*:[4567]) |
| 557 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk
'{ print $1 }'` | 576 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk
'{ print $1 }'` |
| 558 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; t
hen | 577 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; t
hen |
| 559 IBM_ARCH=rs6000 | 578 IBM_ARCH=rs6000 |
| 560 else | 579 else |
| 561 IBM_ARCH=powerpc | 580 IBM_ARCH=powerpc |
| 562 fi | 581 fi |
| 563 » if [ -x /usr/bin/oslevel ] ; then | 582 » if [ -x /usr/bin/lslpp ] ; then |
| 564 » » IBM_REV=`/usr/bin/oslevel` | 583 » » IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | |
| 584 » » » awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` |
| 565 else | 585 else |
| 566 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} | 586 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} |
| 567 fi | 587 fi |
| 568 echo ${IBM_ARCH}-ibm-aix${IBM_REV} | 588 echo ${IBM_ARCH}-ibm-aix${IBM_REV} |
| 569 exit ;; | 589 exit ;; |
| 570 *:AIX:*:*) | 590 *:AIX:*:*) |
| 571 echo rs6000-ibm-aix | 591 echo rs6000-ibm-aix |
| 572 exit ;; | 592 exit ;; |
| 573 ibmrt:4.4BSD:*|romp-ibm:BSD:*) | 593 ibmrt:4.4BSD:*|romp-ibm:BSD:*) |
| 574 echo romp-ibm-bsd4.4 | 594 echo romp-ibm-bsd4.4 |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 794 case ${UNAME_PROCESSOR} in | 814 case ${UNAME_PROCESSOR} in |
| 795 amd64) | 815 amd64) |
| 796 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(]
.*//'` ;; | 816 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(]
.*//'` ;; |
| 797 *) | 817 *) |
| 798 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|se
d -e 's/[-(].*//'` ;; | 818 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|se
d -e 's/[-(].*//'` ;; |
| 799 esac | 819 esac |
| 800 exit ;; | 820 exit ;; |
| 801 i*:CYGWIN*:*) | 821 i*:CYGWIN*:*) |
| 802 echo ${UNAME_MACHINE}-pc-cygwin | 822 echo ${UNAME_MACHINE}-pc-cygwin |
| 803 exit ;; | 823 exit ;; |
| 824 *:MINGW64*:*) |
| 825 echo ${UNAME_MACHINE}-pc-mingw64 |
| 826 exit ;; |
| 804 *:MINGW*:*) | 827 *:MINGW*:*) |
| 805 echo ${UNAME_MACHINE}-pc-mingw32 | 828 echo ${UNAME_MACHINE}-pc-mingw32 |
| 806 exit ;; | 829 exit ;; |
| 807 i*:MSYS*:*) | 830 *:MSYS*:*) |
| 808 echo ${UNAME_MACHINE}-pc-msys | 831 echo ${UNAME_MACHINE}-pc-msys |
| 809 exit ;; | 832 exit ;; |
| 810 i*:windows32*:*) | 833 i*:windows32*:*) |
| 811 # uname -m includes "-pc" on this system. | 834 # uname -m includes "-pc" on this system. |
| 812 echo ${UNAME_MACHINE}-mingw32 | 835 echo ${UNAME_MACHINE}-mingw32 |
| 813 exit ;; | 836 exit ;; |
| 814 i*:PW*:*) | 837 i*:PW*:*) |
| 815 echo ${UNAME_MACHINE}-pc-pw32 | 838 echo ${UNAME_MACHINE}-pc-pw32 |
| 816 exit ;; | 839 exit ;; |
| 817 *:Interix*:*) | 840 *:Interix*:*) |
| (...skipping 27 matching lines...) Expand all Loading... |
| 845 echo x86_64-unknown-cygwin | 868 echo x86_64-unknown-cygwin |
| 846 exit ;; | 869 exit ;; |
| 847 p*:CYGWIN*:*) | 870 p*:CYGWIN*:*) |
| 848 echo powerpcle-unknown-cygwin | 871 echo powerpcle-unknown-cygwin |
| 849 exit ;; | 872 exit ;; |
| 850 prep*:SunOS:5.*:*) | 873 prep*:SunOS:5.*:*) |
| 851 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'
` | 874 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'
` |
| 852 exit ;; | 875 exit ;; |
| 853 *:GNU:*:*) | 876 *:GNU:*:*) |
| 854 # the GNU system | 877 # the GNU system |
| 855 » echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNA
ME_RELEASE}|sed -e 's,/.*$,,'` | 878 » echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo $
{UNAME_RELEASE}|sed -e 's,/.*$,,'` |
| 856 exit ;; | 879 exit ;; |
| 857 *:GNU/*:*:*) | 880 *:GNU/*:*:*) |
| 858 # other systems with GNU libc and userland | 881 # other systems with GNU libc and userland |
| 859 » echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,'
| tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu | 882 » echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,'
| tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} |
| 860 exit ;; | 883 exit ;; |
| 861 i*86:Minix:*:*) | 884 i*86:Minix:*:*) |
| 862 echo ${UNAME_MACHINE}-pc-minix | 885 echo ${UNAME_MACHINE}-pc-minix |
| 863 exit ;; | 886 exit ;; |
| 864 aarch64:Linux:*:*) | 887 aarch64:Linux:*:*) |
| 865 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 888 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 866 exit ;; | 889 exit ;; |
| 867 aarch64_be:Linux:*:*) | 890 aarch64_be:Linux:*:*) |
| 868 UNAME_MACHINE=aarch64_be | 891 UNAME_MACHINE=aarch64_be |
| 869 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 892 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 870 exit ;; | 893 exit ;; |
| 871 alpha:Linux:*:*) | 894 alpha:Linux:*:*) |
| 872 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in | 895 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
| 873 EV5) UNAME_MACHINE=alphaev5 ;; | 896 EV5) UNAME_MACHINE=alphaev5 ;; |
| 874 EV56) UNAME_MACHINE=alphaev56 ;; | 897 EV56) UNAME_MACHINE=alphaev56 ;; |
| 875 PCA56) UNAME_MACHINE=alphapca56 ;; | 898 PCA56) UNAME_MACHINE=alphapca56 ;; |
| 876 PCA57) UNAME_MACHINE=alphapca56 ;; | 899 PCA57) UNAME_MACHINE=alphapca56 ;; |
| 877 EV6) UNAME_MACHINE=alphaev6 ;; | 900 EV6) UNAME_MACHINE=alphaev6 ;; |
| 878 EV67) UNAME_MACHINE=alphaev67 ;; | 901 EV67) UNAME_MACHINE=alphaev67 ;; |
| 879 EV68*) UNAME_MACHINE=alphaev68 ;; | 902 EV68*) UNAME_MACHINE=alphaev68 ;; |
| 880 esac | 903 esac |
| 881 objdump --private-headers /bin/sh | grep -q ld.so.1 | 904 objdump --private-headers /bin/sh | grep -q ld.so.1 |
| 882 » if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi | 905 » if test "$?" = 0 ; then LIBC="gnulibc1" ; fi |
| 883 » echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} | 906 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 907 » exit ;; |
| 908 arc:Linux:*:* | arceb:Linux:*:*) |
| 909 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 884 exit ;; | 910 exit ;; |
| 885 arm*:Linux:*:*) | 911 arm*:Linux:*:*) |
| 886 eval $set_cc_for_build | 912 eval $set_cc_for_build |
| 887 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | 913 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
| 888 | grep -q __ARM_EABI__ | 914 | grep -q __ARM_EABI__ |
| 889 then | 915 then |
| 890 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 916 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 891 else | 917 else |
| 892 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | 918 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ |
| 893 | grep -q __ARM_PCS_VFP | 919 | grep -q __ARM_PCS_VFP |
| 894 then | 920 then |
| 895 » » echo ${UNAME_MACHINE}-unknown-linux-gnueabi | 921 » » echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi |
| 896 else | 922 else |
| 897 » » echo ${UNAME_MACHINE}-unknown-linux-gnueabihf | 923 » » echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf |
| 898 fi | 924 fi |
| 899 fi | 925 fi |
| 900 exit ;; | 926 exit ;; |
| 901 avr32*:Linux:*:*) | 927 avr32*:Linux:*:*) |
| 902 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 928 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 903 exit ;; | 929 exit ;; |
| 904 cris:Linux:*:*) | 930 cris:Linux:*:*) |
| 905 » echo ${UNAME_MACHINE}-axis-linux-gnu | 931 » echo ${UNAME_MACHINE}-axis-linux-${LIBC} |
| 906 exit ;; | 932 exit ;; |
| 907 crisv32:Linux:*:*) | 933 crisv32:Linux:*:*) |
| 908 » echo ${UNAME_MACHINE}-axis-linux-gnu | 934 » echo ${UNAME_MACHINE}-axis-linux-${LIBC} |
| 909 exit ;; | 935 exit ;; |
| 910 frv:Linux:*:*) | 936 frv:Linux:*:*) |
| 911 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 937 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 912 exit ;; | 938 exit ;; |
| 913 hexagon:Linux:*:*) | 939 hexagon:Linux:*:*) |
| 914 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 940 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 915 exit ;; | 941 exit ;; |
| 916 i*86:Linux:*:*) | 942 i*86:Linux:*:*) |
| 917 » LIBC=gnu | 943 » echo ${UNAME_MACHINE}-pc-linux-${LIBC} |
| 918 » eval $set_cc_for_build | |
| 919 » sed 's/^» //' << EOF >$dummy.c | |
| 920 » #ifdef __dietlibc__ | |
| 921 » LIBC=dietlibc | |
| 922 » #endif | |
| 923 EOF | |
| 924 » eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` | |
| 925 » echo "${UNAME_MACHINE}-pc-linux-${LIBC}" | |
| 926 exit ;; | 944 exit ;; |
| 927 ia64:Linux:*:*) | 945 ia64:Linux:*:*) |
| 928 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 946 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 929 exit ;; | 947 exit ;; |
| 930 m32r*:Linux:*:*) | 948 m32r*:Linux:*:*) |
| 931 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 949 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 932 exit ;; | 950 exit ;; |
| 933 m68*:Linux:*:*) | 951 m68*:Linux:*:*) |
| 934 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 952 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 935 exit ;; | 953 exit ;; |
| 936 mips:Linux:*:* | mips64:Linux:*:*) | 954 mips:Linux:*:* | mips64:Linux:*:*) |
| 937 eval $set_cc_for_build | 955 eval $set_cc_for_build |
| 938 sed 's/^ //' << EOF >$dummy.c | 956 sed 's/^ //' << EOF >$dummy.c |
| 939 #undef CPU | 957 #undef CPU |
| 940 #undef ${UNAME_MACHINE} | 958 #undef ${UNAME_MACHINE} |
| 941 #undef ${UNAME_MACHINE}el | 959 #undef ${UNAME_MACHINE}el |
| 942 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defi
ned(MIPSEL) | 960 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defi
ned(MIPSEL) |
| 943 CPU=${UNAME_MACHINE}el | 961 CPU=${UNAME_MACHINE}el |
| 944 #else | 962 #else |
| 945 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defi
ned(MIPSEB) | 963 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defi
ned(MIPSEB) |
| 946 CPU=${UNAME_MACHINE} | 964 CPU=${UNAME_MACHINE} |
| 947 #else | 965 #else |
| 948 CPU= | 966 CPU= |
| 949 #endif | 967 #endif |
| 950 #endif | 968 #endif |
| 951 EOF | 969 EOF |
| 952 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` | 970 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` |
| 953 » test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } | 971 » test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } |
| 954 ;; | 972 ;; |
| 955 or32:Linux:*:*) | 973 openrisc*:Linux:*:*) |
| 956 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 974 » echo or1k-unknown-linux-${LIBC} |
| 975 » exit ;; |
| 976 or32:Linux:*:* | or1k*:Linux:*:*) |
| 977 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 957 exit ;; | 978 exit ;; |
| 958 padre:Linux:*:*) | 979 padre:Linux:*:*) |
| 959 » echo sparc-unknown-linux-gnu | 980 » echo sparc-unknown-linux-${LIBC} |
| 960 exit ;; | 981 exit ;; |
| 961 parisc64:Linux:*:* | hppa64:Linux:*:*) | 982 parisc64:Linux:*:* | hppa64:Linux:*:*) |
| 962 » echo hppa64-unknown-linux-gnu | 983 » echo hppa64-unknown-linux-${LIBC} |
| 963 exit ;; | 984 exit ;; |
| 964 parisc:Linux:*:* | hppa:Linux:*:*) | 985 parisc:Linux:*:* | hppa:Linux:*:*) |
| 965 # Look for CPU level | 986 # Look for CPU level |
| 966 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in | 987 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
| 967 » PA7*) echo hppa1.1-unknown-linux-gnu ;; | 988 » PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; |
| 968 » PA8*) echo hppa2.0-unknown-linux-gnu ;; | 989 » PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; |
| 969 » *) echo hppa-unknown-linux-gnu ;; | 990 » *) echo hppa-unknown-linux-${LIBC} ;; |
| 970 esac | 991 esac |
| 971 exit ;; | 992 exit ;; |
| 972 ppc64:Linux:*:*) | 993 ppc64:Linux:*:*) |
| 973 » echo powerpc64-unknown-linux-gnu | 994 » echo powerpc64-unknown-linux-${LIBC} |
| 974 exit ;; | 995 exit ;; |
| 975 ppc:Linux:*:*) | 996 ppc:Linux:*:*) |
| 976 » echo powerpc-unknown-linux-gnu | 997 » echo powerpc-unknown-linux-${LIBC} |
| 998 » exit ;; |
| 999 ppc64le:Linux:*:*) |
| 1000 » echo powerpc64le-unknown-linux-${LIBC} |
| 1001 » exit ;; |
| 1002 ppcle:Linux:*:*) |
| 1003 » echo powerpcle-unknown-linux-${LIBC} |
| 977 exit ;; | 1004 exit ;; |
| 978 s390:Linux:*:* | s390x:Linux:*:*) | 1005 s390:Linux:*:* | s390x:Linux:*:*) |
| 979 » echo ${UNAME_MACHINE}-ibm-linux | 1006 » echo ${UNAME_MACHINE}-ibm-linux-${LIBC} |
| 980 exit ;; | 1007 exit ;; |
| 981 sh64*:Linux:*:*) | 1008 sh64*:Linux:*:*) |
| 982 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 1009 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 983 exit ;; | 1010 exit ;; |
| 984 sh*:Linux:*:*) | 1011 sh*:Linux:*:*) |
| 985 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 1012 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 986 exit ;; | 1013 exit ;; |
| 987 sparc:Linux:*:* | sparc64:Linux:*:*) | 1014 sparc:Linux:*:* | sparc64:Linux:*:*) |
| 988 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 1015 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 989 exit ;; | 1016 exit ;; |
| 990 tile*:Linux:*:*) | 1017 tile*:Linux:*:*) |
| 991 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 1018 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 992 exit ;; | 1019 exit ;; |
| 993 vax:Linux:*:*) | 1020 vax:Linux:*:*) |
| 994 » echo ${UNAME_MACHINE}-dec-linux-gnu | 1021 » echo ${UNAME_MACHINE}-dec-linux-${LIBC} |
| 995 exit ;; | 1022 exit ;; |
| 996 x86_64:Linux:*:*) | 1023 x86_64:Linux:*:*) |
| 997 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 1024 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 998 exit ;; | 1025 exit ;; |
| 999 xtensa*:Linux:*:*) | 1026 xtensa*:Linux:*:*) |
| 1000 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 1027 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 1001 exit ;; | 1028 exit ;; |
| 1002 i*86:DYNIX/ptx:4*:*) | 1029 i*86:DYNIX/ptx:4*:*) |
| 1003 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. | 1030 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
| 1004 # earlier versions are messed up and put the nodename in both | 1031 # earlier versions are messed up and put the nodename in both |
| 1005 # sysname and nodename. | 1032 # sysname and nodename. |
| 1006 echo i386-sequent-sysv4 | 1033 echo i386-sequent-sysv4 |
| 1007 exit ;; | 1034 exit ;; |
| 1008 i*86:UNIX_SV:4.2MP:2.*) | 1035 i*86:UNIX_SV:4.2MP:2.*) |
| 1009 # Unixware is an offshoot of SVR4, but it has its own version | 1036 # Unixware is an offshoot of SVR4, but it has its own version |
| 1010 # number series starting with 2... | 1037 # number series starting with 2... |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1194 exit ;; | 1221 exit ;; |
| 1195 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. | 1222 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. |
| 1196 echo powerpc-apple-beos | 1223 echo powerpc-apple-beos |
| 1197 exit ;; | 1224 exit ;; |
| 1198 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. | 1225 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. |
| 1199 echo i586-pc-beos | 1226 echo i586-pc-beos |
| 1200 exit ;; | 1227 exit ;; |
| 1201 BePC:Haiku:*:*) # Haiku running on Intel PC compatible. | 1228 BePC:Haiku:*:*) # Haiku running on Intel PC compatible. |
| 1202 echo i586-pc-haiku | 1229 echo i586-pc-haiku |
| 1203 exit ;; | 1230 exit ;; |
| 1231 x86_64:Haiku:*:*) |
| 1232 echo x86_64-unknown-haiku |
| 1233 exit ;; |
| 1204 SX-4:SUPER-UX:*:*) | 1234 SX-4:SUPER-UX:*:*) |
| 1205 echo sx4-nec-superux${UNAME_RELEASE} | 1235 echo sx4-nec-superux${UNAME_RELEASE} |
| 1206 exit ;; | 1236 exit ;; |
| 1207 SX-5:SUPER-UX:*:*) | 1237 SX-5:SUPER-UX:*:*) |
| 1208 echo sx5-nec-superux${UNAME_RELEASE} | 1238 echo sx5-nec-superux${UNAME_RELEASE} |
| 1209 exit ;; | 1239 exit ;; |
| 1210 SX-6:SUPER-UX:*:*) | 1240 SX-6:SUPER-UX:*:*) |
| 1211 echo sx6-nec-superux${UNAME_RELEASE} | 1241 echo sx6-nec-superux${UNAME_RELEASE} |
| 1212 exit ;; | 1242 exit ;; |
| 1213 SX-7:SUPER-UX:*:*) | 1243 SX-7:SUPER-UX:*:*) |
| 1214 echo sx7-nec-superux${UNAME_RELEASE} | 1244 echo sx7-nec-superux${UNAME_RELEASE} |
| 1215 exit ;; | 1245 exit ;; |
| 1216 SX-8:SUPER-UX:*:*) | 1246 SX-8:SUPER-UX:*:*) |
| 1217 echo sx8-nec-superux${UNAME_RELEASE} | 1247 echo sx8-nec-superux${UNAME_RELEASE} |
| 1218 exit ;; | 1248 exit ;; |
| 1219 SX-8R:SUPER-UX:*:*) | 1249 SX-8R:SUPER-UX:*:*) |
| 1220 echo sx8r-nec-superux${UNAME_RELEASE} | 1250 echo sx8r-nec-superux${UNAME_RELEASE} |
| 1221 exit ;; | 1251 exit ;; |
| 1222 Power*:Rhapsody:*:*) | 1252 Power*:Rhapsody:*:*) |
| 1223 echo powerpc-apple-rhapsody${UNAME_RELEASE} | 1253 echo powerpc-apple-rhapsody${UNAME_RELEASE} |
| 1224 exit ;; | 1254 exit ;; |
| 1225 *:Rhapsody:*:*) | 1255 *:Rhapsody:*:*) |
| 1226 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} | 1256 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} |
| 1227 exit ;; | 1257 exit ;; |
| 1228 *:Darwin:*:*) | 1258 *:Darwin:*:*) |
| 1229 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown | 1259 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
| 1230 » case $UNAME_PROCESSOR in | 1260 » eval $set_cc_for_build |
| 1231 » i386) | 1261 » if test "$UNAME_PROCESSOR" = unknown ; then |
| 1232 » » eval $set_cc_for_build | 1262 » UNAME_PROCESSOR=powerpc |
| 1233 » » if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | 1263 » fi |
| 1234 » » if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif')
| \ | 1264 » if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then |
| 1235 » » (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | 1265 » if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then |
| 1236 » » grep IS_64BIT_ARCH >/dev/null | 1266 » » if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') |
\ |
| 1237 » » then | 1267 » » (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ |
| 1238 » » UNAME_PROCESSOR="x86_64" | 1268 » » grep IS_64BIT_ARCH >/dev/null |
| 1239 » » fi | 1269 » » then |
| 1240 » » fi ;; | 1270 » » case $UNAME_PROCESSOR in |
| 1241 » unknown) UNAME_PROCESSOR=powerpc ;; | 1271 » » » i386) UNAME_PROCESSOR=x86_64 ;; |
| 1242 » esac | 1272 » » » powerpc) UNAME_PROCESSOR=powerpc64 ;; |
| 1273 » » esac |
| 1274 » » fi |
| 1275 » fi |
| 1276 » elif test "$UNAME_PROCESSOR" = i386 ; then |
| 1277 » # Avoid executing cc on OS X 10.9, as it ships with a stub |
| 1278 » # that puts up a graphical alert prompting to install |
| 1279 » # developer tools. Any system running Mac OS X 10.7 or |
| 1280 » # later (Darwin 11 and later) is required to have a 64-bit |
| 1281 » # processor. This is not true of the ARM version of Darwin |
| 1282 » # that Apple uses in portable devices. |
| 1283 » UNAME_PROCESSOR=x86_64 |
| 1284 » fi |
| 1243 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} | 1285 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
| 1244 exit ;; | 1286 exit ;; |
| 1245 *:procnto*:*:* | *:QNX:[0123456789]*:*) | 1287 *:procnto*:*:* | *:QNX:[0123456789]*:*) |
| 1246 UNAME_PROCESSOR=`uname -p` | 1288 UNAME_PROCESSOR=`uname -p` |
| 1247 if test "$UNAME_PROCESSOR" = "x86"; then | 1289 if test "$UNAME_PROCESSOR" = "x86"; then |
| 1248 UNAME_PROCESSOR=i386 | 1290 UNAME_PROCESSOR=i386 |
| 1249 UNAME_MACHINE=pc | 1291 UNAME_MACHINE=pc |
| 1250 fi | 1292 fi |
| 1251 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} | 1293 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} |
| 1252 exit ;; | 1294 exit ;; |
| 1253 *:QNX:*:4*) | 1295 *:QNX:*:4*) |
| 1254 echo i386-pc-qnx | 1296 echo i386-pc-qnx |
| 1255 exit ;; | 1297 exit ;; |
| 1256 NEO-?:NONSTOP_KERNEL:*:*) | 1298 NEO-?:NONSTOP_KERNEL:*:*) |
| 1257 echo neo-tandem-nsk${UNAME_RELEASE} | 1299 echo neo-tandem-nsk${UNAME_RELEASE} |
| 1258 exit ;; | 1300 exit ;; |
| 1259 NSE-?:NONSTOP_KERNEL:*:*) | 1301 NSE-*:NONSTOP_KERNEL:*:*) |
| 1260 echo nse-tandem-nsk${UNAME_RELEASE} | 1302 echo nse-tandem-nsk${UNAME_RELEASE} |
| 1261 exit ;; | 1303 exit ;; |
| 1262 NSR-?:NONSTOP_KERNEL:*:*) | 1304 NSR-?:NONSTOP_KERNEL:*:*) |
| 1263 echo nsr-tandem-nsk${UNAME_RELEASE} | 1305 echo nsr-tandem-nsk${UNAME_RELEASE} |
| 1264 exit ;; | 1306 exit ;; |
| 1265 *:NonStop-UX:*:*) | 1307 *:NonStop-UX:*:*) |
| 1266 echo mips-compaq-nonstopux | 1308 echo mips-compaq-nonstopux |
| 1267 exit ;; | 1309 exit ;; |
| 1268 BS2000:POSIX*:*:*) | 1310 BS2000:POSIX*:*:*) |
| 1269 echo bs2000-siemens-sysv | 1311 echo bs2000-siemens-sysv |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1323 echo ${UNAME_MACHINE}-pc-rdos | 1365 echo ${UNAME_MACHINE}-pc-rdos |
| 1324 exit ;; | 1366 exit ;; |
| 1325 i*86:AROS:*:*) | 1367 i*86:AROS:*:*) |
| 1326 echo ${UNAME_MACHINE}-pc-aros | 1368 echo ${UNAME_MACHINE}-pc-aros |
| 1327 exit ;; | 1369 exit ;; |
| 1328 x86_64:VMkernel:*:*) | 1370 x86_64:VMkernel:*:*) |
| 1329 echo ${UNAME_MACHINE}-unknown-esx | 1371 echo ${UNAME_MACHINE}-unknown-esx |
| 1330 exit ;; | 1372 exit ;; |
| 1331 esac | 1373 esac |
| 1332 | 1374 |
| 1333 #echo '(No uname command or uname output not recognized.)' 1>&2 | |
| 1334 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 | |
| 1335 | |
| 1336 eval $set_cc_for_build | |
| 1337 cat >$dummy.c <<EOF | |
| 1338 #ifdef _SEQUENT_ | |
| 1339 # include <sys/types.h> | |
| 1340 # include <sys/utsname.h> | |
| 1341 #endif | |
| 1342 main () | |
| 1343 { | |
| 1344 #if defined (sony) | |
| 1345 #if defined (MIPSEB) | |
| 1346 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, | |
| 1347 I don't know.... */ | |
| 1348 printf ("mips-sony-bsd\n"); exit (0); | |
| 1349 #else | |
| 1350 #include <sys/param.h> | |
| 1351 printf ("m68k-sony-newsos%s\n", | |
| 1352 #ifdef NEWSOS4 | |
| 1353 "4" | |
| 1354 #else | |
| 1355 "" | |
| 1356 #endif | |
| 1357 ); exit (0); | |
| 1358 #endif | |
| 1359 #endif | |
| 1360 | |
| 1361 #if defined (__arm) && defined (__acorn) && defined (__unix) | |
| 1362 printf ("arm-acorn-riscix\n"); exit (0); | |
| 1363 #endif | |
| 1364 | |
| 1365 #if defined (hp300) && !defined (hpux) | |
| 1366 printf ("m68k-hp-bsd\n"); exit (0); | |
| 1367 #endif | |
| 1368 | |
| 1369 #if defined (NeXT) | |
| 1370 #if !defined (__ARCHITECTURE__) | |
| 1371 #define __ARCHITECTURE__ "m68k" | |
| 1372 #endif | |
| 1373 int version; | |
| 1374 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; | |
| 1375 if (version < 4) | |
| 1376 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); | |
| 1377 else | |
| 1378 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); | |
| 1379 exit (0); | |
| 1380 #endif | |
| 1381 | |
| 1382 #if defined (MULTIMAX) || defined (n16) | |
| 1383 #if defined (UMAXV) | |
| 1384 printf ("ns32k-encore-sysv\n"); exit (0); | |
| 1385 #else | |
| 1386 #if defined (CMU) | |
| 1387 printf ("ns32k-encore-mach\n"); exit (0); | |
| 1388 #else | |
| 1389 printf ("ns32k-encore-bsd\n"); exit (0); | |
| 1390 #endif | |
| 1391 #endif | |
| 1392 #endif | |
| 1393 | |
| 1394 #if defined (__386BSD__) | |
| 1395 printf ("i386-pc-bsd\n"); exit (0); | |
| 1396 #endif | |
| 1397 | |
| 1398 #if defined (sequent) | |
| 1399 #if defined (i386) | |
| 1400 printf ("i386-sequent-dynix\n"); exit (0); | |
| 1401 #endif | |
| 1402 #if defined (ns32000) | |
| 1403 printf ("ns32k-sequent-dynix\n"); exit (0); | |
| 1404 #endif | |
| 1405 #endif | |
| 1406 | |
| 1407 #if defined (_SEQUENT_) | |
| 1408 struct utsname un; | |
| 1409 | |
| 1410 uname(&un); | |
| 1411 | |
| 1412 if (strncmp(un.version, "V2", 2) == 0) { | |
| 1413 printf ("i386-sequent-ptx2\n"); exit (0); | |
| 1414 } | |
| 1415 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ | |
| 1416 printf ("i386-sequent-ptx1\n"); exit (0); | |
| 1417 } | |
| 1418 printf ("i386-sequent-ptx\n"); exit (0); | |
| 1419 | |
| 1420 #endif | |
| 1421 | |
| 1422 #if defined (vax) | |
| 1423 # if !defined (ultrix) | |
| 1424 # include <sys/param.h> | |
| 1425 # if defined (BSD) | |
| 1426 # if BSD == 43 | |
| 1427 printf ("vax-dec-bsd4.3\n"); exit (0); | |
| 1428 # else | |
| 1429 # if BSD == 199006 | |
| 1430 printf ("vax-dec-bsd4.3reno\n"); exit (0); | |
| 1431 # else | |
| 1432 printf ("vax-dec-bsd\n"); exit (0); | |
| 1433 # endif | |
| 1434 # endif | |
| 1435 # else | |
| 1436 printf ("vax-dec-bsd\n"); exit (0); | |
| 1437 # endif | |
| 1438 # else | |
| 1439 printf ("vax-dec-ultrix\n"); exit (0); | |
| 1440 # endif | |
| 1441 #endif | |
| 1442 | |
| 1443 #if defined (alliant) && defined (i860) | |
| 1444 printf ("i860-alliant-bsd\n"); exit (0); | |
| 1445 #endif | |
| 1446 | |
| 1447 exit (1); | |
| 1448 } | |
| 1449 EOF | |
| 1450 | |
| 1451 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && | |
| 1452 { echo "$SYSTEM_NAME"; exit; } | |
| 1453 | |
| 1454 # Apollos put the system type in the environment. | |
| 1455 | |
| 1456 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } | |
| 1457 | |
| 1458 # Convex versions that predate uname can use getsysinfo(1) | |
| 1459 | |
| 1460 if [ -x /usr/convex/getsysinfo ] | |
| 1461 then | |
| 1462 case `getsysinfo -f cpu_type` in | |
| 1463 c1*) | |
| 1464 echo c1-convex-bsd | |
| 1465 exit ;; | |
| 1466 c2*) | |
| 1467 if getsysinfo -f scalar_acc | |
| 1468 then echo c32-convex-bsd | |
| 1469 else echo c2-convex-bsd | |
| 1470 fi | |
| 1471 exit ;; | |
| 1472 c34*) | |
| 1473 echo c34-convex-bsd | |
| 1474 exit ;; | |
| 1475 c38*) | |
| 1476 echo c38-convex-bsd | |
| 1477 exit ;; | |
| 1478 c4*) | |
| 1479 echo c4-convex-bsd | |
| 1480 exit ;; | |
| 1481 esac | |
| 1482 fi | |
| 1483 | |
| 1484 cat >&2 <<EOF | 1375 cat >&2 <<EOF |
| 1485 $0: unable to guess system type | 1376 $0: unable to guess system type |
| 1486 | 1377 |
| 1487 This script, last modified $timestamp, has failed to recognize | 1378 This script, last modified $timestamp, has failed to recognize |
| 1488 the operating system you are using. It is advised that you | 1379 the operating system you are using. It is advised that you |
| 1489 download the most up to date version of the config scripts from | 1380 download the most up to date version of the config scripts from |
| 1490 | 1381 |
| 1491 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;h
b=HEAD | 1382 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;h
b=HEAD |
| 1492 and | 1383 and |
| 1493 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=
HEAD | 1384 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=
HEAD |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1521 EOF | 1412 EOF |
| 1522 | 1413 |
| 1523 exit 1 | 1414 exit 1 |
| 1524 | 1415 |
| 1525 # Local variables: | 1416 # Local variables: |
| 1526 # eval: (add-hook 'write-file-hooks 'time-stamp) | 1417 # eval: (add-hook 'write-file-hooks 'time-stamp) |
| 1527 # time-stamp-start: "timestamp='" | 1418 # time-stamp-start: "timestamp='" |
| 1528 # time-stamp-format: "%:y-%02m-%02d" | 1419 # time-stamp-format: "%:y-%02m-%02d" |
| 1529 # time-stamp-end: "'" | 1420 # time-stamp-end: "'" |
| 1530 # End: | 1421 # End: |
| OLD | NEW |