~ubuntu-branches/ubuntu/trusty/patch/trusty-security

« back to all changes in this revision

Viewing changes to build-aux/config.guess

  • Committer: Package Import Robot
  • Author(s): Christoph Berg
  • Date: 2013-01-03 17:34:45 UTC
  • mto: (6.1.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20130103173445-5vf8qmnfgd7ug67h
Tags: upstream-2.7.1
ImportĀ upstreamĀ versionĀ 2.7.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# Attempt to guess a canonical system name.
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 Free Software Foundation, Inc.
 
5
#   2011, 2012 Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2011-02-02'
 
7
timestamp='2012-09-25'
8
8
 
9
9
# This file is free software; you can redistribute it and/or modify it
10
10
# under the terms of the GNU General Public License as published by
17
17
# General Public License for more details.
18
18
#
19
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
21
 
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
22
 
# 02110-1301, USA.
 
20
# along with this program; if not, see <http://www.gnu.org/licenses/>.
23
21
#
24
22
# As a special exception to the GNU General Public License, if you
25
23
# distribute this file as part of a program that contains a
57
55
 
58
56
Originally written by Per Bothner.
59
57
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
60
 
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
61
 
Software Foundation, Inc.
 
58
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
 
59
Free Software Foundation, Inc.
62
60
 
63
61
This is free software; see the source for copying conditions.  There is NO
64
62
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
145
143
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
146
144
    *:NetBSD:*:*)
147
145
        # NetBSD (nbsd) targets should (where applicable) match one or
148
 
        # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
 
146
        # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
149
147
        # *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
150
148
        # switched to ELF, *-*-netbsd* would select the old
151
149
        # object file format.  This provides both forward
202
200
        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
203
201
        echo "${machine}-${os}${release}"
204
202
        exit ;;
 
203
    *:Bitrig:*:*)
 
204
        UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
 
205
        echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
 
206
        exit ;;
205
207
    *:OpenBSD:*:*)
206
208
        UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
207
209
        echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
304
306
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
305
307
        echo arm-acorn-riscix${UNAME_RELEASE}
306
308
        exit ;;
307
 
    arm:riscos:*:*|arm:RISCOS:*:*)
 
309
    arm*:riscos:*:*|arm*:RISCOS:*:*)
308
310
        echo arm-unknown-riscos
309
311
        exit ;;
310
312
    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
792
794
        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
793
795
        exit ;;
794
796
    *:FreeBSD:*:*)
795
 
        case ${UNAME_MACHINE} in
796
 
            pc98)
797
 
                echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
797
        UNAME_PROCESSOR=`/usr/bin/uname -p`
 
798
        case ${UNAME_PROCESSOR} in
798
799
            amd64)
799
800
                echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
800
801
            *)
801
 
                echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
802
                echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
802
803
        esac
803
804
        exit ;;
804
805
    i*:CYGWIN*:*)
805
806
        echo ${UNAME_MACHINE}-pc-cygwin
806
807
        exit ;;
 
808
    *:MINGW64*:*)
 
809
        echo ${UNAME_MACHINE}-pc-mingw64
 
810
        exit ;;
807
811
    *:MINGW*:*)
808
812
        echo ${UNAME_MACHINE}-pc-mingw32
809
813
        exit ;;
 
814
    i*:MSYS*:*)
 
815
        echo ${UNAME_MACHINE}-pc-msys
 
816
        exit ;;
810
817
    i*:windows32*:*)
811
818
        # uname -m includes "-pc" on this system.
812
819
        echo ${UNAME_MACHINE}-mingw32
861
868
    i*86:Minix:*:*)
862
869
        echo ${UNAME_MACHINE}-pc-minix
863
870
        exit ;;
 
871
    aarch64:Linux:*:*)
 
872
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
873
        exit ;;
 
874
    aarch64_be:Linux:*:*)
 
875
        UNAME_MACHINE=aarch64_be
 
876
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
877
        exit ;;
864
878
    alpha:Linux:*:*)
865
879
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
866
880
          EV5)   UNAME_MACHINE=alphaev5 ;;
882
896
        then
883
897
            echo ${UNAME_MACHINE}-unknown-linux-gnu
