~ubuntu-branches/debian/sid/pixman/sid

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Package Import Robot
  • Author(s): Julien Cristau
  • Date: 2014-07-13 16:31:06 UTC
  • mfrom: (1.1.28)
  • Revision ID: package-import@ubuntu.com-20140713163106-2872etxtmfcrrx9q
Tags: 0.32.6-1
* New upstream release.
* Bump debhelper compat level to 9.
* Remove Cyril from Uploaders.

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, 2012, 2013 Free Software Foundation, Inc.
 
5
#   2011, 2012 Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2012-12-30'
 
7
timestamp='2012-02-10'
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
11
 
# the Free Software Foundation; either version 3 of the License, or
 
11
# the Free Software Foundation; either version 2 of the License, or
12
12
# (at your option) any later version.
13
13
#
14
14
# This program is distributed in the hope that it will be useful, but
22
22
# As a special exception to the GNU General Public License, if you
23
23
# distribute this file as part of a program that contains a
24
24
# configuration script generated by Autoconf, you may include it under
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").
 
25
# the same distribution terms that you use for the rest of that program.
 
26
 
 
27
 
 
28
# Originally written by Per Bothner.  Please send patches (context
 
29
# diff format) to <config-patches@gnu.org> and include a ChangeLog
 
30
# entry.
28
31
#
29
 
# Originally written by Per Bothner.
 
32
# This script attempts to guess a canonical system name similar to
 
33
# config.sub.  If it succeeds, it prints the system name on stdout, and
 
34
# exits with 0.  Otherwise, it exits with 1.
30
35
#
31
36
# You can get the latest version of this script from:
32
37
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
33
 
#
34
 
# Please send patches with a ChangeLog entry to config-patches@gnu.org.
35
 
 
36
38
 
37
39
me=`echo "$0" | sed -e 's,.*/,,'`
38
40
 
53
55
 
54
56
Originally written by Per Bothner.
55
57
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
56
 
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
57
 
2012, 2013 Free Software Foundation, Inc.
 
58
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
 
59
Free Software Foundation, Inc.
58
60
 
59
61
This is free software; see the source for copying conditions.  There is NO
60
62
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
136
138
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
137
139
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
138
140
 
139
 
case "${UNAME_SYSTEM}" in
140
 
