~ubuntu-branches/debian/sid/conky/sid

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Cesare Tirabassi
  • Date: 2010-03-28 21:19:51 UTC
  • mfrom: (1.3.1 upstream) (16.1.17 lucid)
  • Revision ID: james.westby@ubuntu.com-20100328211951-ejq536k2r858srli
Tags: 1.8.0-1
* New upstream release:
  - add AF_UNIX socket support
  - fix sigsegv if config file is deleted (LP: #525926)
  - the following debian bugs are closed by this upload:
    + change automake1.10 to automake1.11 (Closes: #550929)
    + hwmon made compatible with kernels >= 2.6.31 (Closes: #556926)
    + text_buffer_size change is well documented (Closes: #519401)
    + fix diskio for not existing devices (Closes: #536557)
    + fix wrong mixer values on some systems (Closes: #540282)
    + fix minor memory leak (Closes: #566524)
    + fix some documentation error re. graphs (Closes: #564518)
    + add -p/--pause startup option (Closes: #513440)
    + fix documentation about mixer values (Closes: #538760)
* This release is based on the Ubuntu package with the following changes
  necessary for Debian (Closes: #536320):
  - change control and rules to build correctly on non-Linux arches
    (Closes: #536326)
  - updated NEWS, descriptions in control and changelog
  - change archive area to contrib
* Change priority of metapackage to extra
* My utmost thanks go to Kapil Hari Paranjape for his packaging work and to
  Luca Falavigna for being so kind to review and sponsor this release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Attempt to guess a canonical system name.
3
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
 
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
5
5
#   Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2008-09-28'
 
7
timestamp='2009-06-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
139
139
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
140
140
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
141
141
 
142
 
if [ "${UNAME_SYSTEM}" = "Linux" ] ; then
143
 
        eval $set_cc_for_build
144
 
        cat << EOF > $dummy.c
145
 
        #include <features.h>
146
 
        #ifdef __UCLIBC__
147
 
        # ifdef __UCLIBC_CONFIG_VERSION__
148
 
        LIBC=uclibc __UCLIBC_CONFIG_VERSION__
149
 
        # else
150
 
        LIBC=uclibc
151
 
        # endif
152
 
        #else
153
 
        LIBC=gnu
154
 
        #endif
155
 
EOF
156
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep LIBC= | sed -e 's: ::g'`
157
 
fi
158
 
 
159
142
# Note: order is significant - the case branches are not exclusive.
160
143
 
161
144
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
187
170
            arm*|i386|m68k|ns32k|sh3*|sparc|vax)
188
171
                eval $set_cc_for_build
189
172
                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
190
 
                        | grep __ELF__ >/dev/null
 
173
                        | grep -q __ELF__
191
174
                then
192
175
                    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
193
176
                    # Return netbsd for either.  FIX?
341
324
        case `/usr/bin/uname -p` in
342
325
            sparc) echo sparc-icl-nx7; exit ;;
343
326
        esac ;;
 
327
    s390x:SunOS:*:*)
 
328
        echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
329
        exit ;;
344
330
    sun4H:SunOS:5.*:*)
345
331
        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
346
332
        exit ;;
348
334
        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
349
335
        exit ;;
350
336
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
351
 
        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
337
        eval $set_cc_for_build
 
338
        SUN_ARCH="i386"
 
339
        # If there is a compiler, see if it is configured for 64-bit objects.
 
340
        # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
 
341
        # This test works for both compilers.
 
342
        if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
 
343
            if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
 
344
                (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
 
345
                grep IS_64BIT_ARCH >/dev/null
 
346
            then
 
347
                SUN_ARCH="x86_64"
 
348
            fi
 
349
        fi
 
350
        echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
352
351
        exit ;;
353
352
    sun4*:SunOS:6*:*)
354
353
        # According to config.sub, this is the proper way to canonicalize
657
656
            # => hppa64-hp-hpux11.23
658
657
 
659
658
            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
660
 
                grep __LP64__ >/dev/null
 
659
                grep -q __LP64__
661
660
            then
662
661
                HP_ARCH="hppa2.0w"
663
662
            else
823
822
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
824
823
        echo i${UNAME_MACHINE}-pc-mks
825
824
        exit ;;
 
825
    8664:Windows_NT:*)
 
826
        echo x86_64-pc-mks
 
827
        exit ;;
826
828
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
827
829
        # How do we know it's Interix rather than the generic POSIX subsystem?
828
830
        # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
857
859
        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
858
860
            | grep -q __ARM_EABI__
859
861
        then
860
 
            echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
862
            echo ${UNAME_MACHINE}-unknown-linux-gnu
861
863
        else
862
 
            echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
 
864
            echo ${UNAME_MACHINE}-unknown-linux-gnueabi
863
865
        fi
864
866
        exit ;;
865
867
    avr32*:Linux:*:*)
866
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
868
        echo ${UNAME_MACHINE}-unknown-linux-gnu
867
869
        exit ;;
868
870
    cris:Linux:*:*)
869
 
        echo cris-axis-linux-${LIBC}
 
871
        echo cris-axis-linux-gnu
870
872
        exit ;;
871
873
    crisv32:Linux:*:*)
872
 
        echo crisv32-axis-linux-${LIBC}
 
874
        echo crisv32-axis-linux-gnu
873
875
        exit ;;
874
876
    frv:Linux:*:*)
875
 
        echo frv-unknown-linux-${LIBC}
 
877
        echo frv-unknown-linux-gnu
876
878
        exit ;;
877
879
    ia64:Linux:*:*)
878
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
880
        echo ${UNAME_MACHINE}-unknown-linux-gnu
879
881
        exit ;;
880
882
    m32r*:Linux:*:*)
881
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
883
        echo ${UNAME_MACHINE}-unknown-linux-gnu
882
884
        exit ;;
883
885
    m68*:Linux:*:*)
884
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
886
        echo ${UNAME_MACHINE}-unknown-linux-gnu
885
887
        exit ;;
886
 
    mips:Linux:*:*)
887
 
        eval $set_cc_for_build
888
 
        sed 's/^        //' << EOF >$dummy.c
889
 
        #undef CPU
890
 
        #undef mips
891
 
        #undef mipsel
892
 
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
893
 
        CPU=mipsel
894
 
        #else
895
 
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
896
 
        CPU=mips
897
 
        #else
898
 
        CPU=
899
 
        #endif
900
 
        #endif
901
 
EOF
902
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
903
 
            /^CPU/{
904
 
                s: ::g
905
 
                p
906
 
            }'`"
907
 
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
908
 
        ;;
909
 
    mips64:Linux:*:*)
910
 
        eval $set_cc_for_build
911
 
        sed 's/^        //' << EOF >$dummy.c
912
 
        #undef CPU
913
 
        #undef mips64
914
 
        #undef mips64el
915
 
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
916
 
        CPU=mips64el
917
 
        #else
918
 
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
919
 
        CPU=mips64
920
 
        #else
921
 
        CPU=
922
 
        #endif
923
 
        #endif
924
 
EOF
925
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
926
 
            /^CPU/{
927
 
                s: ::g
928
 
                p
929
 
            }'`"
930
 
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
 
888
    mips:Linux:*:* | mips64:Linux:*:*)
 
889
        eval $set_cc_for_build
 
890
        sed 's/^        //' << EOF >$dummy.c
 
891
        #undef CPU
 
892
        #undef ${UNAME_MACHINE}
 
893
        #undef ${UNAME_MACHINE}el
 
894
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
 
895
        CPU=${UNAME_MACHINE}el
 
896
        #else
 
897
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
 
898
        CPU=${UNAME_MACHINE}
 
899
        #else
 
900
        CPU=
 
901
        #endif
 
902
        #endif
 
903
EOF
 
904
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
 
905
            /^CPU/{
 
906
                s: ::g
 
907
                p
 
908
            }'`"
 
909
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
931
910
        ;;
932
911
    or32:Linux:*:*)
933
 
        echo or32-unknown-linux-${LIBC}
 
912
        echo or32-unknown-linux-gnu
934
913
        exit ;;
935
914
    ppc:Linux:*:*)
936
 
        echo powerpc-unknown-linux-${LIBC}
 
915
        echo powerpc-unknown-linux-gnu
937
916
        exit ;;
938
917
    ppc64:Linux:*:*)
939
 
        echo powerpc64-unknown-linux-${LIBC}
 
918
        echo powerpc64-unknown-linux-gnu
940
919
        exit ;;
941
920
    alpha:Linux:*:*)
942
921
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
948
927
          EV67)  UNAME_MACHINE=alphaev67 ;;
949
928
          EV68*) UNAME_MACHINE=alphaev68 ;;
950
929
        esac
951
 
        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
952
 
        if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
953
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
930
        objdump --private-headers /bin/sh | grep -q ld.so.1
 
931
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
 
932
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
954
933
        exit ;;
955
934
    padre:Linux:*:*)
956
935
        echo sparc-unknown-linux-gnu
958
937
    parisc:Linux:*:* | hppa:Linux:*:*)
959
938
        # Look for CPU level
960
939
        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
961
 
          PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
962
 
          PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
963
 
          *)    echo hppa-unknown-linux-${LIBC} ;;
 
940
          PA7*) echo hppa1.1-unknown-linux-gnu ;;
 