884
898
        else
885
 
            echo ${UNAME_MACHINE}-unknown-linux-gnueabi
 
899
            if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
 
900
                | grep -q __ARM_PCS_VFP
 
901
            then
 
902
                echo ${UNAME_MACHINE}-unknown-linux-gnueabi
 
903
            else
 
904
                echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
 
905
            fi
886
906
        fi
887
907
        exit ;;
888
908
    avr32*:Linux:*:*)
889
909
        echo ${UNAME_MACHINE}-unknown-linux-gnu
890
910
        exit ;;
891
911
    cris:Linux:*:*)
892
 
        echo cris-axis-linux-gnu
 
912
        echo ${UNAME_MACHINE}-axis-linux-gnu
893
913
        exit ;;
894
914
    crisv32:Linux:*:*)
895
 
        echo crisv32-axis-linux-gnu
 
915
        echo ${UNAME_MACHINE}-axis-linux-gnu
896
916
        exit ;;
897
917
    frv:Linux:*:*)
898
 
        echo frv-unknown-linux-gnu
 
918
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
919
        exit ;;
 
920
    hexagon:Linux:*:*)
 
921
        echo ${UNAME_MACHINE}-unknown-linux-gnu
899
922
        exit ;;
900
923
    i*86:Linux:*:*)
901
924
        LIBC=gnu
937
960
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
938
961
        ;;
939
962
    or32:Linux:*:*)
940
 
        echo or32-unknown-linux-gnu
 
963
        echo ${UNAME_MACHINE}-unknown-linux-gnu
941
964
        exit ;;
942
965
    padre:Linux:*:*)
943
966
        echo sparc-unknown-linux-gnu
972
995
        echo ${UNAME_MACHINE}-unknown-linux-gnu
973
996
        exit ;;
974
997
    tile*:Linux:*:*)
975
 
        echo ${UNAME_MACHINE}-tilera-linux-gnu
 
998
        echo ${UNAME_MACHINE}-unknown-linux-gnu
976
999
        exit ;;
977
1000
    vax:Linux:*:*)
978
1001
        echo ${UNAME_MACHINE}-dec-linux-gnu
979
1002
        exit ;;
980
1003
    x86_64:Linux:*:*)
981
 
        echo x86_64-unknown-linux-gnu
 
1004
        echo ${UNAME_MACHINE}-unknown-linux-gnu
982
1005
        exit ;;
983
1006
    xtensa*:Linux:*:*)
984
1007
        echo ${UNAME_MACHINE}-unknown-linux-gnu
1185
1208
    BePC:Haiku:*:*)     # Haiku running on Intel PC compatible.
1186
1209
        echo i586-pc-haiku
1187
1210
        exit ;;
 
1211
    x86_64:Haiku:*:*)
 
1212
        echo x86_64-unknown-haiku
 
1213
        exit ;;
1188
1214
    SX-4:SUPER-UX:*:*)
1189
1215
        echo sx4-nec-superux${UNAME_RELEASE}
1190
1216
        exit ;;
1240
1266
    NEO-?:NONSTOP_KERNEL:*:*)
1241
1267
        echo neo-tandem-nsk${UNAME_RELEASE}
1242
1268
        exit ;;
1243
 
    NSE-?:NONSTOP_KERNEL:*:*)
 
1269
    NSE-*:NONSTOP_KERNEL:*:*)
1244
1270
        echo nse-tandem-nsk${UNAME_RELEASE}
1245
1271
        exit ;;
1246
1272
    NSR-?:NONSTOP_KERNEL:*:*)
1309
1335
    i*86:AROS:*:*)
1310
1336
        echo ${UNAME_MACHINE}-pc-aros
1311
1337
        exit ;;
 
1338
    x86_64:VMkernel:*:*)
 
1339
        echo ${UNAME_MACHINE}-unknown-esx
 
1340
        exit ;;
1312
1341
esac
1313
1342
 
1314
 
#echo '(No uname command or uname output not recognized.)' 1>&2
1315
 
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1316
 
 
1317
1343
eval $set_cc_for_build
1318
1344
cat >$dummy.c <<EOF
1319
1345
#ifdef _SEQUENT_