Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(169227)

Side by Side Diff: configure

Issue 7652: Merge C version of decimal into py3k.
Patch Set: Created 8 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | configure.in » ('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 # Guess values for system-dependent variables and create Makefiles. 2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for python 3.3. 3 # Generated by GNU Autoconf 2.68 for python 3.3.
4 # 4 #
5 # Report bugs to <http://bugs.python.org/>. 5 # Report bugs to <http://bugs.python.org/>.
6 # 6 #
7 # 7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc. 10 # Foundation, Inc.
(...skipping 1926 matching lines...) Expand 10 before | Expand all | Expand 10 after
1937 $as_echo_n "(cached) " >&6 1937 $as_echo_n "(cached) " >&6
1938 else 1938 else
1939 eval "$3=no" 1939 eval "$3=no"
1940 # Order is important - never check a type that is potentially smaller 1940 # Order is important - never check a type that is potentially smaller
1941 # than half of the expected target width. 1941 # than half of the expected target width.
1942 for ac_type in int$2_t 'int' 'long int' \ 1942 for ac_type in int$2_t 'int' 'long int' \
1943 'long long int' 'short int' 'signed char'; do 1943 'long long int' 'short int' 'signed char'; do
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */ 1945 /* end confdefs.h. */
1946 $ac_includes_default 1946 $ac_includes_default
1947 enum { N = $2 / 2 - 1 };
1948 int 1947 int
1949 main () 1948 main ()
1950 { 1949 {
1951 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1 ) * 2 + 1))]; 1950 static int test_array [1 - 2 * !(enum { N = $2 / 2 - 1 };
1951 » 0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1952 test_array [0] = 0 1952 test_array [0] = 0
1953 1953
1954 ; 1954 ;
1955 return 0; 1955 return 0;
1956 } 1956 }
1957 _ACEOF 1957 _ACEOF
1958 if ac_fn_c_try_compile "$LINENO"; then : 1958 if ac_fn_c_try_compile "$LINENO"; then :
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */ 1960 /* end confdefs.h. */
1961 $ac_includes_default 1961 $ac_includes_default
1962 enum { N = $2 / 2 - 1 };
1963 int 1962 int
1964 main () 1963 main ()
1965 { 1964 {
1966 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 1965 static int test_array [1 - 2 * !(enum { N = $2 / 2 - 1 };
1966 » » ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1967 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 1967 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1968 test_array [0] = 0 1968 test_array [0] = 0
1969 1969
1970 ; 1970 ;
1971 return 0; 1971 return 0;
1972 } 1972 }
1973 _ACEOF 1973 _ACEOF
1974 if ac_fn_c_try_compile "$LINENO"; then : 1974 if ac_fn_c_try_compile "$LINENO"; then :
1975 1975
1976 else 1976 else
(...skipping 4714 matching lines...) Expand 10 before | Expand all | Expand 10 after
6691 cat >>confdefs.h <<_ACEOF 6691 cat >>confdefs.h <<_ACEOF
6692 #define int64_t $ac_cv_c_int64_t 6692 #define int64_t $ac_cv_c_int64_t
6693 _ACEOF 6693 _ACEOF
6694 ;; 6694 ;;
6695 esac 6695 esac
6696 6696
6697 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_defaul t" 6697 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_defaul t"
6698 if test "x$ac_cv_type_ssize_t" = xyes; then : 6698 if test "x$ac_cv_type_ssize_t" = xyes; then :
6699 6699
6700 $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h 6700 $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
6701
6702 fi
6703
6704 ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_include s_default"
6705 if test "x$ac_cv_type___uint128_t" = x""yes; then :
6706
6707 $as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h
6701 6708
6702 fi 6709 fi
6703 6710
6704 6711
6705 # Sizes of various common basic types 6712 # Sizes of various common basic types
6706 # ANSI C requires sizeof(char) == 1, so no need to check it 6713 # ANSI C requires sizeof(char) == 1, so no need to check it
6707 # The cast to long int works around a bug in the HP C Compiler 6714 # The cast to long int works around a bug in the HP C Compiler
6708 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6715 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6709 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6716 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6710 # This bug is HP SR number 8606223364. 6717 # This bug is HP SR number 8606223364.
(...skipping 4993 matching lines...) Expand 10 before | Expand all | Expand 10 after
11704 then LIBC=$withval 11711 then LIBC=$withval
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
11706 $as_echo "set LIBC=\"$withval\"" >&6; } 11713 $as_echo "set LIBC=\"$withval\"" >&6; }
11707 else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5 11714 else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5
11708 fi 11715 fi
11709 else 11716 else
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
11711 $as_echo "default LIBC=\"$LIBC\"" >&6; } 11718 $as_echo "default LIBC=\"$LIBC\"" >&6; }
11712 fi 11719 fi
11713 11720
11721
11722 # **************************************
11723 # * Check for gcc x64 inline assembler *
11724 # **************************************
11725
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5
11727 $as_echo_n "checking for x64 gcc inline assembler... " >&6; }
11728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11729 /* end confdefs.h. */
11730
11731 int
11732 main ()
11733 {
11734
11735 __asm__ __volatile__ ("movq %rcx, %rax");
11736
11737 ;
11738 return 0;
11739 }
11740 _ACEOF
11741 if ac_fn_c_try_compile "$LINENO"; then :
11742 have_gcc_asm_for_x64=yes
11743 else
11744 have_gcc_asm_for_x64=no
11745 fi
11746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5
11748 $as_echo "$have_gcc_asm_for_x64" >&6; }
11749 if test "$have_gcc_asm_for_x64" = yes
11750 then
11751
11752 $as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h
11753
11754 fi
11714 11755
11715 # ************************************************** 11756 # **************************************************
11716 # * Check for various properties of floating point * 11757 # * Check for various properties of floating point *
11717 # ************************************************** 11758 # **************************************************
11718 11759
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-e ndian IEEE 754 binary64" >&5 11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-e ndian IEEE 754 binary64" >&5
11720 $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } 11761 $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; }
11721 if ${ac_cv_little_endian_double+:} false; then : 11762 if ${ac_cv_little_endian_double+:} false; then :
11722 $as_echo_n "(cached) " >&6 11763 $as_echo_n "(cached) " >&6
11723 else 11764 else
(...skipping 2142 matching lines...) Expand 10 before | Expand all | Expand 10 after
13866 SRCDIRS="Parser Grammar Objects Python Modules Mac" 13907 SRCDIRS="Parser Grammar Objects Python Modules Mac"
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
13868 $as_echo_n "checking for build directories... " >&6; } 13909 $as_echo_n "checking for build directories... " >&6; }
13869 for dir in $SRCDIRS; do 13910 for dir in $SRCDIRS; do
13870 if test ! -d $dir; then 13911 if test ! -d $dir; then
13871 mkdir $dir 13912 mkdir $dir
13872 fi 13913 fi
13873 done 13914 done
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13875 $as_echo "done" >&6; } 13916 $as_echo "done" >&6; }
13917
13918 # Availability of -O2:
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5
13920 $as_echo_n "checking for -O2... " >&6; }
13921 saved_cflags="$CFLAGS"
13922 CFLAGS="-O2"
13923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13924 /* end confdefs.h. */
13925
13926 int
13927 main ()
13928 {
13929
13930
13931 ;
13932 return 0;
13933 }
13934 _ACEOF
13935 if ac_fn_c_try_compile "$LINENO"; then :
13936 have_O2=yes
13937 else
13938 have_O2=no
13939 fi
13940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5
13942 $as_echo "$have_O2" >&6; }
13943 CFLAGS="$saved_cflags"
13944
13945 # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect:
13946 # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memm ove bug" >&5
13948 $as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; }
13949 saved_cflags="$CFLAGS"
13950 CFLAGS="-O2 -D_FORTIFY_SOURCE=2"
13951 if test "$have_O2" = no; then
13952 CFLAGS=""
13953 fi
13954 if test "$cross_compiling" = yes; then :
13955 have_glibc_memmove_bug=undefined
13956 else
13957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
13959
13960 #include <stdio.h>
13961 #include <stdlib.h>
13962 #include <string.h>
13963 void foo(void *p, void *q) { memmove(p, q, 19); }
13964 int main() {
13965 char a[32] = "123456789000000000";
13966 foo(&a[9], a);
13967 if (strcmp(a, "123456789123456789000000000") != 0)
13968 return 1;
13969 foo(a, &a[9]);
13970 if (strcmp(a, "123456789000000000") != 0)
13971 return 1;
13972 return 0;
13973 }
13974
13975 _ACEOF
13976 if ac_fn_c_try_run "$LINENO"; then :
13977 have_glibc_memmove_bug=no
13978 else
13979 have_glibc_memmove_bug=yes
13980 fi
13981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13982 conftest.$ac_objext conftest.beam conftest.$ac_ext
13983 fi
13984
13985 CFLAGS="$saved_cflags"
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5
13987 $as_echo "$have_glibc_memmove_bug" >&6; }
13988 if test "$have_glibc_memmove_bug" = yes; then
13989
13990 $as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h
13991
13992 fi
13993
13994 if test "$have_gcc_asm_for_x87" = yes; then
13995 # Some versions of gcc miscompile inline asm:
13996 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491
13997 # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html
13998 case $CC in
13999 *gcc*)
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-c onst bug" >&5
14001 $as_echo_n "checking for gcc ipa-pure-const bug... " >&6; }
14002 saved_cflags="$CFLAGS"
14003 CFLAGS="-O2"
14004 if test "$cross_compiling" = yes; then :
14005 have_ipa_pure_const_bug=undefined
14006 else
14007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14008 /* end confdefs.h. */
14009
14010 __attribute__((noinline)) int
14011 foo(int *p) {
14012 int r;
14013 asm ( "movl \$6, (%1)\n\t"
14014 "xorl %0, %0\n\t"
14015 : "=r" (r) : "r" (p) : "memory"
14016 );
14017 return r;
14018 }
14019 int main() {
14020 int p = 8;
14021 if ((foo(&p) ? : p) != 6)
14022 return 1;
14023 return 0;
14024 }
14025
14026 _ACEOF
14027 if ac_fn_c_try_run "$LINENO"; then :
14028 have_ipa_pure_const_bug=no
14029 else
14030 have_ipa_pure_const_bug=yes
14031 fi
14032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14033 conftest.$ac_objext conftest.beam conftest.$ac_ext
14034 fi
14035
14036 CFLAGS="$saved_cflags"
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_cons t_bug" >&5
14038 $as_echo "$have_ipa_pure_const_bug" >&6; }
14039 if test "$have_ipa_pure_const_bug" = yes; then
14040
14041 $as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h
14042
14043 fi
14044 ;;
14045 esac
14046 fi
13876 14047
13877 # generate output files 14048 # generate output files
13878 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python. pc" 14049 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python. pc"
13879 14050
13880 ac_config_files="$ac_config_files Modules/ld_so_aix" 14051 ac_config_files="$ac_config_files Modules/ld_so_aix"
13881 14052
13882 cat >confcache <<\_ACEOF 14053 cat >confcache <<\_ACEOF
13883 # This file is a shell script that caches the results of configure 14054 # This file is a shell script that caches the results of configure
13884 # tests run on this system so they can be shared between configure 14055 # tests run on this system so they can be shared between configure
13885 # scripts and configure runs, see configure's option --config-cache. 14056 # scripts and configure runs, see configure's option --config-cache.
(...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after
15193 if test ! -f Modules/Setup.local 15364 if test ! -f Modules/Setup.local
15194 then 15365 then
15195 echo "# Edit this file for local setup changes" >Modules/Setup.local 15366 echo "# Edit this file for local setup changes" >Modules/Setup.local
15196 fi 15367 fi
15197 15368
15198 echo "creating Makefile" 15369 echo "creating Makefile"
15199 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ 15370 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
15200 -s Modules Modules/Setup.config \ 15371 -s Modules Modules/Setup.config \
15201 Modules/Setup.local Modules/Setup 15372 Modules/Setup.local Modules/Setup
15202 mv config.c Modules 15373 mv config.c Modules
OLDNEW
« no previous file with comments | « no previous file | configure.in » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+