1861:8207823b72b8 | 1862:73494e6ff8e5 |
---|---|
677 CXXFLAGS_JDKLIB | 677 CXXFLAGS_JDKLIB |
678 CFLAGS_JDKEXE | 678 CFLAGS_JDKEXE |
679 CFLAGS_JDKLIB | 679 CFLAGS_JDKLIB |
680 MACOSX_VERSION_MIN | 680 MACOSX_VERSION_MIN |
681 PACKAGE_PATH | 681 PACKAGE_PATH |
682 NO_LIFETIME_DSE_CFLAG | |
683 NO_DELETE_NULL_POINTER_CHECKS_CFLAG | |
684 CXXSTD_CXXFLAG | |
682 LEGACY_EXTRA_LDFLAGS | 685 LEGACY_EXTRA_LDFLAGS |
683 LEGACY_EXTRA_CXXFLAGS | 686 LEGACY_EXTRA_CXXFLAGS |
684 LEGACY_EXTRA_CFLAGS | 687 LEGACY_EXTRA_CFLAGS |
685 CXX_FLAG_DEPS | 688 CXX_FLAG_DEPS |
686 C_FLAG_DEPS | 689 C_FLAG_DEPS |
741 LDEXE | 744 LDEXE |
742 LD | 745 LD |
743 ac_ct_OBJC | 746 ac_ct_OBJC |
744 OBJCFLAGS | 747 OBJCFLAGS |
745 OBJC | 748 OBJC |
749 CXX_VERSION | |
750 CC_VERSION | |
746 ac_ct_CXX | 751 ac_ct_CXX |
747 CXXFLAGS | 752 CXXFLAGS |
748 CXX | 753 CXX |
749 ac_ct_PROPER_COMPILER_CXX | 754 ac_ct_PROPER_COMPILER_CXX |
750 PROPER_COMPILER_CXX | 755 PROPER_COMPILER_CXX |
3670 | 3675 |
3671 | 3676 |
3672 | 3677 |
3673 | 3678 |
3674 # | 3679 # |
3675 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. | 3680 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
3676 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3681 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3677 # | 3682 # |
3678 # This code is free software; you can redistribute it and/or modify it | 3683 # This code is free software; you can redistribute it and/or modify it |
3679 # under the terms of the GNU General Public License version 2 only, as | 3684 # under the terms of the GNU General Public License version 2 only, as |
3680 # published by the Free Software Foundation. Oracle designates this | 3685 # published by the Free Software Foundation. Oracle designates this |
3793 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | 3798 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
3794 # or visit www.oracle.com if you need additional information or have any | 3799 # or visit www.oracle.com if you need additional information or have any |
3795 # questions. | 3800 # questions. |
3796 # | 3801 # |
3797 | 3802 |
3803 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called. | |
3804 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER. | |
3805 | |
3806 | |
3807 # Check if the configured compiler (C and C++) is of a specific version or | |
3808 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before. | |
3809 # | |
3810 # Arguments: | |
3811 # $1: The version string to check against the found version | |
3812 # $2: block to run if the compiler is at least this version (>=) | |
3813 # $3: block to run if the compiler is older than this version (<) | |
3814 | |
3815 | |
3798 # $1 = compiler to test (CC or CXX) | 3816 # $1 = compiler to test (CC or CXX) |
3799 # $2 = human readable name of compiler (C or C++) | 3817 # $2 = human readable name of compiler (C or C++) |
3800 | 3818 |
3801 | 3819 |
3802 | 3820 |
3816 | 3834 |
3817 | 3835 |
3818 | 3836 |
3819 | 3837 |
3820 | 3838 |
3839 # TOOLCHAIN_C_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], | |
3840 # [RUN-IF-FALSE]) | |
3841 # ------------------------------------------------------------ | |
3842 # Check that the C compiler supports an argument | |
3843 | |
3844 | |
3845 # TOOLCHAIN_CXX_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], | |
3846 # [RUN-IF-FALSE]) | |
3847 # ------------------------------------------------------------ | |
3848 # Check that the C++ compiler supports an argument | |
3849 | |
3850 | |
3821 # TOOLCHAIN_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], | 3851 # TOOLCHAIN_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], |
3822 # [RUN-IF-FALSE]) | 3852 # [RUN-IF-FALSE]) |
3823 # ------------------------------------------------------------ | 3853 # ------------------------------------------------------------ |
3824 # Check that the c and c++ compilers support an argument | 3854 # Check that the C and C++ compilers support an argument |
3825 | 3855 |
3826 | 3856 |
3827 | 3857 |
3828 | 3858 |
3829 # Setup the JTREG paths | 3859 # Setup the JTREG paths |
3860 | |
3861 | |
3830 | 3862 |
3831 | 3863 |
3832 # | 3864 # |
3833 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. | 3865 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
3834 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3866 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3878 # definitions. It is replaced with custom functionality when building | 3910 # definitions. It is replaced with custom functionality when building |
3879 # custom sources. | 3911 # custom sources. |
3880 #CUSTOM_AUTOCONF_INCLUDE | 3912 #CUSTOM_AUTOCONF_INCLUDE |
3881 | 3913 |
3882 # Do not change or remove the following line, it is needed for consistency checks: | 3914 # Do not change or remove the following line, it is needed for consistency checks: |
3883 DATE_WHEN_GENERATED=1449096260 | 3915 DATE_WHEN_GENERATED=1468207795 |
3884 | 3916 |
3885 ############################################################################### | 3917 ############################################################################### |
3886 # | 3918 # |
3887 # Initialization / Boot-strapping | 3919 # Initialization / Boot-strapping |
3888 # | 3920 # |
20366 as_fn_error $? "GCC compiler is required. Try setting --with-tools-dir." "$LINENO" 5 | 20398 as_fn_error $? "GCC compiler is required. Try setting --with-tools-dir." "$LINENO" 5 |
20367 fi | 20399 fi |
20368 | 20400 |
20369 # First line typically looks something like: | 20401 # First line typically looks something like: |
20370 # gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2 | 20402 # gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2 |
20371 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* \([1-9][0-9.]*\)/\1/p"` | 20403 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | \ |
20404 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` | |
20372 COMPILER_VENDOR=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^\(.*\) [1-9][0-9.]*/\1/p"` | 20405 COMPILER_VENDOR=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^\(.*\) [1-9][0-9.]*/\1/p"` |
20373 fi | 20406 fi |
20374 # This sets CC_VERSION or CXX_VERSION. (This comment is a grep marker) | 20407 # This sets CC_VERSION or CXX_VERSION. (This comment is a grep marker) |
20375 CC_VERSION="$COMPILER_VERSION" | 20408 CC_VERSION="$COMPILER_VERSION" |
20376 # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker) | 20409 # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker) |
21967 as_fn_error $? "GCC compiler is required. Try setting --with-tools-dir." "$LINENO" 5 | 22000 as_fn_error $? "GCC compiler is required. Try setting --with-tools-dir." "$LINENO" 5 |
21968 fi | 22001 fi |
21969 | 22002 |
21970 # First line typically looks something like: | 22003 # First line typically looks something like: |
21971 # gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2 | 22004 # gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2 |
21972 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* \([1-9][0-9.]*\)/\1/p"` | 22005 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | \ |
22006 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` | |
21973 COMPILER_VENDOR=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^\(.*\) [1-9][0-9.]*/\1/p"` | 22007 COMPILER_VENDOR=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^\(.*\) [1-9][0-9.]*/\1/p"` |
21974 fi | 22008 fi |
21975 # This sets CC_VERSION or CXX_VERSION. (This comment is a grep marker) | 22009 # This sets CC_VERSION or CXX_VERSION. (This comment is a grep marker) |
21976 CXX_VERSION="$COMPILER_VERSION" | 22010 CXX_VERSION="$COMPILER_VERSION" |
21977 # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker) | 22011 # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker) |
22236 ac_ext=cpp | 22270 ac_ext=cpp |
22237 ac_cpp='$CXXCPP $CPPFLAGS' | 22271 ac_cpp='$CXXCPP $CPPFLAGS' |
22238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 22272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
22239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 22273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
22240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 22274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
22275 | |
22276 | |
22277 # This is the compiler version number on the form X.Y[.Z] | |
22278 | |
22279 | |
22280 | |
22281 | |
22282 if test "x$CC_VERSION" != "x$CXX_VERSION"; then | |
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler has different version numbers, $CC_VERSION vs $CXX_VERSION." >&5 | |
22284 $as_echo "$as_me: WARNING: C and C++ compiler has different version numbers, $CC_VERSION vs $CXX_VERSION." >&2;} | |
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 | |
22286 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} | |
22287 fi | |
22288 | |
22289 # We only check CC_VERSION since we assume CXX_VERSION is equal. | |
22290 if [[ "$CC_VERSION" =~ (.*\.){3} ]] ; then | |
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION. Comparisons might be wrong." >&5 | |
22292 $as_echo "$as_me: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION. Comparisons might be wrong." >&2;} | |
22293 fi | |
22294 | |
22295 if [[ "$CC_VERSION" =~ [0-9]{6} ]] ; then | |
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION. Comparisons might be wrong." >&5 | |
22297 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION. Comparisons might be wrong." >&2;} | |
22298 fi | |
22299 | |
22300 COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$CC_VERSION"` | |
22241 | 22301 |
22242 | 22302 |
22243 ### Locate other tools | 22303 ### Locate other tools |
22244 | 22304 |
22245 if test "x$OPENJDK_TARGET_OS" = xmacosx; then | 22305 if test "x$OPENJDK_TARGET_OS" = xmacosx; then |
24829 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} | 24889 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} |
24830 fi | 24890 fi |
24831 | 24891 |
24832 | 24892 |
24833 COMPILER_TYPE=CL | 24893 COMPILER_TYPE=CL |
24834 CCXXFLAGS="$CCXXFLAGS -nologo" | 24894 # silence copyright notice and other headers. |
24895 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" | |
24835 | 24896 |
24836 fi | 24897 fi |
24837 | 24898 |
24838 | 24899 |
24839 | 24900 |
29662 | 29723 |
29663 ############################################################################### | 29724 ############################################################################### |
29664 # | 29725 # |
29665 # Now setup the CFLAGS and LDFLAGS for the JDK build. | 29726 # Now setup the CFLAGS and LDFLAGS for the JDK build. |
29666 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. | 29727 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. |
29728 # CFLAGS_JDK - C Compiler flags | |
29729 # CXXFLAGS_JDK - C++ Compiler flags | |
29730 # COMMON_CCXXFLAGS_JDK - common to C and C++ | |
29667 # | 29731 # |
29668 case $COMPILER_NAME in | 29732 case $COMPILER_NAME in |
29669 gcc ) | 29733 gcc ) |
29670 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -W -Wall -Wno-unused -Wno-parentheses \ | 29734 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -W -Wall -Wno-unused -Wno-parentheses \ |
29671 -pipe \ | 29735 -pipe \ |
29672 -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" | 29736 -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" |
29737 CXXSTD_CXXFLAG="-std=gnu++98" | |
29738 | |
29739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG $CFLAGS_WARNINGS_ARE_ERRORS\"" >&5 | |
29740 $as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG $CFLAGS_WARNINGS_ARE_ERRORS\"... " >&6; } | |
29741 supports=yes | |
29742 | |
29743 saved_cxxflags="$CXXFLAGS" | |
29744 CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG $CFLAGS_WARNINGS_ARE_ERRORS" | |
29745 ac_ext=cpp | |
29746 ac_cpp='$CXXCPP $CPPFLAGS' | |
29747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29750 | |
29751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29752 /* end confdefs.h. */ | |
29753 int i; | |
29754 _ACEOF | |
29755 if ac_fn_cxx_try_compile "$LINENO"; then : | |
29756 | |
29757 else | |
29758 supports=no | |
29759 fi | |
29760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
29761 ac_ext=cpp | |
29762 ac_cpp='$CXXCPP $CPPFLAGS' | |
29763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29766 | |
29767 CXXFLAGS="$saved_cxxflags" | |
29768 | |
29769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 | |
29770 $as_echo "$supports" >&6; } | |
29771 if test "x$supports" = "xyes" ; then | |
29772 : | |
29773 else | |
29774 CXXSTD_CXXFLAG="" | |
29775 fi | |
29776 | |
29777 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${CXXSTD_CXXFLAG}" | |
29778 | |
29673 case $OPENJDK_TARGET_CPU_ARCH in | 29779 case $OPENJDK_TARGET_CPU_ARCH in |
29674 arm ) | 29780 arm ) |
29675 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing | 29781 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing |
29676 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" | 29782 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" |
29677 ;; | 29783 ;; |
29678 ppc ) | 29784 ppc ) |
29679 # on ppc we don't prevent gcc to omit frame pointer nor strict-aliasing | 29785 # on ppc we don't prevent gcc to omit frame pointer nor strict-aliasing |
29680 ;; | 29786 ;; |
29681 * ) | 29787 * ) |
29682 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fno-omit-frame-pointer" | 29788 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" |
29683 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" | 29789 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" |
29684 ;; | 29790 ;; |
29685 esac | 29791 esac |
29792 | |
29793 REFERENCE_VERSION=6 | |
29794 | |
29795 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then | |
29796 as_fn_error $? "Internal error: Cannot compare to $REFERENCE_VERSION, only three parts (X.Y.Z) is supported" "$LINENO" 5 | |
29797 fi | |
29798 | |
29799 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then | |
29800 as_fn_error $? "Internal error: Cannot compare to $REFERENCE_VERSION, only parts < 99999 is supported" "$LINENO" 5 | |
29801 fi | |
29802 | |
29803 # Version comparison method inspired by http://stackoverflow.com/a/24067243 | |
29804 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` | |
29805 | |
29806 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then | |
29807 | |
29808 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code | |
29809 # runs afoul of the more aggressive versions of these optimisations. | |
29810 # Notably, value range propagation now assumes that the this pointer of C++ | |
29811 # member functions is non-null. | |
29812 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" | |
29813 | |
29814 | |
29815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5 | |
29816 $as_echo_n "checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; } | |
29817 supports=yes | |
29818 | |
29819 saved_cflags="$CFLAGS" | |
29820 CFLAGS="$CFLAGS $NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror" | |
29821 ac_ext=c | |
29822 ac_cpp='$CPP $CPPFLAGS' | |
29823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29825 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29826 | |
29827 | |
29828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29829 /* end confdefs.h. */ | |
29830 int i; | |
29831 _ACEOF | |
29832 if ac_fn_c_try_compile "$LINENO"; then : | |
29833 | |
29834 else | |
29835 supports=no | |
29836 fi | |
29837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
29838 ac_ext=cpp | |
29839 ac_cpp='$CXXCPP $CPPFLAGS' | |
29840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29843 | |
29844 CFLAGS="$saved_cflags" | |
29845 | |
29846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 | |
29847 $as_echo "$supports" >&6; } | |
29848 if test "x$supports" = "xyes" ; then | |
29849 C_COMP_SUPPORTS="yes" | |
29850 else | |
29851 C_COMP_SUPPORTS="no" | |
29852 fi | |
29853 | |
29854 | |
29855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5 | |
29856 $as_echo_n "checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; } | |
29857 supports=yes | |
29858 | |
29859 saved_cxxflags="$CXXFLAGS" | |
29860 CXXFLAGS="$CXXFLAG $NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror" | |
29861 ac_ext=cpp | |
29862 ac_cpp='$CXXCPP $CPPFLAGS' | |
29863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29866 | |
29867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29868 /* end confdefs.h. */ | |
29869 int i; | |
29870 _ACEOF | |
29871 if ac_fn_cxx_try_compile "$LINENO"; then : | |
29872 | |
29873 else | |
29874 supports=no | |
29875 fi | |
29876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
29877 ac_ext=cpp | |
29878 ac_cpp='$CXXCPP $CPPFLAGS' | |
29879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29882 | |
29883 CXXFLAGS="$saved_cxxflags" | |
29884 | |
29885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 | |
29886 $as_echo "$supports" >&6; } | |
29887 if test "x$supports" = "xyes" ; then | |
29888 CXX_COMP_SUPPORTS="yes" | |
29889 else | |
29890 CXX_COMP_SUPPORTS="no" | |
29891 fi | |
29892 | |
29893 | |
29894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5 | |
29895 $as_echo_n "checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; } | |
29896 supports=no | |
29897 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi | |
29898 | |
29899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 | |
29900 $as_echo "$supports" >&6; } | |
29901 if test "x$supports" = "xyes" ; then | |
29902 : | |
29903 else | |
29904 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="" | |
29905 fi | |
29906 | |
29907 | |
29908 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" | |
29909 | |
29910 | |
29911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 | |
29912 $as_echo_n "checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } | |
29913 supports=yes | |
29914 | |
29915 saved_cflags="$CFLAGS" | |
29916 CFLAGS="$CFLAGS $NO_LIFETIME_DSE_CFLAG -Werror" | |
29917 ac_ext=c | |
29918 ac_cpp='$CPP $CPPFLAGS' | |
29919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29921 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29922 | |
29923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29924 /* end confdefs.h. */ | |
29925 int i; | |
29926 _ACEOF | |
29927 if ac_fn_c_try_compile "$LINENO"; then : | |
29928 | |
29929 else | |
29930 supports=no | |
29931 fi | |
29932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
29933 ac_ext=cpp | |
29934 ac_cpp='$CXXCPP $CPPFLAGS' | |
29935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29938 | |
29939 CFLAGS="$saved_cflags" | |
29940 | |
29941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 | |
29942 $as_echo "$supports" >&6; } | |
29943 if test "x$supports" = "xyes" ; then | |
29944 C_COMP_SUPPORTS="yes" | |
29945 else | |
29946 C_COMP_SUPPORTS="no" | |
29947 fi | |
29948 | |
29949 | |
29950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 | |
29951 $as_echo_n "checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } | |
29952 supports=yes | |
29953 | |
29954 saved_cxxflags="$CXXFLAGS" | |
29955 CXXFLAGS="$CXXFLAG $NO_LIFETIME_DSE_CFLAG -Werror" | |
29956 ac_ext=cpp | |
29957 ac_cpp='$CXXCPP $CPPFLAGS' | |
29958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29961 | |
29962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29963 /* end confdefs.h. */ | |
29964 int i; | |
29965 _ACEOF | |
29966 if ac_fn_cxx_try_compile "$LINENO"; then : | |
29967 | |
29968 else | |
29969 supports=no | |
29970 fi | |
29971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
29972 ac_ext=cpp | |
29973 ac_cpp='$CXXCPP $CPPFLAGS' | |
29974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29977 | |
29978 CXXFLAGS="$saved_cxxflags" | |
29979 | |
29980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 | |
29981 $as_echo "$supports" >&6; } | |
29982 if test "x$supports" = "xyes" ; then | |
29983 CXX_COMP_SUPPORTS="yes" | |
29984 else | |
29985 CXX_COMP_SUPPORTS="no" | |
29986 fi | |
29987 | |
29988 | |
29989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 | |
29990 $as_echo_n "checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } | |
29991 supports=no | |
29992 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi | |
29993 | |
29994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 | |
29995 $as_echo "$supports" >&6; } | |
29996 if test "x$supports" = "xyes" ; then | |
29997 : | |
29998 else | |
29999 NO_LIFETIME_DSE_CFLAG="" | |
30000 fi | |
30001 | |
30002 CFLAGS_JDK="${CFLAGS_JDK} ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" | |
30003 | |
30004 | |
30005 | |
30006 else | |
30007 : | |
30008 fi | |
30009 | |
29686 ;; | 30010 ;; |
29687 ossc ) | 30011 ossc ) |
29688 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" | 30012 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" |
29689 case $OPENJDK_TARGET_CPU_ARCH in | 30013 case $OPENJDK_TARGET_CPU_ARCH in |
29690 x86 ) | 30014 x86 ) |
29691 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" | 30015 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" |
29692 CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE" | 30016 CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE" |
29693 ;; | 30017 ;; |
29694 esac | 30018 esac |
29695 | 30019 |
29696 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" | 30020 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" |
29705 | 30029 |
29706 LDFLAGS_JDK="$LDFLAGS_JDK" | 30030 LDFLAGS_JDK="$LDFLAGS_JDK" |
29707 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK" | 30031 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK" |
29708 ;; | 30032 ;; |
29709 cl ) | 30033 cl ) |
29710 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ | 30034 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ |
29711 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \ | 30035 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \ |
29712 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ | 30036 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ |
29713 -DWIN32 -DIAL" | 30037 -DWIN32 -DIAL" |
29714 case $OPENJDK_TARGET_CPU in | 30038 case $OPENJDK_TARGET_CPU in |
29715 x86 ) | 30039 x86 ) |
29716 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86" | 30040 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" |
29717 ;; | 30041 ;; |
29718 x86_64 ) | 30042 x86_64 ) |
29719 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64" | 30043 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" |
29720 ;; | 30044 ;; |
29721 esac | 30045 esac |
29722 ;; | 30046 ;; |
29723 esac | 30047 esac |
29724 | 30048 |
29744 CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE" | 30068 CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE" |
29745 JAVAC_FLAGS="$JAVAC_FLAGS -g" | 30069 JAVAC_FLAGS="$JAVAC_FLAGS -g" |
29746 ;; | 30070 ;; |
29747 esac | 30071 esac |
29748 | 30072 |
29749 CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64" | 30073 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $ADD_LP64" |
29750 | 30074 |
29751 # The package path is used only on macosx? | 30075 # The package path is used only on macosx? |
29752 PACKAGE_PATH=/opt/local | 30076 PACKAGE_PATH=/opt/local |
29753 | 30077 |
29754 | 30078 |
29757 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN | 30081 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN |
29758 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). | 30082 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). |
29759 # Note: -Dmacro is the same as #define macro 1 | 30083 # Note: -Dmacro is the same as #define macro 1 |
29760 # -Dmacro= is the same as #define macro | 30084 # -Dmacro= is the same as #define macro |
29761 if test "x$OPENJDK_TARGET_OS" = xsolaris; then | 30085 if test "x$OPENJDK_TARGET_OS" = xsolaris; then |
29762 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" | 30086 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" |
29763 else | 30087 else |
29764 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN" | 30088 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" |
29765 fi | 30089 fi |
29766 else | 30090 else |
29767 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN" | 30091 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" |
29768 fi | 30092 fi |
29769 if test "x$OPENJDK_TARGET_OS" = xlinux; then | 30093 if test "x$OPENJDK_TARGET_OS" = xlinux; then |
29770 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DLINUX" | 30094 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DLINUX" |
29771 fi | 30095 fi |
29772 if test "x$OPENJDK_TARGET_OS" = xwindows; then | 30096 if test "x$OPENJDK_TARGET_OS" = xwindows; then |
29773 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DWINDOWS" | 30097 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DWINDOWS" |
29774 fi | 30098 fi |
29775 if test "x$OPENJDK_TARGET_OS" = xsolaris; then | 30099 if test "x$OPENJDK_TARGET_OS" = xsolaris; then |
29776 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DSOLARIS" | 30100 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DSOLARIS" |
29777 fi | 30101 fi |
29778 if test "x$OPENJDK_TARGET_OS" = xaix; then | 30102 if test "x$OPENJDK_TARGET_OS" = xaix; then |
29779 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DAIX -DPPC64" | 30103 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DAIX -DPPC64" |
29780 fi | 30104 fi |
29781 if test "x$OPENJDK_TARGET_OS" = xmacosx; then | 30105 if test "x$OPENJDK_TARGET_OS" = xmacosx; then |
29782 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMACOSX -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" | 30106 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMACOSX -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" |
29783 # Setting these parameters makes it an error to link to macosx APIs that are | 30107 # Setting these parameters makes it an error to link to macosx APIs that are |
29784 # newer than the given OS version and makes the linked binaries compatible even | 30108 # newer than the given OS version and makes the linked binaries compatible even |
29785 # if built on a newer version of the OS. | 30109 # if built on a newer version of the OS. |
29786 # The expected format is X.Y.Z | 30110 # The expected format is X.Y.Z |
29787 MACOSX_VERSION_MIN=10.7.0 | 30111 MACOSX_VERSION_MIN=10.7.0 |
29788 | 30112 |
29789 # The macro takes the version with no dots, ex: 1070 | 30113 # The macro takes the version with no dots, ex: 1070 |
29790 # Let the flags variables get resolved in make for easier override on make | 30114 # Let the flags variables get resolved in make for easier override on make |
29791 # command line. | 30115 # command line. |
29792 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" | 30116 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" |
29793 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" | 30117 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" |
29794 fi | 30118 fi |
29795 if test "x$OPENJDK_TARGET_OS" = xbsd; then | 30119 if test "x$OPENJDK_TARGET_OS" = xbsd; then |
29796 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DBSD -D_ALLBSD_SOURCE" | 30120 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DBSD -D_ALLBSD_SOURCE" |
29797 fi | 30121 fi |
29798 if test "x$DEBUG_LEVEL" = xrelease; then | 30122 if test "x$DEBUG_LEVEL" = xrelease; then |
29799 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DNDEBUG" | 30123 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" |
29800 if test "x$OPENJDK_TARGET_OS" = xsolaris; then | 30124 if test "x$OPENJDK_TARGET_OS" = xsolaris; then |
29801 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DTRIMMED" | 30125 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" |
29802 fi | 30126 fi |
29803 else | 30127 else |
29804 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DDEBUG" | 30128 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" |
29805 fi | 30129 fi |
29806 | 30130 |
29807 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" | 30131 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" |
29808 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'" | 30132 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'" |
29809 | 30133 |
29810 CCXXFLAGS_JDK="$CCXXFLAGS_JDK \ | 30134 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ |
29811 -I${JDK_OUTPUTDIR}/include \ | 30135 -I${JDK_OUTPUTDIR}/include \ |
29812 -I${JDK_OUTPUTDIR}/include/$OPENJDK_TARGET_OS \ | 30136 -I${JDK_OUTPUTDIR}/include/$OPENJDK_TARGET_OS \ |
29813 -I${JDK_TOPDIR}/src/share/javavm/export \ | 30137 -I${JDK_TOPDIR}/src/share/javavm/export \ |
29814 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_EXPORT_DIR/javavm/export \ | 30138 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_EXPORT_DIR/javavm/export \ |
29815 -I${JDK_TOPDIR}/src/share/native/common \ | 30139 -I${JDK_TOPDIR}/src/share/native/common \ |
29816 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_API_DIR/native/common" | 30140 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_API_DIR/native/common" |
29817 | 30141 |
29818 # The shared libraries are compiled using the picflag. | 30142 # The shared libraries are compiled using the picflag. |
29819 CFLAGS_JDKLIB="$CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" | 30143 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" |
29820 CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA " | 30144 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA " |
29821 | 30145 |
29822 # Executable flags | 30146 # Executable flags |
29823 CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK" | 30147 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" |
29824 CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK" | 30148 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" |
29825 | 30149 |
29826 # Now this is odd. The JDK native libraries have to link against libjvm.so | 30150 # Now this is odd. The JDK native libraries have to link against libjvm.so |
29827 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. | 30151 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. |
29828 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library | 30152 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library |
29829 # is identical for client and server? Yes. Which is picked at runtime (client or server)? | 30153 # is identical for client and server? Yes. Which is picked at runtime (client or server)? |
29903 | 30227 |
29904 | 30228 |
29905 | 30229 |
29906 | 30230 |
29907 | 30231 |
29908 | |
29909 # Some Zero and Shark settings. | 30232 # Some Zero and Shark settings. |
29910 # ZERO_ARCHFLAG tells the compiler which mode to build for | 30233 # ZERO_ARCHFLAG tells the compiler which mode to build for |
29911 case "${OPENJDK_TARGET_CPU}" in | 30234 case "${OPENJDK_TARGET_CPU}" in |
29912 s390) | 30235 s390) |
29913 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" | 30236 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" |
29914 ;; | 30237 ;; |
29915 *) | 30238 *) |
29916 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" | 30239 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" |
29917 esac | 30240 esac |
29918 | 30241 |
29919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5 | 30242 |
29920 $as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } | 30243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$ZERO_ARCHFLAG\"" >&5 |
30244 $as_echo_n "checking if the C compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } | |
29921 supports=yes | 30245 supports=yes |
29922 | 30246 |
29923 saved_cflags="$CFLAGS" | 30247 saved_cflags="$CFLAGS" |
29924 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" | 30248 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" |
29925 ac_ext=c | 30249 ac_ext=c |
29944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 30268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
29945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 30269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
29946 | 30270 |
29947 CFLAGS="$saved_cflags" | 30271 CFLAGS="$saved_cflags" |
29948 | 30272 |
30273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 | |
30274 $as_echo "$supports" >&6; } | |
30275 if test "x$supports" = "xyes" ; then | |
30276 C_COMP_SUPPORTS="yes" | |
30277 else | |
30278 C_COMP_SUPPORTS="no" | |
30279 fi | |
30280 | |
30281 | |
30282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"" >&5 | |
30283 $as_echo_n "checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } | |
30284 supports=yes | |
30285 | |
29949 saved_cxxflags="$CXXFLAGS" | 30286 saved_cxxflags="$CXXFLAGS" |
29950 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" | 30287 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" |
29951 ac_ext=cpp | 30288 ac_ext=cpp |
29952 ac_cpp='$CXXCPP $CPPFLAGS' | 30289 ac_cpp='$CXXCPP $CPPFLAGS' |
29953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 30290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29973 CXXFLAGS="$saved_cxxflags" | 30310 CXXFLAGS="$saved_cxxflags" |
29974 | 30311 |
29975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 | 30312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 |
29976 $as_echo "$supports" >&6; } | 30313 $as_echo "$supports" >&6; } |
29977 if test "x$supports" = "xyes" ; then | 30314 if test "x$supports" = "xyes" ; then |
30315 CXX_COMP_SUPPORTS="yes" | |
30316 else | |
30317 CXX_COMP_SUPPORTS="no" | |
30318 fi | |
30319 | |
30320 | |
30321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$ZERO_ARCHFLAG\"" >&5 | |
30322 $as_echo_n "checking if both compilers support \"$ZERO_ARCHFLAG\"... " >&6; } | |
30323 supports=no | |
30324 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi | |
30325 | |
30326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 | |
30327 $as_echo "$supports" >&6; } | |
30328 if test "x$supports" = "xyes" ; then | |
29978 : | 30329 : |
29979 else | 30330 else |
29980 ZERO_ARCHFLAG="" | 30331 ZERO_ARCHFLAG="" |
29981 fi | 30332 fi |
29982 | 30333 |
29983 | 30334 |
29984 | 30335 |
29985 # Check that the compiler supports -mX (or -qX on AIX) flags | 30336 # Check that the compiler supports -mX (or -qX on AIX) flags |
29986 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does | 30337 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does |
29987 | 30338 |
29988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 | 30339 |
29989 $as_echo_n "checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } | 30340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 |
30341 $as_echo_n "checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } | |
29990 supports=yes | 30342 supports=yes |
29991 | 30343 |
29992 saved_cflags="$CFLAGS" | 30344 saved_cflags="$CFLAGS" |
29993 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" | 30345 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" |
29994 ac_ext=c | 30346 ac_ext=c |
30013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 30365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
30014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 30366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
30015 | 30367 |
30016 CFLAGS="$saved_cflags" | 30368 CFLAGS="$saved_cflags" |
30017 | 30369 |
30370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 | |
30371 $as_echo "$supports" >&6; } | |
30372 if test "x$supports" = "xyes" ; then | |
30373 C_COMP_SUPPORTS="yes" | |
30374 else | |
30375 C_COMP_SUPPORTS="no" | |
30376 fi | |
30377 | |
30378 | |
30379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 | |
30380 $as_echo_n "checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } | |
30381 supports=yes | |
30382 | |
30018 saved_cxxflags="$CXXFLAGS" | 30383 saved_cxxflags="$CXXFLAGS" |
30019 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" | 30384 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" |
30020 ac_ext=cpp | 30385 ac_ext=cpp |
30021 ac_cpp='$CXXCPP $CPPFLAGS' | 30386 ac_cpp='$CXXCPP $CPPFLAGS' |
30022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 30387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
30038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 30403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
30039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 30404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
30040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 30405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
30041 | 30406 |
30042 CXXFLAGS="$saved_cxxflags" | 30407 CXXFLAGS="$saved_cxxflags" |
30408 | |
30409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 | |
30410 $as_echo "$supports" >&6; } | |
30411 if test "x$supports" = "xyes" ; then | |
30412 CXX_COMP_SUPPORTS="yes" | |
30413 else | |
30414 CXX_COMP_SUPPORTS="no" | |
30415 fi | |
30416 | |
30417 | |
30418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 | |
30419 $as_echo_n "checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } | |
30420 supports=no | |
30421 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi | |
30043 | 30422 |
30044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 | 30423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 |
30045 $as_echo "$supports" >&6; } | 30424 $as_echo "$supports" >&6; } |
30046 if test "x$supports" = "xyes" ; then | 30425 if test "x$supports" = "xyes" ; then |
30047 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true | 30426 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true |