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

Side by Side Diff: configure

Issue 7652: Merge C version of decimal into py3k.
Patch Set: Created 7 years, 11 months 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 6701 matching lines...) Expand 10 before | Expand all | Expand 10 after
6712 cat >>confdefs.h <<_ACEOF 6712 cat >>confdefs.h <<_ACEOF
6713 #define int64_t $ac_cv_c_int64_t 6713 #define int64_t $ac_cv_c_int64_t
6714 _ACEOF 6714 _ACEOF
6715 ;; 6715 ;;
6716 esac 6716 esac
6717 6717
6718 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_defaul t" 6718 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_defaul t"
6719 if test "x$ac_cv_type_ssize_t" = xyes; then : 6719 if test "x$ac_cv_type_ssize_t" = xyes; then :
6720 6720
6721 $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h 6721 $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
6722
6723 fi
6724
6725 ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_include s_default"
6726 if test "x$ac_cv_type___uint128_t" = xyes; then :
6727
6728 $as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h
6722 6729
6723 fi 6730 fi
6724 6731
6725 6732
6726 # Sizes of various common basic types 6733 # Sizes of various common basic types
6727 # ANSI C requires sizeof(char) == 1, so no need to check it 6734 # ANSI C requires sizeof(char) == 1, so no need to check it
6728 # The cast to long int works around a bug in the HP C Compiler 6735 # The cast to long int works around a bug in the HP C Compiler
6729 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6736 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6730 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6737 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6731 # This bug is HP SR number 8606223364. 6738 # This bug is HP SR number 8606223364.
(...skipping 5113 matching lines...) Expand 10 before | Expand all | Expand 10 after
11845 then LIBC=$withval 11852 then LIBC=$withval
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
11847 $as_echo "set LIBC=\"$withval\"" >&6; } 11854 $as_echo "set LIBC=\"$withval\"" >&6; }
11848 else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5 11855 else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5
11849 fi 11856 fi
11850 else 11857 else
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
11852 $as_echo "default LIBC=\"$LIBC\"" >&6; } 11859 $as_echo "default LIBC=\"$LIBC\"" >&6; }
11853 fi 11860 fi
11854 11861
11862
11863 # **************************************
11864 # * Check for gcc x64 inline assembler *
11865 # **************************************
11866
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5
11868 $as_echo_n "checking for x64 gcc inline assembler... " >&6; }
11869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870 /* end confdefs.h. */
11871
11872 int
11873 main ()
11874 {
11875
11876 __asm__ __volatile__ ("movq %rcx, %rax");
11877
11878 ;
11879 return 0;
11880 }
11881 _ACEOF
11882 if ac_fn_c_try_compile "$LINENO"; then :
11883 have_gcc_asm_for_x64=yes
11884 else
11885 have_gcc_asm_for_x64=no
11886 fi
11887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5
11889 $as_echo "$have_gcc_asm_for_x64" >&6; }
11890 if test "$have_gcc_asm_for_x64" = yes
11891 then
11892
11893 $as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h
11894
11895 fi
11855 11896
11856 # ************************************************** 11897 # **************************************************
11857 # * Check for various properties of floating point * 11898 # * Check for various properties of floating point *
11858 # ************************************************** 11899 # **************************************************
11859 11900
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-e ndian IEEE 754 binary64" >&5 11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-e ndian IEEE 754 binary64" >&5
11861 $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } 11902 $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; }
11862 if ${ac_cv_little_endian_double+:} false; then : 11903 if ${ac_cv_little_endian_double+:} false; then :
11863 $as_echo_n "(cached) " >&6 11904 $as_echo_n "(cached) " >&6
11864 else 11905 else
(...skipping 2142 matching lines...) Expand 10 before | Expand all | Expand 10 after
14007 SRCDIRS="Parser Grammar Objects Python Modules Mac" 14048 SRCDIRS="Parser Grammar Objects Python Modules Mac"
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
14009 $as_echo_n "checking for build directories... " >&6; } 14050 $as_echo_n "checking for build directories... " >&6; }
14010 for dir in $SRCDIRS; do 14051 for dir in $SRCDIRS; do
14011 if test ! -d $dir; then 14052 if test ! -d $dir; then
14012 mkdir $dir 14053 mkdir $dir
14013 fi 14054 fi
14014 done 14055 done
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14016 $as_echo "done" >&6; } 14057 $as_echo "done" >&6; }
14058
14059 # Availability of -O2:
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5
14061 $as_echo_n "checking for -O2... " >&6; }
14062 saved_cflags="$CFLAGS"
14063 CFLAGS="-O2"
14064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14065 /* end confdefs.h. */
14066
14067 int
14068 main ()
14069 {
14070
14071
14072 ;
14073 return 0;
14074 }
14075 _ACEOF
14076 if ac_fn_c_try_compile "$LINENO"; then :
14077 have_O2=yes
14078 else
14079 have_O2=no
14080 fi
14081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5
14083 $as_echo "$have_O2" >&6; }
14084 CFLAGS="$saved_cflags"
14085
14086 # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect:
14087 # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memm ove bug" >&5
14089 $as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; }
14090 saved_cflags="$CFLAGS"
14091 CFLAGS="-O2 -D_FORTIFY_SOURCE=2"
14092 if test "$have_O2" = no; then
14093 CFLAGS=""
14094 fi
14095 if test "$cross_compiling" = yes; then :
14096 have_glibc_memmove_bug=undefined
14097 else
14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099 /* end confdefs.h. */
14100
14101 #include <stdio.h>
14102 #include <stdlib.h>
14103 #include <string.h>
14104 void foo(void *p, void *q) { memmove(p, q, 19); }
14105 int main() {
14106 char a[32] = "123456789000000000";
14107 foo(&a[9], a);
14108 if (strcmp(a, "123456789123456789000000000") != 0)
14109 return 1;
14110 foo(a, &a[9]);
14111 if (strcmp(a, "123456789000000000") != 0)
14112 return 1;
14113 return 0;
14114 }
14115
14116 _ACEOF
14117 if ac_fn_c_try_run "$LINENO"; then :
14118 have_glibc_memmove_bug=no
14119 else
14120 have_glibc_memmove_bug=yes
14121 fi
14122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14123 conftest.$ac_objext conftest.beam conftest.$ac_ext
14124 fi
14125
14126 CFLAGS="$saved_cflags"
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5
14128 $as_echo "$have_glibc_memmove_bug" >&6; }
14129 if test "$have_glibc_memmove_bug" = yes; then
14130
14131 $as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h
14132
14133 fi
14134
14135 if test "$have_gcc_asm_for_x87" = yes; then
14136 # Some versions of gcc miscompile inline asm:
14137 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491
14138 # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html
14139 case $CC in
14140 *gcc*)
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-c onst bug" >&5
14142 $as_echo_n "checking for gcc ipa-pure-const bug... " >&6; }
14143 saved_cflags="$CFLAGS"
14144 CFLAGS="-O2"
14145 if test "$cross_compiling" = yes; then :
14146 have_ipa_pure_const_bug=undefined
14147 else
14148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14149 /* end confdefs.h. */
14150
14151 __attribute__((noinline)) int
14152 foo(int *p) {
14153 int r;
14154 asm ( "movl \$6, (%1)\n\t"
14155 "xorl %0, %0\n\t"
14156 : "=r" (r) : "r" (p) : "memory"
14157 );
14158 return r;
14159 }
14160 int main() {
14161 int p = 8;
14162 if ((foo(&p) ? : p) != 6)
14163 return 1;
14164 return 0;
14165 }
14166
14167 _ACEOF
14168 if ac_fn_c_try_run "$LINENO"; then :
14169 have_ipa_pure_const_bug=no
14170 else
14171 have_ipa_pure_const_bug=yes
14172 fi
14173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14174 conftest.$ac_objext conftest.beam conftest.$ac_ext
14175 fi
14176
14177 CFLAGS="$saved_cflags"
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_cons t_bug" >&5
14179 $as_echo "$have_ipa_pure_const_bug" >&6; }
14180 if test "$have_ipa_pure_const_bug" = yes; then
14181
14182 $as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h
14183
14184 fi
14185 ;;
14186 esac
14187 fi
14017 14188
14018 # generate output files 14189 # generate output files
14019 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python. pc" 14190 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python. pc"
14020 14191
14021 ac_config_files="$ac_config_files Modules/ld_so_aix" 14192 ac_config_files="$ac_config_files Modules/ld_so_aix"
14022 14193
14023 cat >confcache <<\_ACEOF 14194 cat >confcache <<\_ACEOF
14024 # This file is a shell script that caches the results of configure 14195 # This file is a shell script that caches the results of configure
14025 # tests run on this system so they can be shared between configure 14196 # tests run on this system so they can be shared between configure
14026 # scripts and configure runs, see configure's option --config-cache. 14197 # scripts and configure runs, see configure's option --config-cache.
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
14557 "*) set x $ac_config_files; shift; ac_config_files=$*;; 14728 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14558 esac 14729 esac
14559 14730
14560 case $ac_config_headers in *" 14731 case $ac_config_headers in *"
14561 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14732 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14562 esac 14733 esac
14563 14734
14564 14735
14565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14566 # Files that config.status was made for. 14737 # Files that config.status was made for.
14567 config_files="`echo $ac_config_files`" 14738 config_files="$ac_config_files"
14568 config_headers="`echo $ac_config_headers`" 14739 config_headers="$ac_config_headers"
14569 14740
14570 _ACEOF 14741 _ACEOF
14571 14742
14572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14573 ac_cs_usage="\ 14744 ac_cs_usage="\
14574 \`$as_me' instantiates files and other configuration actions 14745 \`$as_me' instantiates files and other configuration actions
14575 from templates according to the current configuration. Unless the files 14746 from templates according to the current configuration. Unless the files
14576 and actions are specified as TAGs, all are instantiated by default. 14747 and actions are specified as TAGs, all are instantiated by default.
14577 14748
14578 Usage: $0 [OPTION]... [TAG]... 14749 Usage: $0 [OPTION]... [TAG]...
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
15334 if test ! -f Modules/Setup.local 15505 if test ! -f Modules/Setup.local
15335 then 15506 then
15336 echo "# Edit this file for local setup changes" >Modules/Setup.local 15507 echo "# Edit this file for local setup changes" >Modules/Setup.local
15337 fi 15508 fi
15338 15509
15339 echo "creating Makefile" 15510 echo "creating Makefile"
15340 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ 15511 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
15341 -s Modules Modules/Setup.config \ 15512 -s Modules Modules/Setup.config \
15342 Modules/Setup.local Modules/Setup 15513 Modules/Setup.local Modules/Setup
15343 mv config.c Modules 15514 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+