Linux|GNU/*)
141
 
        eval $set_cc_for_build
142
 
        cat <<-EOF > $dummy.c
143
 
        #include <features.h>
144
 
        #ifdef __UCLIBC__
145
 
        # ifdef __UCLIBC_CONFIG_VERSION__
146
 
        LIBC=uclibc __UCLIBC_CONFIG_VERSION__
147
 
        # else
148
 
        LIBC=uclibc
149
 
        # endif
150
 
        #else
151
 
        # ifdef __dietlibc__
152
 
        LIBC=dietlibc
153
 
        # else
154
 
        LIBC=gnu
155
 
        # endif
156
 
        #endif
157
 
        EOF
158
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
159
 
        ;;
160
 
esac
161
 
 
162
141
# Note: order is significant - the case branches are not exclusive.
163
142
 
164
143
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
221
200
        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
222
201
        echo "${machine}-${os}${release}"
223
202
        exit ;;
224
 
    *:Bitrig:*:*)
225
 
        UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
226
 
        echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
227
 
        exit ;;
228
203
    *:OpenBSD:*:*)
229
204
        UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
230
205
        echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
327
302
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
328
303
        echo arm-acorn-riscix${UNAME_RELEASE}
329
304
        exit ;;
330
 
    arm*:riscos:*:*|arm*:RISCOS:*:*)
 
305
    arm:riscos:*:*|arm:RISCOS:*:*)
331
306
        echo arm-unknown-riscos
332
307
        exit ;;
333
308
    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
826
801
    i*:CYGWIN*:*)
827
802
        echo ${UNAME_MACHINE}-pc-cygwin
828
803
        exit ;;
829
 
    *:MINGW64*:*)
830
 
        echo ${UNAME_MACHINE}-pc-mingw64
831
 
        exit ;;
832
804
    *:MINGW*:*)
833
805
        echo ${UNAME_MACHINE}-pc-mingw32
834
806
        exit ;;
880
852
        exit ;;
881
853
    *:GNU:*:*)
882
854
        # the GNU system
883
 
        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
 
855
        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
884
856
        exit ;;
885
857
    *:GNU/*:*:*)
886
858
        # other systems with GNU libc and userland
887
 
        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
 
859
        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
888
860
        exit ;;
889
861
    i*86:Minix:*:*)
890
862
        echo ${UNAME_MACHINE}-pc-minix
891
863
        exit ;;
892
864
    aarch64:Linux:*:*)
893
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
865
        echo ${UNAME_MACHINE}-unknown-linux-gnu
894
866
        exit ;;
895
867
    aarch64_be:Linux:*:*)
896
868
        UNAME_MACHINE=aarch64_be
897
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
869
        echo ${UNAME_MACHINE}-unknown-linux-gnu
898
870
        exit ;;
899
871
    alpha:Linux:*:*)
900
872
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
907
879
          EV68*) UNAME_MACHINE=alphaev68 ;;
908
880
        esac
909
881
        objdump --private-headers /bin/sh | grep -q ld.so.1
910
 
        if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
911
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
882
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
 
883
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
912
884
        exit ;;
913
885
    arm*:Linux:*:*)
914
886
        eval $set_cc_for_build
915
887
        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
916
888
            | grep -q __ARM_EABI__
917
889
        then
918
 
            echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
890
            echo ${UNAME_MACHINE}-unknown-linux-gnu
919
891
        else
920
892
            if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
921
893
                | grep -q __ARM_PCS_VFP
922
894
            then
923
 
                echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
 
895
                echo ${UNAME_MACHINE}-unknown-linux-gnueabi
924
896
            else
925
 
                echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
 
897
                echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
926
898
            fi
927
899
        fi
928
900
        exit ;;
929
901
    avr32*:Linux:*:*)
930
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
902
        echo ${UNAME_MACHINE}-unknown-linux-gnu
931
903
        exit ;;
932
904
    cris:Linux:*:*)
933
 
        echo ${UNAME_MACHINE}-axis-linux-${LIBC}
 
905
        echo ${UNAME_MACHINE}-axis-linux-gnu
934
906
        exit ;;
935
907
    crisv32:Linux:*:*)
936
 
        echo ${UNAME_MACHINE}-axis-linux-${LIBC}
 
908
        echo ${UNAME_MACHINE}-axis-linux-gnu
937
909
        exit ;;
938
910
    frv:Linux:*:*)
939
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
911
        echo ${UNAME_MACHINE}-unknown-linux-gnu
940
912
        exit ;;
941
913
    hexagon:Linux:*:*)
942
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
914
        echo ${UNAME_MACHINE}-unknown-linux-gnu
943
915
        exit ;;
944
916
    i*86:Linux:*:*)
945
 
        echo ${UNAME_MACHINE}-pc-linux-${LIBC}
 
917
        LIBC=gnu
 
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}"
946
926
        exit ;;
947
927
    ia64:Linux:*:*)
948
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
928
        echo ${UNAME_MACHINE}-unknown-linux-gnu
949
929
        exit ;;
950
930
    m32r*:Linux:*:*)
951
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
931
        echo ${UNAME_MACHINE}-unknown-linux-gnu
952
932
        exit ;;
953
933
    m68*:Linux:*:*)
954
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
934
        echo ${UNAME_MACHINE}-unknown-linux-gnu
955
935
        exit ;;
956
936
    mips:Linux:*:* | mips64:Linux:*:*)
957
937
        eval $set_cc_for_build
970
950
        #endif
971
951
EOF
972
952
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
973
 
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
 
953
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
974
954
        ;;
975
955
    or32:Linux:*:*)
976
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
956
        echo ${UNAME_MACHINE}-unknown-linux-gnu
977
957
        exit ;;
978
958
    padre:Linux:*:*)
979
 
        echo sparc-unknown-linux-${LIBC}
 
959
        echo sparc-unknown-linux-gnu
980
960
        exit ;;
981
961
    parisc64:Linux:*:* | hppa64:Linux:*:*)
982
 
        echo hppa64-unknown-linux-${LIBC}
 
962
        echo hppa64-unknown-linux-gnu
983
963
        exit ;;
984
964
    parisc:Linux:*:* | hppa:Linux:*:*)
985
965
        # Look for CPU level
986
966
        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
987
 
          PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
988
 
          PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
989
 
          *)    echo hppa-unknown-linux-${LIBC} ;;
 
967
          PA7*) echo hppa1.1-unknown-linux-gnu ;;
 
968
          PA8*) echo hppa2.0-unknown-linux-gnu ;;
 
969
          *)    echo hppa-unknown-linux-gnu ;;
990
970
        esac
991
971
        exit ;;
992
972
    ppc64:Linux:*:*)
993
 
        echo powerpc64-unknown-linux-${LIBC}
 
973
        echo powerpc64-unknown-linux-gnu
994
974
        exit ;;
995
975
    ppc:Linux:*:*)
996
 
        echo powerpc-unknown-linux-${LIBC}
 
976
        echo powerpc-unknown-linux-gnu
997
977
        exit ;;
998
978
    s390:Linux:*:* | s390x:Linux:*:*)
999
979
        echo ${UNAME_MACHINE}-ibm-linux
1000
980
        exit ;;
1001
981
    sh64*:Linux:*:*)
1002
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
982
        echo ${UNAME_MACHINE}-unknown-linux-gnu
1003
983
        exit ;;
1004
984
    sh*:Linux:*:*)
1005
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
985
        echo ${UNAME_MACHINE}-unknown-linux-gnu
1006
986
        exit ;;
1007
987
    sparc:Linux:*:* | sparc64:Linux:*:*)
1008
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
988
        echo ${UNAME_MACHINE}-unknown-linux-gnu
1009
989
        exit ;;
1010
990
    tile*:Linux:*:*)
1011
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
991
        echo ${UNAME_MACHINE}-unknown-linux-gnu
1012
992
        exit ;;
1013
993
    vax:Linux:*:*)
1014
 
        echo ${UNAME_MACHINE}-dec-linux-${LIBC}
 
994
        echo ${UNAME_MACHINE}-dec-linux-gnu
1015
995
        exit ;;
1016
996
    x86_64:Linux:*:*)
1017
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
997
        echo ${UNAME_MACHINE}-unknown-linux-gnu
1018
998
        exit ;;
1019
999
    xtensa*:Linux:*:*)
1020
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
1000
        echo ${UNAME_MACHINE}-unknown-linux-gnu
1021
1001
        exit ;;
1022
1002
    i*86:DYNIX/ptx:4*:*)
1023
1003
        # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1221
1201
    BePC:Haiku:*:*)     # Haiku running on Intel PC compatible.
1222
1202
        echo i586-pc-haiku
1223
1203
        exit ;;
1224
 
    x86_64:Haiku:*:*)
1225
 
        echo x86_64-unknown-haiku
1226
 
        exit ;;
1227
1204
    SX-4:SUPER-UX:*:*)
1228
1205
        echo sx4-nec-superux${UNAME_RELEASE}
1229
1206
        exit ;;
1279
1256
    NEO-?:NONSTOP_KERNEL:*:*)
1280
1257
        echo neo-tandem-nsk${UNAME_RELEASE}
1281
1258
        exit ;;
1282
 
    NSE-*:NONSTOP_KERNEL:*:*)
 
1259
    NSE-?:NONSTOP_KERNEL:*:*)
1283
1260
        echo nse-tandem-nsk${UNAME_RELEASE}
1284
1261
        exit ;;
1285
1262
    NSR-?:NONSTOP_KERNEL:*:*)
1353
1330
        exit ;;
1354
1331
esac
1355
1332
 
 
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
 
1356
1336
eval $set_cc_for_build
1357
1337
cat >$dummy.c <<EOF
1358
1338
#ifdef _SEQUENT_