941
          PA8*) echo hppa2.0-unknown-linux-gnu ;;
 
942
          *)    echo hppa-unknown-linux-gnu ;;
964
943
        esac
965
944
        exit ;;
966
945
    parisc64:Linux:*:* | hppa64:Linux:*:*)
967
 
        echo hppa64-unknown-linux-${LIBC}
 
946
        echo hppa64-unknown-linux-gnu
968
947
        exit ;;
969
948
    s390:Linux:*:* | s390x:Linux:*:*)
970
949
        echo ${UNAME_MACHINE}-ibm-linux
971
950
        exit ;;
972
951
    sh64*:Linux:*:*)
973
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
952
        echo ${UNAME_MACHINE}-unknown-linux-gnu
974
953
        exit ;;
975
954
    sh*:Linux:*:*)
976
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
955
        echo ${UNAME_MACHINE}-unknown-linux-gnu
977
956
        exit ;;
978
957
    sparc:Linux:*:* | sparc64:Linux:*:*)
979
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
958
        echo ${UNAME_MACHINE}-unknown-linux-gnu
980
959
        exit ;;
981
960
    vax:Linux:*:*)
982
 
        echo ${UNAME_MACHINE}-dec-linux-${LIBC}
 
961
        echo ${UNAME_MACHINE}-dec-linux-gnu
