~ubuntu-branches/ubuntu/trusty/pcre3/trusty

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Package Import Robot
  • Author(s): Mark Baker
  • Date: 2012-09-13 19:58:45 UTC
  • mfrom: (23.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20120913195845-wd12z63sm0b07n59
Tags: 1:8.31-1
* New upstream release
* Applied patch from upstream bugzilla #1287 to fix bug where wrong
  value is in re_nsub in some cases (Closes: #686495)

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
139
139
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
140
140
 
 
141
case "${UNAME_SYSTEM}" in
 
142
Linux|GNU/*)
 
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
        # ifdef __dietlibc__
 
154
        LIBC=dietlibc
 
155
        # else
 
156
        LIBC=gnu
 
157
        # endif
 
158
        #endif
 
159
        EOF
 
160
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
 
161
        ;;
 
162
esac
 
163
 
141
164
# Note: order is significant - the case branches are not exclusive.
142
165
 
143
166
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
852
875
        exit ;;
853
876
    *:GNU:*:*)
854
877
        # the GNU system
855
 
        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
 
878
        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
856
879
        exit ;;
857
880
    *:GNU/*:*:*)
858
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
883
        exit ;;
861
884
    i*86:Minix:*:*)
862
885
        echo ${UNAME_MACHINE}-pc-minix
863
886
        exit ;;
864
887
    aarch64:Linux:*:*)
865
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
888
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
866
889
        exit ;;
867
890
    aarch64_be:Linux:*:*)
868
891
        UNAME_MACHINE=aarch64_be
869
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
892
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
870
893
        exit ;;
871
894
    alpha:Linux:*:*)
872
895
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
879
902
          EV68*) UNAME_MACHINE=alphaev68 ;;
880
903
        esac
881
904
        objdump --private-headers /bin/sh | grep -q ld.so.1
882
 
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
883
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
 
905
        if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
 
906
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
884
907
        exit ;;
885
908
    arm*:Linux:*:*)
886
909
        eval $set_cc_for_build
887
910
        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
888
911
            | grep -q __ARM_EABI__
889
912
        then
890
 
            echo ${UNAME_MACHINE}-unknown-linux-gnu
 
913
            echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
891
914
        else
892
915
            if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
893
916
                | grep -q __ARM_PCS_VFP
894
917
            then
895
 
                echo ${UNAME_MACHINE}-unknown-linux-gnueabi
 
918
                echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
896
919
            else
897
 
                echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
 
920
                echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
898
921
            fi
899
922
        fi
900
923
        exit ;;
901
924
    avr32*:Linux:*:*)
902
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
925
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
903
926
        exit ;;
904
927
    cris:Linux:*:*)
905
 
        echo ${UNAME_MACHINE}-axis-linux-gnu
 
928
        echo ${UNAME_MACHINE}-axis-linux-${LIBC}
906
929
        exit ;;
907
930
    crisv32:Linux:*:*)
908
 
        echo ${UNAME_MACHINE}-axis-linux-gnu
 
931
        echo ${UNAME_MACHINE}-axis-linux-${LIBC}
909
932
        exit ;;
910
933
    frv:Linux:*:*)
911
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
934
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
912
935
        exit ;;
913
936
    hexagon:Linux:*:*)
914
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
937
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
915
938
        exit ;;
916
939
    i*86:Linux:*:*)
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}"
 
940
        echo ${UNAME_MACHINE}-pc-linux-${LIBC}
926
941
        exit ;;
927
942
    ia64:Linux:*:*)
928
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
943
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
929
944
        exit ;;
930
945
    m32r*:Linux:*:*)
931
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
946
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
932
947
        exit ;;
933
948
    m68*:Linux:*:*)
934
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
949
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
935
950
        exit ;;
936
951
    mips:Linux:*:* | mips64:Linux:*:*)
937
952
        eval $set_cc_for_build
950
965
        #endif
951
966
EOF
952
967
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
953
 
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
 
968
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
954
969
        ;;
955
970
    or32:Linux:*:*)
956
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
971
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
957
972
        exit ;;
958
973
    padre:Linux:*:*)
959
 
        echo sparc-unknown-linux-gnu
 
974
        echo sparc-unknown-linux-${LIBC}
960
975
        exit ;;
961
976
    parisc64:Linux:*:* | hppa64:Linux:*:*)
962
 
        echo hppa64-unknown-linux-gnu
 
977
        echo hppa64-unknown-linux-${LIBC}
963
978
        exit ;;
964
979
    parisc:Linux:*:* | hppa:Linux:*:*)
965
980
        # Look for CPU level
966
981
        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
967
 
          PA7*) echo hppa1.1-unknown-linux-gnu ;;
968
 
          PA8*) echo hppa2.0-unknown-linux-gnu ;;
969
 
          *)    echo hppa-unknown-linux-gnu ;;
 
982
          PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
 
983
          PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
 
984
          *)    echo hppa-unknown-linux-${LIBC} ;;
970
985
        esac
971
986
        exit ;;
972
987
    ppc64:Linux:*:*)
973
 
        echo powerpc64-unknown-linux-gnu
 
988
        echo powerpc64-unknown-linux-${LIBC}
974
989
        exit ;;
975
990
    ppc:Linux:*:*)
976
 
        echo powerpc-unknown-linux-gnu
 
991
        echo powerpc-unknown-linux-${LIBC}
977
992
        exit ;;
978
993
    s390:Linux:*:* | s390x:Linux:*:*)
979
994
        echo ${UNAME_MACHINE}-ibm-linux
980
995
        exit ;;
981
996
    sh64*:Linux:*:*)
982
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
997
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
983
998
        exit ;;
984
999
    sh*:Linux:*:*)
985
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
1000
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
986
1001
        exit ;;
987
1002
    sparc:Linux:*:* | sparc64:Linux:*:*)
988
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
1003
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
989
1004
        exit ;;
990
1005
    tile*:Linux:*:*)
991
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
1006
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
992
1007
        exit ;;
993
1008
    vax:Linux:*:*)
994
 
        echo ${UNAME_MACHINE}-dec-linux-gnu
 
1009
        echo ${UNAME_MACHINE}-dec-linux-${LIBC}
995
1010
        exit ;;
996
1011
    x86_64:Linux:*:*)
997
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
1012
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
998
1013
        exit ;;
999
1014
    xtensa*:Linux:*:*)
1000
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
1015
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1001
1016
        exit ;;
1002
1017
    i*86:DYNIX/ptx:4*:*)
1003
1018
        # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.