~ubuntu-branches/ubuntu/karmic/extace/karmic

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Hermann
  • Date: 2008-01-24 10:54:56 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080124105456-zoz60usxbobbkcy2
Tags: 1.9.7-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Change fftw3-dev to libfftw3-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
5
5
#   Inc.
6
6
 
7
 
timestamp='2006-07-02'
 
7
timestamp='2007-03-06'
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
178
161
            arm*) machine=arm-unknown ;;
179
162
            sh3el) machine=shl-unknown ;;
180
163
            sh3eb) machine=sh-unknown ;;
 
164
            sh5el) machine=sh5le-unknown ;;
181
165
            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
182
166
        esac
183
167
        # The Operating System including object format, if it has switched
797
781
    i*:CYGWIN*:*)
798
782
        echo ${UNAME_MACHINE}-pc-cygwin
799
783
        exit ;;
800
 
    i*:MINGW*:*)
 
784
    *:MINGW*:*)
801
785
        echo ${UNAME_MACHINE}-pc-mingw32
802
786
        exit ;;
803
787
    i*:windows32*:*)
807
791
    i*:PW*:*)
808
792
        echo ${UNAME_MACHINE}-pc-pw32
809
793
        exit ;;
810
 
    x86:Interix*:[3456]*)
811
 
        echo i586-pc-interix${UNAME_RELEASE}
812
 
        exit ;;
813
 
    EM64T:Interix*:[3456]*)
814
 
        echo x86_64-unknown-interix${UNAME_RELEASE}
815
 
        exit ;;
 
794
    *:Interix*:[3456]*)
 
795
        case ${UNAME_MACHINE} in
 
796
            x86) 
 
797
                echo i586-pc-interix${UNAME_RELEASE}
 
798
                exit ;;
 
799
            EM64T | authenticamd)
 
800
                echo x86_64-unknown-interix${UNAME_RELEASE}
 
801
                exit ;;
 
802
        esac ;;
816
803
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
817
804
        echo i${UNAME_MACHINE}-pc-mks
818
805
        exit ;;
846
833
        echo ${UNAME_MACHINE}-pc-minix
847
834
        exit ;;
848
835
    arm*:Linux:*:*)
849
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
836
        echo ${UNAME_MACHINE}-unknown-linux-gnu
850
837
        exit ;;
851
838
    avr32*:Linux:*:*)
852
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
839
        echo ${UNAME_MACHINE}-unknown-linux-gnu
853
840
        exit ;;
854
841
    cris:Linux:*:*)
855
 
        echo cris-axis-linux-${LIBC}
 
842
        echo cris-axis-linux-gnu
856
843
        exit ;;
857
844
    crisv32:Linux:*:*)
858
 
        echo crisv32-axis-linux-${LIBC}
 
845
        echo crisv32-axis-linux-gnu
859
846
        exit ;;
860
847
    frv:Linux:*:*)
861
 
        echo frv-unknown-linux-${LIBC}
 
848
        echo frv-unknown-linux-gnu
862
849
        exit ;;
863
850
    ia64:Linux:*:*)
864
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
851
        echo ${UNAME_MACHINE}-unknown-linux-gnu
865
852
        exit ;;
866
853
    m32r*:Linux:*:*)
867
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
854
        echo ${UNAME_MACHINE}-unknown-linux-gnu
868
855
        exit ;;
869
856
    m68*:Linux:*:*)
870
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
857
        echo ${UNAME_MACHINE}-unknown-linux-gnu
871
858
        exit ;;
872
859
    mips:Linux:*:*)
873
860
        eval $set_cc_for_build
890
877
                s: ::g
891
878
                p
892
879
            }'`"
893
 
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
 
880
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
894
881
        ;;
895
882
    mips64:Linux:*:*)
896
883
        eval $set_cc_for_build
913
900
                s: ::g
914
901
                p
915
902
            }'`"
916
 
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
 
903
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
917
904
        ;;
918
905
    or32:Linux:*:*)
919
 
        echo or32-unknown-linux-${LIBC}
 
906
        echo or32-unknown-linux-gnu
920
907
        exit ;;
921
908
    ppc:Linux:*:*)
922
 
        echo powerpc-unknown-linux-${LIBC}
 
909
        echo powerpc-unknown-linux-gnu
923
910
        exit ;;
924
911
    ppc64:Linux:*:*)
925
 
        echo powerpc64-unknown-linux-${LIBC}
 