983
962
        exit ;;
984
963
    x86_64:Linux:*:*)
985
 
        echo x86_64-unknown-linux-${LIBC}
 
964
        echo x86_64-unknown-linux-gnu
986
965
        exit ;;
987
966
    xtensa*:Linux:*:*)
988
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
967
        echo ${UNAME_MACHINE}-unknown-linux-gnu
989
968
        exit ;;
990
969
    i*86:Linux:*:*)
991
970
        # The BFD linker knows what the default object file format is, so
1000
979
                                    p'`
1001
980
        case "$ld_supported_targets" in
1002
981
          elf32-i386)
1003
 
                TENTATIVE="${UNAME_MACHINE}-pc-linux-${LIBC}"
 
982
                TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
1004
983
                ;;
1005
 
          a.out-i386-linux)
1006
 
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}aout"
1007
 
                exit ;;
1008
 
          "")
1009
 
                # Either a pre-BFD a.out linker (linux-gnuoldld) or
1010
 
                # one that does not give us useful --help.
1011
 
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}oldld"
1012
 
                exit ;;
1013
984
        esac
1014
 
        # This should get integrated into the C code below, but now we hack
1015
 
        if [ "$LIBC" != "gnu" ] ; then echo "$TENTATIVE" && exit 0 ; fi
1016
985
        # Determine whether the default compiler is a.out or elf
1017
986
        eval $set_cc_for_build
1018
987
        sed 's/^        //' << EOF >$dummy.c
1077
1046
    i*86:syllable:*:*)
1078
1047
        echo ${UNAME_MACHINE}-pc-syllable
1079
1048
        exit ;;
1080
 
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
 
1049
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1081
1050
        echo i386-unknown-lynxos${UNAME_RELEASE}
1082
1051
        exit ;;
1083
1052
    i*86:*DOS:*:*)
1121
1090
    pc:*:*:*)
1122
1091
        # Left here for compatibility:
1123
1092
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
1124
 
        # the processor, so we play safe by assuming i386.
1125
 
        echo i386-pc-msdosdjgpp
 
1093
        # the processor, so we play safe by assuming i586.
 
1094
        # Note: whatever this is, it MUST be the same as what config.sub
 
1095
        # prints for the "djgpp" host, or else GDB configury will decide that
 
1096
        # this is a cross-build.
 
1097
        echo i586-pc-msdosdjgpp
1126
1098
        exit ;;
1127
1099
    Intel:Mach:3*:*)
1128
1100
        echo i386-pc-mach3
1160
1132
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1161
1133
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1162
1134
          && { echo i486-ncr-sysv4; exit; } ;;
 
1135
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
 
1136
        OS_REL='.3'
 
1137
        test -r /etc/.relid \
 
1138
            && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
 
1139
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
 
1140
            && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
 
1141
        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
 
1142
            && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
 
1143
        /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
 
1144
            && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1163
1145
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1164
1146
        echo m68k-unknown-lynxos${UNAME_RELEASE}
1165
1147
        exit ;;
1172
1154
    rs6000:LynxOS:2.*:*)
1173
1155
        echo rs6000-unknown-lynxos${UNAME_RELEASE}
1174
1156
        exit ;;
1175
 
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
 
1157
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1176
1158
        echo powerpc-unknown-lynxos${UNAME_RELEASE}
1177
1159
        exit ;;
1178
1160
    SM[BE]S:UNIX_SV:*:*)
1346
1328
    i*86:rdos:*:*)
1347
1329
        echo ${UNAME_MACHINE}-pc-rdos
1348
1330
        exit ;;
 
1331
    i*86:AROS:*:*)
 
1332
        echo ${UNAME_MACHINE}-pc-aros
 
1333
        exit ;;
1349
1334
esac
1350
1335
 
1351
1336
#echo '(No uname command or uname output not recognized.)' 1>&2