Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Side by Side Diff: third_party/sqlite/src/config.guess

Issue 694353003: Get `gn gen` to succeed on Windows (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: remove GYP_DEFINES code Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/sqlite/src/art/src_logo.gif ('k') | third_party/sqlite/src/config.sub » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #! /bin/sh 1 #! /bin/sh
2 # Attempt to guess a canonical system name. 2 # Attempt to guess a canonical system name.
3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 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 Free Software Foundation,
5 # Free Software Foundation, Inc. 5 # Inc.
6 6
7 timestamp='2008-01-08' 7 timestamp='2007-07-22'
8 8
9 # This file is free software; you can redistribute it and/or modify it 9 # This file is free software; you can redistribute it and/or modify it
10 # under the terms of the GNU General Public License as published by 10 # under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2 of the License, or 11 # the Free Software Foundation; either version 2 of the License, or
12 # (at your option) any later version. 12 # (at your option) any later version.
13 # 13 #
14 # This program is distributed in the hope that it will be useful, but 14 # This program is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of 15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # General Public License for more details. 17 # General Public License for more details.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 -h, --help print this help, then exit 49 -h, --help print this help, then exit
50 -t, --time-stamp print date of last modification, then exit 50 -t, --time-stamp print date of last modification, then exit
51 -v, --version print version number, then exit 51 -v, --version print version number, then exit
52 52
53 Report bugs and patches to <config-patches@gnu.org>." 53 Report bugs and patches to <config-patches@gnu.org>."
54 54
55 version="\ 55 version="\
56 GNU config.guess ($timestamp) 56 GNU config.guess ($timestamp)
57 57
58 Originally written by Per Bothner. 58 Originally written by Per Bothner.
59 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 59 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
60 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 60 Free Software Foundation, Inc.
61 61
62 This is free software; see the source for copying conditions. There is NO 62 This is free software; see the source for copying conditions. There is NO
63 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 63 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
64 64
65 help=" 65 help="
66 Try \`$me --help' for more information." 66 Try \`$me --help' for more information."
67 67
68 # Parse command line 68 # Parse command line
69 while test $# -gt 0 ; do 69 while test $# -gt 0 ; do
70 case $1 in 70 case $1 in
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 # (ghazi@noc.rutgers.edu 1994-08-24) 132 # (ghazi@noc.rutgers.edu 1994-08-24)
133 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then 133 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
134 PATH=$PATH:/.attbin ; export PATH 134 PATH=$PATH:/.attbin ; export PATH
135 fi 135 fi
136 136
137 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown 137 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
138 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 138 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
139 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown 139 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
140 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 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
142 # Note: order is significant - the case branches are not exclusive. 159 # Note: order is significant - the case branches are not exclusive.
143 160
144 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 161 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
145 *:NetBSD:*:*) 162 *:NetBSD:*:*)
146 # NetBSD (nbsd) targets should (where applicable) match one or 163 # NetBSD (nbsd) targets should (where applicable) match one or
147 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, 164 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
148 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently 165 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
149 # switched to ELF, *-*-netbsd* would select the old 166 # switched to ELF, *-*-netbsd* would select the old
150 # object file format. This provides both forward 167 # object file format. This provides both forward
151 # compatibility and a consistent mechanism for selecting the 168 # compatibility and a consistent mechanism for selecting the
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 echo "$SYSTEM_NAME" 542 echo "$SYSTEM_NAME"
526 else 543 else
527 echo rs6000-ibm-aix3.2.5 544 echo rs6000-ibm-aix3.2.5
528 fi 545 fi
529 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 546 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
530 echo rs6000-ibm-aix3.2.4 547 echo rs6000-ibm-aix3.2.4
531 else 548 else
532 echo rs6000-ibm-aix3.2 549 echo rs6000-ibm-aix3.2
533 fi 550 fi
534 exit ;; 551 exit ;;
535 *:AIX:*:[456]) 552 *:AIX:*:[45])
536 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 553 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
537 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; t hen 554 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; t hen
538 IBM_ARCH=rs6000 555 IBM_ARCH=rs6000
539 else 556 else
540 IBM_ARCH=powerpc 557 IBM_ARCH=powerpc
541 fi 558 fi
542 if [ -x /usr/bin/oslevel ] ; then 559 if [ -x /usr/bin/oslevel ] ; then
543 IBM_REV=`/usr/bin/oslevel` 560 IBM_REV=`/usr/bin/oslevel`
544 else 561 else
545 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 562 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 echo ${UNAME_MACHINE}-pc-pw32 809 echo ${UNAME_MACHINE}-pc-pw32
793 exit ;; 810 exit ;;
794 *:Interix*:[3456]*) 811 *:Interix*:[3456]*)
795 case ${UNAME_MACHINE} in 812 case ${UNAME_MACHINE} in
796 x86) 813 x86)
797 echo i586-pc-interix${UNAME_RELEASE} 814 echo i586-pc-interix${UNAME_RELEASE}
798 exit ;; 815 exit ;;
799 EM64T | authenticamd) 816 EM64T | authenticamd)
800 echo x86_64-unknown-interix${UNAME_RELEASE} 817 echo x86_64-unknown-interix${UNAME_RELEASE}
801 exit ;; 818 exit ;;
802 IA64)
803 echo ia64-unknown-interix${UNAME_RELEASE}
804 exit ;;
805 esac ;; 819 esac ;;
806 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 820 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
807 echo i${UNAME_MACHINE}-pc-mks 821 echo i${UNAME_MACHINE}-pc-mks
808 exit ;; 822 exit ;;
809 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 823 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
810 # How do we know it's Interix rather than the generic POSIX subsystem? 824 # How do we know it's Interix rather than the generic POSIX subsystem?
811 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 825 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
812 # UNAME_MACHINE based on the output of uname instead of i386? 826 # UNAME_MACHINE based on the output of uname instead of i386?
813 echo i586-pc-interix 827 echo i586-pc-interix
814 exit ;; 828 exit ;;
(...skipping 14 matching lines...) Expand all
829 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNA ME_RELEASE}|sed -e 's,/.*$,,'` 843 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNA ME_RELEASE}|sed -e 's,/.*$,,'`
830 exit ;; 844 exit ;;
831 *:GNU/*:*:*) 845 *:GNU/*:*:*)
832 # other systems with GNU libc and userland 846 # other systems with GNU libc and userland
833 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 847 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
834 exit ;; 848 exit ;;
835 i*86:Minix:*:*) 849 i*86:Minix:*:*)
836 echo ${UNAME_MACHINE}-pc-minix 850 echo ${UNAME_MACHINE}-pc-minix
837 exit ;; 851 exit ;;
838 arm*:Linux:*:*) 852 arm*:Linux:*:*)
839 » eval $set_cc_for_build 853 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
840 » if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
841 » | grep -q __ARM_EABI__
842 » then
843 » echo ${UNAME_MACHINE}-unknown-linux-gnu
844 » else
845 » echo ${UNAME_MACHINE}-unknown-linux-gnueabi
846 » fi
847 exit ;; 854 exit ;;
848 avr32*:Linux:*:*) 855 avr32*:Linux:*:*)
849 » echo ${UNAME_MACHINE}-unknown-linux-gnu 856 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
850 exit ;; 857 exit ;;
851 cris:Linux:*:*) 858 cris:Linux:*:*)
852 » echo cris-axis-linux-gnu 859 » echo cris-axis-linux-${LIBC}
853 exit ;; 860 exit ;;
854 crisv32:Linux:*:*) 861 crisv32:Linux:*:*)
855 » echo crisv32-axis-linux-gnu 862 » echo crisv32-axis-linux-${LIBC}
856 exit ;; 863 exit ;;
857 frv:Linux:*:*) 864 frv:Linux:*:*)
858 » echo frv-unknown-linux-gnu 865 » echo frv-unknown-linux-${LIBC}
859 exit ;; 866 exit ;;
860 ia64:Linux:*:*) 867 ia64:Linux:*:*)
861 » echo ${UNAME_MACHINE}-unknown-linux-gnu 868 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
862 exit ;; 869 exit ;;
863 m32r*:Linux:*:*) 870 m32r*:Linux:*:*)
864 » echo ${UNAME_MACHINE}-unknown-linux-gnu 871 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
865 exit ;; 872 exit ;;
866 m68*:Linux:*:*) 873 m68*:Linux:*:*)
867 » echo ${UNAME_MACHINE}-unknown-linux-gnu 874 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
868 exit ;; 875 exit ;;
869 mips:Linux:*:*) 876 mips:Linux:*:*)
870 eval $set_cc_for_build 877 eval $set_cc_for_build
871 sed 's/^ //' << EOF >$dummy.c 878 sed 's/^ //' << EOF >$dummy.c
872 #undef CPU 879 #undef CPU
873 #undef mips 880 #undef mips
874 #undef mipsel 881 #undef mipsel
875 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defi ned(MIPSEL) 882 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defi ned(MIPSEL)
876 CPU=mipsel 883 CPU=mipsel
877 #else 884 #else
878 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defi ned(MIPSEB) 885 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defi ned(MIPSEB)
879 CPU=mips 886 CPU=mips
880 #else 887 #else
881 CPU= 888 CPU=
882 #endif 889 #endif
883 #endif 890 #endif
884 EOF 891 EOF
885 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 892 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
886 /^CPU/{ 893 /^CPU/{
887 s: ::g 894 s: ::g
888 p 895 p
889 }'`" 896 }'`"
890 » test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 897 » test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
891 ;; 898 ;;
892 mips64:Linux:*:*) 899 mips64:Linux:*:*)
893 eval $set_cc_for_build 900 eval $set_cc_for_build
894 sed 's/^ //' << EOF >$dummy.c 901 sed 's/^ //' << EOF >$dummy.c
895 #undef CPU 902 #undef CPU
896 #undef mips64 903 #undef mips64
897 #undef mips64el 904 #undef mips64el
898 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defi ned(MIPSEL) 905 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defi ned(MIPSEL)
899 CPU=mips64el 906 CPU=mips64el
900 #else 907 #else
901 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defi ned(MIPSEB) 908 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defi ned(MIPSEB)
902 CPU=mips64 909 CPU=mips64
903 #else 910 #else
904 CPU= 911 CPU=
905 #endif 912 #endif
906 #endif 913 #endif
907 EOF 914 EOF
908 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 915 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
909 /^CPU/{ 916 /^CPU/{
910 s: ::g 917 s: ::g
911 p 918 p
912 }'`" 919 }'`"
913 » test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 920 » test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
914 ;; 921 ;;
915 or32:Linux:*:*) 922 or32:Linux:*:*)
916 » echo or32-unknown-linux-gnu 923 » echo or32-unknown-linux-${LIBC}
917 exit ;; 924 exit ;;
918 ppc:Linux:*:*) 925 ppc:Linux:*:*)
919 » echo powerpc-unknown-linux-gnu 926 » echo powerpc-unknown-linux-${LIBC}
920 exit ;; 927 exit ;;
921 ppc64:Linux:*:*) 928 ppc64:Linux:*:*)
922 » echo powerpc64-unknown-linux-gnu 929 » echo powerpc64-unknown-linux-${LIBC}
923 exit ;; 930 exit ;;
924 alpha:Linux:*:*) 931 alpha:Linux:*:*)
925 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 932 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
926 EV5) UNAME_MACHINE=alphaev5 ;; 933 EV5) UNAME_MACHINE=alphaev5 ;;
927 EV56) UNAME_MACHINE=alphaev56 ;; 934 EV56) UNAME_MACHINE=alphaev56 ;;
928 PCA56) UNAME_MACHINE=alphapca56 ;; 935 PCA56) UNAME_MACHINE=alphapca56 ;;
929 PCA57) UNAME_MACHINE=alphapca56 ;; 936 PCA57) UNAME_MACHINE=alphapca56 ;;
930 EV6) UNAME_MACHINE=alphaev6 ;; 937 EV6) UNAME_MACHINE=alphaev6 ;;
931 EV67) UNAME_MACHINE=alphaev67 ;; 938 EV67) UNAME_MACHINE=alphaev67 ;;
932 EV68*) UNAME_MACHINE=alphaev68 ;; 939 EV68*) UNAME_MACHINE=alphaev68 ;;
933 esac 940 esac
934 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 941 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
935 » if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 942 » if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
936 » echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 943 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
937 exit ;; 944 exit ;;
938 parisc:Linux:*:* | hppa:Linux:*:*) 945 parisc:Linux:*:* | hppa:Linux:*:*)
939 # Look for CPU level 946 # Look for CPU level
940 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 947 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
941 » PA7*) echo hppa1.1-unknown-linux-gnu ;; 948 » PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
942 » PA8*) echo hppa2.0-unknown-linux-gnu ;; 949 » PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
943 » *) echo hppa-unknown-linux-gnu ;; 950 » *) echo hppa-unknown-linux-${LIBC} ;;
944 esac 951 esac
945 exit ;; 952 exit ;;
946 parisc64:Linux:*:* | hppa64:Linux:*:*) 953 parisc64:Linux:*:* | hppa64:Linux:*:*)
947 » echo hppa64-unknown-linux-gnu 954 » echo hppa64-unknown-linux-${LIBC}
948 exit ;; 955 exit ;;
949 s390:Linux:*:* | s390x:Linux:*:*) 956 s390:Linux:*:* | s390x:Linux:*:*)
950 echo ${UNAME_MACHINE}-ibm-linux 957 echo ${UNAME_MACHINE}-ibm-linux
951 exit ;; 958 exit ;;
952 sh64*:Linux:*:*) 959 sh64*:Linux:*:*)
953 » echo ${UNAME_MACHINE}-unknown-linux-gnu 960 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
954 exit ;; 961 exit ;;
955 sh*:Linux:*:*) 962 sh*:Linux:*:*)
956 » echo ${UNAME_MACHINE}-unknown-linux-gnu 963 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
957 exit ;; 964 exit ;;
958 sparc:Linux:*:* | sparc64:Linux:*:*) 965 sparc:Linux:*:* | sparc64:Linux:*:*)
959 » echo ${UNAME_MACHINE}-unknown-linux-gnu 966 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
960 exit ;; 967 exit ;;
961 vax:Linux:*:*) 968 vax:Linux:*:*)
962 » echo ${UNAME_MACHINE}-dec-linux-gnu 969 » echo ${UNAME_MACHINE}-dec-linux-${LIBC}
963 exit ;; 970 exit ;;
964 x86_64:Linux:*:*) 971 x86_64:Linux:*:*)
965 » echo x86_64-unknown-linux-gnu 972 » echo x86_64-unknown-linux-${LIBC}
966 exit ;; 973 exit ;;
967 xtensa*:Linux:*:*) 974 xtensa:Linux:*:*)
968 » echo ${UNAME_MACHINE}-unknown-linux-gnu 975 » echo xtensa-unknown-linux-${LIBC}
969 exit ;; 976 exit ;;
970 i*86:Linux:*:*) 977 i*86:Linux:*:*)
971 # The BFD linker knows what the default object file format is, so 978 # The BFD linker knows what the default object file format is, so
972 # first see if it will tell us. cd to the root directory to prevent 979 # first see if it will tell us. cd to the root directory to prevent
973 # problems with other programs or directories called `ld' in the path. 980 # problems with other programs or directories called `ld' in the path.
974 # Set LC_ALL=C to ensure ld outputs messages in English. 981 # Set LC_ALL=C to ensure ld outputs messages in English.
975 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ 982 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
976 | sed -ne '/supported targets:/!d 983 | sed -ne '/supported targets:/!d
977 s/[ ][ ]*/ /g 984 s/[ ][ ]*/ /g
978 s/.*supported targets: *// 985 s/.*supported targets: *//
979 s/ .*// 986 s/ .*//
980 p'` 987 p'`
981 case "$ld_supported_targets" in 988 case "$ld_supported_targets" in
982 elf32-i386) 989 elf32-i386)
983 » » TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" 990 » » TENTATIVE="${UNAME_MACHINE}-pc-linux-${LIBC}"
984 ;; 991 ;;
985 a.out-i386-linux) 992 a.out-i386-linux)
986 » » echo "${UNAME_MACHINE}-pc-linux-gnuaout" 993 » » echo "${UNAME_MACHINE}-pc-linux-${LIBC}aout"
987 exit ;; 994 exit ;;
988 coff-i386) 995 coff-i386)
989 » » echo "${UNAME_MACHINE}-pc-linux-gnucoff" 996 » » echo "${UNAME_MACHINE}-pc-linux-${LIBC}coff"
990 exit ;; 997 exit ;;
991 "") 998 "")
992 # Either a pre-BFD a.out linker (linux-gnuoldld) or 999 # Either a pre-BFD a.out linker (linux-gnuoldld) or
993 # one that does not give us useful --help. 1000 # one that does not give us useful --help.
994 » » echo "${UNAME_MACHINE}-pc-linux-gnuoldld" 1001 » » echo "${UNAME_MACHINE}-pc-linux-${LIBC}oldld"
995 exit ;; 1002 exit ;;
996 esac 1003 esac
1004 # This should get integrated into the C code below, but now we hack
1005 if [ "$LIBC" != "gnu" ] ; then echo "$TENTATIVE" && exit 0 ; fi
997 # Determine whether the default compiler is a.out or elf 1006 # Determine whether the default compiler is a.out or elf
998 eval $set_cc_for_build 1007 eval $set_cc_for_build
999 sed 's/^ //' << EOF >$dummy.c 1008 sed 's/^ //' << EOF >$dummy.c
1000 #include <features.h> 1009 #include <features.h>
1001 #ifdef __ELF__ 1010 #ifdef __ELF__
1002 # ifdef __GLIBC__ 1011 # ifdef __GLIBC__
1003 # if __GLIBC__ >= 2 1012 # if __GLIBC__ >= 2
1004 LIBC=gnu 1013 LIBC=gnu
1005 # else 1014 # else
1006 LIBC=gnulibc1 1015 LIBC=gnulibc1
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
1517 EOF 1526 EOF
1518 1527
1519 exit 1 1528 exit 1
1520 1529
1521 # Local variables: 1530 # Local variables:
1522 # eval: (add-hook 'write-file-hooks 'time-stamp) 1531 # eval: (add-hook 'write-file-hooks 'time-stamp)
1523 # time-stamp-start: "timestamp='" 1532 # time-stamp-start: "timestamp='"
1524 # time-stamp-format: "%:y-%02m-%02d" 1533 # time-stamp-format: "%:y-%02m-%02d"
1525 # time-stamp-end: "'" 1534 # time-stamp-end: "'"
1526 # End: 1535 # End:
OLDNEW
« no previous file with comments | « third_party/sqlite/src/art/src_logo.gif ('k') | third_party/sqlite/src/config.sub » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698