912
        echo powerpc64-unknown-linux-gnu
926
913
        exit ;;
927
914
    alpha:Linux:*:*)
928
915
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
935
922
          EV68*) UNAME_MACHINE=alphaev68 ;;
936
923
        esac
937
924
        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
938
 
        if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
939
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
925
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
 
926
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
940
927
        exit ;;
941
928
    parisc:Linux:*:* | hppa:Linux:*:*)
942
929
        # Look for CPU level
943
930
        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
944
 
          PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
945
 
          PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
946
 
          *)    echo hppa-unknown-linux-${LIBC} ;;
 
931
          PA7*) echo hppa1.1-unknown-linux-gnu ;;
 
932
          PA8*) echo hppa2.0-unknown-linux-gnu ;;
 
933
          *)    echo hppa-unknown-linux-gnu ;;
947
934
        esac
948
935
        exit ;;
949
936
    parisc64:Linux:*:* | hppa64:Linux:*:*)
950
 
        echo hppa64-unknown-linux-${LIBC}
 
937
        echo hppa64-unknown-linux-gnu
951
938
        exit ;;
952
939
    s390:Linux:*:* | s390x:Linux:*:*)
953
940
        echo ${UNAME_MACHINE}-ibm-linux
954
941
        exit ;;
955
942
    sh64*:Linux:*:*)
956
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
943
        echo ${UNAME_MACHINE}-unknown-linux-gnu
957
944
        exit ;;
958
945
    sh*:Linux:*:*)
959
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
946
        echo ${UNAME_MACHINE}-unknown-linux-gnu
960
947
        exit ;;
961
948
    sparc:Linux:*:* | sparc64:Linux:*:*)
962
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
949
        echo ${UNAME_MACHINE}-unknown-linux-gnu
963
950
        exit ;;
964
951
    vax:Linux:*:*)
965
 
        echo ${UNAME_MACHINE}-dec-linux-${LIBC}
 
952
        echo ${UNAME_MACHINE}-dec-linux-gnu
966
953
        exit ;;
967
954
    x86_64:Linux:*:*)
968
 
        echo x86_64-unknown-linux-${LIBC}
 
955
        echo x86_64-unknown-linux-gnu
 
956
        exit ;;
 
957
    xtensa:Linux:*:*)
 
958
        echo xtensa-unknown-linux-gnu
969
959
        exit ;;
970
960
    i*86:Linux:*:*)
971
961
        # The BFD linker knows what the default object file format is, so
980
970
                                    p'`
981
971
        case "$ld_supported_targets" in
982
972
          elf32-i386)
983
 
                TENTATIVE="${UNAME_MACHINE}-pc-linux-${LIBC}"
 
973
                TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
984
974
                ;;
985
975
          a.out-i386-linux)
986
 
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}aout"
 
976
                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
987
977
                exit ;;
988
978
          coff-i386)
989
 
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}coff"
 
979
                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
990
980
                exit ;;
991
981
          "")
992
982
                # Either a pre-BFD a.out linker (linux-gnuoldld) or
993
983
                # one that does not give us useful --help.
994
 
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}oldld"
 
984
                echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
995
985
                exit ;;
996
986
        esac
997
 
        # This should get integrated into the C code below, but now we hack
998
 
        if [ "$LIBC" != "gnu" ] ; then echo "$TENTATIVE" && exit 0 ; fi
999
987
        # Determine whether the default compiler is a.out or elf
1000
988
        eval $set_cc_for_build
1001
989
        sed 's/^        //' << EOF >$dummy.c
1227
1215
    SX-6:SUPER-UX:*:*)
1228
1216
        echo sx6-nec-superux${UNAME_RELEASE}
1229
1217
        exit ;;
 
1218
    SX-7:SUPER-UX:*:*)
 
1219
        echo sx7-nec-superux${UNAME_RELEASE}
 
1220
        exit ;;
 
1221
    SX-8:SUPER-UX:*:*)
 
1222
        echo sx8-nec-superux${UNAME_RELEASE}
 
1223
        exit ;;
 
1224
    SX-8R:SUPER-UX:*:*)
 
1225
        echo sx8r-nec-superux${UNAME_RELEASE}
 
1226
        exit ;;
1230
1227
    Power*:Rhapsody:*:*)
1231
1228
        echo powerpc-apple-rhapsody${UNAME_RELEASE}
1232
1229
        exit ;;