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

Delta Between Two Patch Sets: configure.ac

Issue 27659: Check for the existence of crypt()
Left Patch Set: Created 3 years, 2 months ago
Right Patch Set: Created 3 years, 1 month 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 dnl *********************************************** 1 dnl ***********************************************
2 dnl * Please run autoreconf to test your changes! * 2 dnl * Please run autoreconf to test your changes! *
3 dnl *********************************************** 3 dnl ***********************************************
4 4
5 # Set VERSION so we only need to edit in one place (i.e., here) 5 # Set VERSION so we only need to edit in one place (i.e., here)
6 m4_define(PYTHON_VERSION, 3.7) 6 m4_define(PYTHON_VERSION, 3.7)
7 7
8 AC_PREREQ(2.65) 8 AC_PREREQ(2.65)
9 9
10 AC_INIT(python, PYTHON_VERSION, https://bugs.python.org/) 10 AC_INIT(python, PYTHON_VERSION, https://bugs.python.org/)
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 AC_ARG_VAR([MACHDEP], [name for machine-dependent library files]) 372 AC_ARG_VAR([MACHDEP], [name for machine-dependent library files])
373 AC_MSG_CHECKING(MACHDEP) 373 AC_MSG_CHECKING(MACHDEP)
374 if test -z "$MACHDEP" 374 if test -z "$MACHDEP"
375 then 375 then
376 # avoid using uname for cross builds 376 # avoid using uname for cross builds
377 if test "$cross_compiling" = yes; then 377 if test "$cross_compiling" = yes; then
378 # ac_sys_system and ac_sys_release are used for setting 378 # ac_sys_system and ac_sys_release are used for setting
379 # a lot of different things including 'define_xopen_source' 379 # a lot of different things including 'define_xopen_source'
380 # in the case statement below. 380 # in the case statement below.
381 case "$host" in 381 case "$host" in
382 *-*-linux-android*)
383 ac_sys_system=Linux-android
384 ;;
382 *-*-linux*) 385 *-*-linux*)
383 ac_sys_system=Linux 386 ac_sys_system=Linux
384 ;; 387 ;;
385 *-*-cygwin*) 388 *-*-cygwin*)
386 ac_sys_system=Cygwin 389 ac_sys_system=Cygwin
387 ;; 390 ;;
388 *) 391 *)
389 # for now, limit cross builds to known configurations 392 # for now, limit cross builds to known configurations
390 MACHDEP="unknown" 393 MACHDEP="unknown"
391 AC_MSG_ERROR([cross build not supported for $host]) 394 AC_MSG_ERROR([cross build not supported for $host])
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 AC_SUBST(NO_AS_NEEDED) 909 AC_SUBST(NO_AS_NEEDED)
907 910
908 911
909 # checks for UNIX variants that set C preprocessor variables 912 # checks for UNIX variants that set C preprocessor variables
910 AC_USE_SYSTEM_EXTENSIONS 913 AC_USE_SYSTEM_EXTENSIONS
911 914
912 AC_MSG_CHECKING([for the Android API level]) 915 AC_MSG_CHECKING([for the Android API level])
913 cat >> conftest.c <<EOF 916 cat >> conftest.c <<EOF
914 #ifdef __ANDROID__ 917 #ifdef __ANDROID__
915 #include <android/api-level.h> 918 #include <android/api-level.h>
916 __ANDROID_API__ 919 android_api = __ANDROID_API__
920 arm_arch = __ARM_ARCH
917 #else 921 #else
918 #error not Android 922 #error not Android
919 #endif 923 #endif
920 EOF 924 EOF
921 925
922 if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then 926 if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
923 ANDROID_API_LEVEL=`grep -v '^#' conftest.out | grep -v '^ *$'` 927 ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' co nftest.out`
928 _arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out`
924 AC_MSG_RESULT([$ANDROID_API_LEVEL]) 929 AC_MSG_RESULT([$ANDROID_API_LEVEL])
925 AC_DEFINE_UNQUOTED(ANDROID_API_LEVEL, $ANDROID_API_LEVEL, [The Android API lev el.]) 930 AC_DEFINE_UNQUOTED(ANDROID_API_LEVEL, $ANDROID_API_LEVEL, [The Android API lev el.])
931
932 AC_MSG_CHECKING([for the Android arm ABI])
933 AC_MSG_RESULT([$_arm_arch])
934 if test "$_arm_arch" = 7; then
935 BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16"
936 LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8"
937 fi
926 else 938 else
927 AC_MSG_RESULT([not Android]) 939 AC_MSG_RESULT([not Android])
928 fi 940 fi
929 rm -f conftest.c conftest.out 941 rm -f conftest.c conftest.out
930 942
931 # Check for unsupported systems 943 # Check for unsupported systems
932 case $ac_sys_system/$ac_sys_release in 944 case $ac_sys_system/$ac_sys_release in
933 atheos*|Linux*/1*) 945 atheos*|Linux*/1*)
934 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. 946 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
935 echo See README for details. 947 echo See README for details.
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
1673 then 1685 then
1674 BASECFLAGS="$BASECFLAGS -Wunreachable-code" 1686 BASECFLAGS="$BASECFLAGS -Wunreachable-code"
1675 else 1687 else
1676 ac_cv_enable_unreachable_code_warning=no 1688 ac_cv_enable_unreachable_code_warning=no
1677 fi 1689 fi
1678 AC_MSG_RESULT($ac_cv_enable_unreachable_code_warning) 1690 AC_MSG_RESULT($ac_cv_enable_unreachable_code_warning)
1679 1691
1680 AC_MSG_CHECKING(if we can make implicit function declaration an error in $CC ) 1692 AC_MSG_CHECKING(if we can make implicit function declaration an error in $CC )
1681 ac_save_cc="$CC" 1693 ac_save_cc="$CC"
1682 CC="$CC -Werror=implicit-function-declaration" 1694 CC="$CC -Werror=implicit-function-declaration"
1683 save_CFLAGS="$CFLAGS"
Martin Panter 2017/01/16 01:49:00 I don’t think CFLAGS needs saving and restoring, b
1684 AC_CACHE_VAL(ac_cv_enable_implicit_function_declaration_error, 1695 AC_CACHE_VAL(ac_cv_enable_implicit_function_declaration_error,
1685 AC_COMPILE_IFELSE( 1696 AC_COMPILE_IFELSE(
1686 [ 1697 [
1687 AC_LANG_PROGRAM([[]], [[]]) 1698 AC_LANG_PROGRAM([[]], [[]])
1688 ],[ 1699 ],[
1689 ac_cv_enable_implicit_function_declaration_error=yes 1700 ac_cv_enable_implicit_function_declaration_error=yes
1690 ],[ 1701 ],[
1691 ac_cv_enable_implicit_function_declaration_error=no 1702 ac_cv_enable_implicit_function_declaration_error=no
1692 ])) 1703 ]))
1693 CFLAGS="$save_CFLAGS"
1694 CC="$ac_save_cc" 1704 CC="$ac_save_cc"
1695 AC_MSG_RESULT($ac_cv_enable_implicit_function_declaration_error) 1705 AC_MSG_RESULT($ac_cv_enable_implicit_function_declaration_error)
1696 1706
1697 if test $ac_cv_enable_implicit_function_declaration_error = yes 1707 if test $ac_cv_enable_implicit_function_declaration_error = yes
1698 then 1708 then
1699 CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration" 1709 CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration"
1700 fi 1710 fi
1701 1711
1702 # if using gcc on alpha, use -mieee to get (near) full IEEE 754 1712 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
1703 # support. Without this, treatment of subnormals doesn't follow 1713 # support. Without this, treatment of subnormals doesn't follow
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
2550 SunOS*) if test "$GCC" = yes; 2560 SunOS*) if test "$GCC" = yes;
2551 then CCSHARED="-fPIC"; 2561 then CCSHARED="-fPIC";
2552 elif test `uname -p` = sparc; 2562 elif test `uname -p` = sparc;
2553 then CCSHARED="-xcode=pic32"; 2563 then CCSHARED="-xcode=pic32";
2554 else CCSHARED="-Kpic"; 2564 else CCSHARED="-Kpic";
2555 fi;; 2565 fi;;
2556 hp*|HP*) if test "$GCC" = yes; 2566 hp*|HP*) if test "$GCC" = yes;
2557 then CCSHARED="-fPIC"; 2567 then CCSHARED="-fPIC";
2558 else CCSHARED="+z"; 2568 else CCSHARED="+z";
2559 fi;; 2569 fi;;
2570 Linux-android*) ;;
2560 Linux*|GNU*) CCSHARED="-fPIC";; 2571 Linux*|GNU*) CCSHARED="-fPIC";;
2561 BSD/OS*/4*) CCSHARED="-fpic";; 2572 BSD/OS*/4*) CCSHARED="-fpic";;
2562 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; 2573 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
2563 OpenUNIX*|UnixWare*) 2574 OpenUNIX*|UnixWare*)
2564 if test "$GCC" = "yes" 2575 if test "$GCC" = "yes"
2565 then CCSHARED="-fPIC" 2576 then CCSHARED="-fPIC"
2566 else CCSHARED="-KPIC" 2577 else CCSHARED="-KPIC"
2567 fi;; 2578 fi;;
2568 SCO_SV*) 2579 SCO_SV*)
2569 if test "$GCC" = "yes" 2580 if test "$GCC" = "yes"
(...skipping 11 matching lines...) Expand all
2581 # the python executable -- this is only needed for a few systems 2592 # the python executable -- this is only needed for a few systems
2582 AC_MSG_CHECKING(LINKFORSHARED) 2593 AC_MSG_CHECKING(LINKFORSHARED)
2583 if test -z "$LINKFORSHARED" 2594 if test -z "$LINKFORSHARED"
2584 then 2595 then
2585 case $ac_sys_system/$ac_sys_release in 2596 case $ac_sys_system/$ac_sys_release in
2586 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; 2597 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
2587 hp*|HP*) 2598 hp*|HP*)
2588 LINKFORSHARED="-Wl,-E -Wl,+s";; 2599 LINKFORSHARED="-Wl,-E -Wl,+s";;
2589 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; 2600 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
2590 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; 2601 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
2602 Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";;
2591 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; 2603 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
2592 # -u libsys_s pulls in all symbols in libsys 2604 # -u libsys_s pulls in all symbols in libsys
2593 Darwin/*) 2605 Darwin/*)
2594 LINKFORSHARED="$extra_undefs -framework CoreFoundation" 2606 LINKFORSHARED="$extra_undefs -framework CoreFoundation"
2595 2607
2596 # Issue #18075: the default maximum stack size (8MBytes) is too 2608 # Issue #18075: the default maximum stack size (8MBytes) is too
2597 # small for the default recursion limit. Increase the stack size 2609 # small for the default recursion limit. Increase the stack size
2598 # to ensure that tests don't crash 2610 # to ensure that tests don't crash
2599 LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" 2611 LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED"
2600 2612
(...skipping 2831 matching lines...) Expand 10 before | Expand all | Expand 10 after
5432 5444
5433 if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then 5445 if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
5434 echo "" >&AS_MESSAGE_FD 5446 echo "" >&AS_MESSAGE_FD
5435 echo "" >&AS_MESSAGE_FD 5447 echo "" >&AS_MESSAGE_FD
5436 echo "If you want a release build with all optimizations active (LTO, PGO, e tc)," >&AS_MESSAGE_FD 5448 echo "If you want a release build with all optimizations active (LTO, PGO, e tc)," >&AS_MESSAGE_FD
5437 echo "please run ./configure --enable-optimizations" >&AS_MESSAGE_FD 5449 echo "please run ./configure --enable-optimizations" >&AS_MESSAGE_FD
5438 echo "" >&AS_MESSAGE_FD 5450 echo "" >&AS_MESSAGE_FD
5439 echo "" >&AS_MESSAGE_FD 5451 echo "" >&AS_MESSAGE_FD
5440 fi 5452 fi
5441 5453
LEFTRIGHT
« no previous file | no next file » | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

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