# HG changeset patch # User lana # Date 1486072529 0 # Node ID e5c5721fe29bc884246c914866ca1e8365bb24ab # Parent f79de4a7586825b3cc021774ca5c1a360a8e662a# Parent 0a0861e1db573a75b0aac243dacd727bed0ee5e9 Merge diff -r f79de4a75868 -r e5c5721fe29b common/autoconf/basics.m4 --- a/common/autoconf/basics.m4 Thu Feb 02 21:20:36 2017 +0000 +++ b/common/autoconf/basics.m4 Thu Feb 02 21:55:29 2017 +0000 @@ -746,7 +746,8 @@ fi # set SDKROOT too, Xcode tools will pick it up - AC_SUBST(SDKROOT,$SYSROOT) + SDKROOT="$SYSROOT" + AC_SUBST(SDKROOT) fi # Prepend the extra path to the global path @@ -831,9 +832,10 @@ CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support" $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR" - AC_SUBST(SPEC, $OUTPUT_ROOT/spec.gmk) - AC_SUBST(CONF_NAME, $CONF_NAME) - AC_SUBST(OUTPUT_ROOT, $OUTPUT_ROOT) + SPEC="$OUTPUT_ROOT/spec.gmk" + AC_SUBST(SPEC) + AC_SUBST(CONF_NAME) + AC_SUBST(OUTPUT_ROOT) AC_SUBST(CONFIGURESUPPORT_OUTPUTDIR) # The spec.gmk file contains all variables for the make system. diff -r f79de4a75868 -r e5c5721fe29b common/autoconf/boot-jdk.m4 --- a/common/autoconf/boot-jdk.m4 Thu Feb 02 21:20:36 2017 +0000 +++ b/common/autoconf/boot-jdk.m4 Thu Feb 02 21:55:29 2017 +0000 @@ -1,5 +1,5 @@ # -# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -325,7 +325,6 @@ fi AC_MSG_CHECKING([if Boot JDK is 32 or 64 bits]) AC_MSG_RESULT([$BOOT_JDK_BITS]) - AC_SUBST(BOOT_JDK_BITS) ]) AC_DEFUN_ONCE([BOOTJDK_SETUP_BOOT_JDK_ARGUMENTS], diff -r f79de4a75868 -r e5c5721fe29b common/autoconf/flags.m4 --- a/common/autoconf/flags.m4 Thu Feb 02 21:20:36 2017 +0000 +++ b/common/autoconf/flags.m4 Thu Feb 02 21:55:29 2017 +0000 @@ -1,5 +1,5 @@ # -# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -808,7 +808,7 @@ IF_FALSE: [$2CXXSTD_CXXFLAG=""]) $2CXXFLAGS_JDK="${$2CXXFLAGS_JDK} ${$2CXXSTD_CXXFLAG}" $2JVM_CFLAGS="${$2JVM_CFLAGS} ${$2CXXSTD_CXXFLAG}" - AC_SUBST([$2CXXSTD_CXXFLAG]) + AC_SUBST($2CXXSTD_CXXFLAG) fi if test "x$OPENJDK_TARGET_OS" = xsolaris; then $2CFLAGS_JDK="${$2CFLAGS_JDK} -D__solaris__" @@ -1440,18 +1440,6 @@ AC_DEFUN_ONCE([FLAGS_SETUP_COMPILER_FLAGS_MISC], [ - # Some Zero and Shark settings. - # ZERO_ARCHFLAG tells the compiler which mode to build for - case "${OPENJDK_TARGET_CPU}" in - s390) - ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" - ;; - *) - ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" - esac - FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [$ZERO_ARCHFLAG], IF_FALSE: [ZERO_ARCHFLAG=""]) - AC_SUBST(ZERO_ARCHFLAG) - # Check that the compiler supports -mX (or -qX on AIX) flags # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}], @@ -1476,15 +1464,7 @@ AC_MSG_ERROR([--enable-warnings-as-errors accepts no argument]) fi - if test "x$WARNINGS_AS_ERRORS" = "xfalse"; then - # Set legacy hotspot variable - HOTSPOT_SET_WARNINGS_AS_ERRORS="WARNINGS_ARE_ERRORS=" - else - HOTSPOT_SET_WARNINGS_AS_ERRORS="" - fi - AC_SUBST(WARNINGS_AS_ERRORS) - AC_SUBST(HOTSPOT_SET_WARNINGS_AS_ERRORS) case "${TOOLCHAIN_TYPE}" in microsoft) diff -r f79de4a75868 -r e5c5721fe29b common/autoconf/generated-configure.sh --- a/common/autoconf/generated-configure.sh Thu Feb 02 21:20:36 2017 +0000 +++ b/common/autoconf/generated-configure.sh Thu Feb 02 21:55:29 2017 +0000 @@ -704,7 +704,6 @@ FIXPATH BUILD_GTEST ENABLE_AOT -INCLUDE_DTRACE GCOV_ENABLED ZIP_EXTERNAL_DEBUG_SYMBOLS COPY_DEBUG_SYMBOLS @@ -712,10 +711,8 @@ CFLAGS_WARNINGS_ARE_ERRORS BUILD_CC_DISABLE_WARNING_PREFIX DISABLE_WARNING_PREFIX -HOTSPOT_SET_WARNINGS_AS_ERRORS WARNINGS_AS_ERRORS COMPILER_SUPPORTS_TARGET_BITS_FLAG -ZERO_ARCHFLAG LDFLAGS_TESTEXE LDFLAGS_TESTLIB CXXFLAGS_TESTEXE @@ -884,7 +881,6 @@ CREATE_BUILDJDK JLINK JMOD -BOOT_JDK_BITS JAVAC_FLAGS BOOT_JDK_MODULAR BOOT_JDK_SOURCETARGET @@ -974,15 +970,12 @@ ORIGINAL_TOPDIR TOPDIR PATH_SEP -ZERO_ARCHDEF HOTSPOT_BUILD_CPU_DEFINE HOTSPOT_BUILD_CPU_ARCH HOTSPOT_BUILD_CPU HOTSPOT_BUILD_OS_TYPE HOTSPOT_BUILD_OS OPENJDK_BUILD_BUNDLE_PLATFORM -OPENJDK_BUILD_CPU_BUNDLE -OPENJDK_BUILD_OS_BUNDLE OPENJDK_BUILD_OS_EXPORT_DIR OPENJDK_BUILD_CPU_OSARCH OPENJDK_BUILD_CPU_ISADIR @@ -994,10 +987,7 @@ HOTSPOT_TARGET_OS_TYPE HOTSPOT_TARGET_OS DEFINE_CROSS_COMPILE_ARCH -LP64 OPENJDK_TARGET_BUNDLE_PLATFORM -OPENJDK_TARGET_CPU_BUNDLE -OPENJDK_TARGET_OS_BUNDLE OPENJDK_TARGET_OS_EXPORT_DIR OPENJDK_TARGET_CPU_OSARCH OPENJDK_TARGET_CPU_ISADIR @@ -3818,7 +3808,7 @@ # ... then the rest # -# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -3998,7 +3988,7 @@ # -# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -4273,7 +4263,7 @@ # -# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -4561,7 +4551,7 @@ # -# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -4841,7 +4831,7 @@ # -# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -5180,7 +5170,7 @@ #CUSTOM_AUTOCONF_INCLUDE # Do not change or remove the following line, it is needed for consistency checks: -DATE_WHEN_GENERATED=1485508515 +DATE_WHEN_GENERATED=1486033520 ############################################################################### # @@ -15936,18 +15926,14 @@ OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}" - - if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then - A_LP64="LP64:=" # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in - # unpack200.exe + # unpack200.exe. This variable is used in + # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER. if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then OPENJDK_TARGET_ADD_LP64="-D_LP64=1" fi fi - LP64=$A_LP64 - if test "x$COMPILE_TYPE" = "xcross"; then # FIXME: ... or should this include reduced builds..? @@ -16092,18 +16078,14 @@ OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}" - - if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then - A_LP64="LP64:=" # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in - # unpack200.exe + # unpack200.exe. This variable is used in + # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER. if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then OPENJDK_BUILD_ADD_LP64="-D_LP64=1" fi fi - LP64=$A_LP64 - if test "x$COMPILE_TYPE" = "xcross"; then # FIXME: ... or should this include reduced builds..? @@ -16173,12 +16155,6 @@ - # ZERO_ARCHDEF is used to enable architecture-specific code. - # This is used in legacy hotspot build. - ZERO_ARCHDEF="$HOTSPOT_TARGET_CPU_DEFINE" - - - # Continue setting up basic stuff. Most remaining code require fundamental tools. @@ -17280,7 +17256,7 @@ fi # set SDKROOT too, Xcode tools will pick it up - SDKROOT=$SYSROOT + SDKROOT="$SYSROOT" fi @@ -17528,11 +17504,9 @@ CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support" $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR" - SPEC=$OUTPUT_ROOT/spec.gmk - - CONF_NAME=$CONF_NAME - - OUTPUT_ROOT=$OUTPUT_ROOT + SPEC="$OUTPUT_ROOT/spec.gmk" + + @@ -30730,7 +30704,6 @@ - # Check whether --with-build-jdk was given. if test "${with_build_jdk+set}" = set; then : withval=$with_build_jdk; @@ -51480,282 +51453,6 @@ - # Some Zero and Shark settings. - # ZERO_ARCHFLAG tells the compiler which mode to build for - case "${OPENJDK_TARGET_CPU}" in - s390) - ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" - ;; - *) - ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" - esac - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Execute function body - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Execute function body - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$ZERO_ARCHFLAG\"" >&5 -$as_echo_n "checking if the C compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } - supports=yes - - saved_cflags="$CFLAGS" - CFLAGS="$CFLAGS $ZERO_ARCHFLAG" - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -int i; -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -else - supports=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - CFLAGS="$saved_cflags" - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 -$as_echo "$supports" >&6; } - if test "x$supports" = "xyes" ; then - : - C_COMP_SUPPORTS="yes" - else - : - C_COMP_SUPPORTS="no" - fi - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Execute function body - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"" >&5 -$as_echo_n "checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } - supports=yes - - saved_cxxflags="$CXXFLAGS" - CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -int i; -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - -else - supports=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - CXXFLAGS="$saved_cxxflags" - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 -$as_echo "$supports" >&6; } - if test "x$supports" = "xyes" ; then - : - CXX_COMP_SUPPORTS="yes" - else - : - CXX_COMP_SUPPORTS="no" - fi - - - - - - - - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$ZERO_ARCHFLAG\"" >&5 -$as_echo_n "checking if both compilers support \"$ZERO_ARCHFLAG\"... " >&6; } - supports=no - if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 -$as_echo "$supports" >&6; } - if test "x$supports" = "xyes" ; then - : - - else - : - ZERO_ARCHFLAG="" - fi - - - - - - - - # Check that the compiler supports -mX (or -qX on AIX) flags # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does @@ -52054,14 +51751,6 @@ as_fn_error $? "--enable-warnings-as-errors accepts no argument" "$LINENO" 5 fi - if test "x$WARNINGS_AS_ERRORS" = "xfalse"; then - # Set legacy hotspot variable - HOTSPOT_SET_WARNINGS_AS_ERRORS="WARNINGS_ARE_ERRORS=" - else - HOTSPOT_SET_WARNINGS_AS_ERRORS="" - fi - - case "${TOOLCHAIN_TYPE}" in @@ -52916,7 +52605,6 @@ fi - # Check whether --enable-aot was given. if test "${enable_aot+set}" = set; then : enableval=$enable_aot; @@ -63694,12 +63382,14 @@ DEFAULT_LIBPNG=bundled # if user didn't specify, use DEFAULT_LIBPNG if test "x${with_libpng}" = "x"; then - with_libpng=${DEFAULT_LIBPNG} + with_libpng=${DEFAULT_LIBPNG} fi if test "x${with_libpng}" = "xbundled"; then - USE_EXTERNAL_LIBPNG=false - { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 + USE_EXTERNAL_LIBPNG=false + PNG_CFLAGS="" + PNG_LIBS="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 $as_echo "bundled" >&6; } elif test "x${with_libpng}" = "xsystem"; then @@ -63759,28 +63449,31 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } - LIBPNG_FOUND=no + LIBPNG_FOUND=no elif test $pkg_failed = untried; then - LIBPNG_FOUND=no + LIBPNG_FOUND=no else PNG_CFLAGS=$pkg_cv_PNG_CFLAGS PNG_LIBS=$pkg_cv_PNG_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } - LIBPNG_FOUND=yes -fi - if test "x${LIBPNG_FOUND}" = "xyes"; then - USE_EXTERNAL_LIBPNG=true - { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 + LIBPNG_FOUND=yes +fi + if test "x${LIBPNG_FOUND}" = "xyes"; then + # PKG_CHECK_MODULES will set PNG_CFLAGS and PNG_LIBS + USE_EXTERNAL_LIBPNG=true + { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 $as_echo "system" >&6; } - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 $as_echo "system not found" >&6; } - as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 - fi - else - as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 - fi + as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 + fi + else + as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 + fi + + @@ -63888,11 +63581,13 @@ DEFAULT_LCMS=bundled # If user didn't specify, use DEFAULT_LCMS if test "x${with_lcms}" = "x"; then - with_lcms=${DEFAULT_LCMS} + with_lcms=${DEFAULT_LCMS} fi if test "x${with_lcms}" = "xbundled"; then USE_EXTERNAL_LCMS=false + LCMS_CFLAGS="" + LCMS_LIBS="" { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 $as_echo "bundled" >&6; } elif test "x${with_lcms}" = "xsystem"; then @@ -63966,6 +63661,7 @@ LCMS_FOUND=yes fi if test "x${LCMS_FOUND}" = "xyes"; then + # PKG_CHECK_MODULES will set LCMS_CFLAGS and LCMS_LIBS USE_EXTERNAL_LCMS=true else as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 @@ -63984,6 +63680,8 @@ + + # Setup libm (the maths library) if test "x$OPENJDK_TARGET_OS" != "xwindows"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 diff -r f79de4a75868 -r e5c5721fe29b common/autoconf/hotspot.m4 --- a/common/autoconf/hotspot.m4 Thu Feb 02 21:20:36 2017 +0000 +++ b/common/autoconf/hotspot.m4 Thu Feb 02 21:55:29 2017 +0000 @@ -1,5 +1,5 @@ # -# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -189,7 +189,6 @@ else AC_MSG_ERROR([Invalid value for --enable-dtrace: $enable_dtrace]) fi - AC_SUBST(INCLUDE_DTRACE) ]) ################################################################################ diff -r f79de4a75868 -r e5c5721fe29b common/autoconf/jdk-options.m4 --- a/common/autoconf/jdk-options.m4 Thu Feb 02 21:20:36 2017 +0000 +++ b/common/autoconf/jdk-options.m4 Thu Feb 02 21:55:29 2017 +0000 @@ -479,5 +479,5 @@ AC_MSG_ERROR([Invalid value for --enable-generate-classlist: $enable_generate_classlist]) fi - AC_SUBST([ENABLE_GENERATE_CLASSLIST]) + AC_SUBST(ENABLE_GENERATE_CLASSLIST) ]) diff -r f79de4a75868 -r e5c5721fe29b common/autoconf/lib-bundled.m4 --- a/common/autoconf/lib-bundled.m4 Thu Feb 02 21:20:36 2017 +0000 +++ b/common/autoconf/lib-bundled.m4 Thu Feb 02 21:55:29 2017 +0000 @@ -1,5 +1,5 @@ # -# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -119,28 +119,31 @@ DEFAULT_LIBPNG=bundled # if user didn't specify, use DEFAULT_LIBPNG if test "x${with_libpng}" = "x"; then - with_libpng=${DEFAULT_LIBPNG} + with_libpng=${DEFAULT_LIBPNG} fi if test "x${with_libpng}" = "xbundled"; then - USE_EXTERNAL_LIBPNG=false - AC_MSG_RESULT([bundled]) + USE_EXTERNAL_LIBPNG=false + PNG_CFLAGS="" + PNG_LIBS="" + AC_MSG_RESULT([bundled]) elif test "x${with_libpng}" = "xsystem"; then - PKG_CHECK_MODULES(PNG, libpng, - [ LIBPNG_FOUND=yes ], - [ LIBPNG_FOUND=no ]) - if test "x${LIBPNG_FOUND}" = "xyes"; then - USE_EXTERNAL_LIBPNG=true - AC_MSG_RESULT([system]) - else - AC_MSG_RESULT([system not found]) - AC_MSG_ERROR([--with-libpng=system specified, but no libpng found!]) - fi + PKG_CHECK_MODULES(PNG, libpng, [LIBPNG_FOUND=yes], [LIBPNG_FOUND=no]) + if test "x${LIBPNG_FOUND}" = "xyes"; then + # PKG_CHECK_MODULES will set PNG_CFLAGS and PNG_LIBS + USE_EXTERNAL_LIBPNG=true + AC_MSG_RESULT([system]) + else + AC_MSG_RESULT([system not found]) + AC_MSG_ERROR([--with-libpng=system specified, but no libpng found!]) + fi else - AC_MSG_ERROR([Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled']) + AC_MSG_ERROR([Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled']) fi AC_SUBST(USE_EXTERNAL_LIBPNG) + AC_SUBST(PNG_CFLAGS) + AC_SUBST(PNG_LIBS) ]) ################################################################################ @@ -204,16 +207,19 @@ DEFAULT_LCMS=bundled # If user didn't specify, use DEFAULT_LCMS if test "x${with_lcms}" = "x"; then - with_lcms=${DEFAULT_LCMS} + with_lcms=${DEFAULT_LCMS} fi if test "x${with_lcms}" = "xbundled"; then USE_EXTERNAL_LCMS=false + LCMS_CFLAGS="" + LCMS_LIBS="" AC_MSG_RESULT([bundled]) elif test "x${with_lcms}" = "xsystem"; then AC_MSG_RESULT([system]) PKG_CHECK_MODULES([LCMS], [lcms2], [LCMS_FOUND=yes], [LCMS_FOUND=no]) if test "x${LCMS_FOUND}" = "xyes"; then + # PKG_CHECK_MODULES will set LCMS_CFLAGS and LCMS_LIBS USE_EXTERNAL_LCMS=true else AC_MSG_ERROR([--with-lcms=system specified, but no lcms found!]) @@ -223,4 +229,6 @@ fi AC_SUBST(USE_EXTERNAL_LCMS) + AC_SUBST(LCMS_CFLAGS) + AC_SUBST(LCMS_LIBS) ]) diff -r f79de4a75868 -r e5c5721fe29b common/autoconf/platform.m4 --- a/common/autoconf/platform.m4 Thu Feb 02 21:20:36 2017 +0000 +++ b/common/autoconf/platform.m4 Thu Feb 02 21:55:29 2017 +0000 @@ -1,5 +1,5 @@ # -# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -276,12 +276,6 @@ [ PLATFORM_SETUP_LEGACY_VARS_HELPER([TARGET]) PLATFORM_SETUP_LEGACY_VARS_HELPER([BUILD]) - - # ZERO_ARCHDEF is used to enable architecture-specific code. - # This is used in legacy hotspot build. - ZERO_ARCHDEF="$HOTSPOT_TARGET_CPU_DEFINE" - AC_SUBST(ZERO_ARCHDEF) - ]) # $1 - Either TARGET or BUILD to setup the variables for. @@ -360,19 +354,16 @@ OPENJDK_$1_CPU_BUNDLE="$OPENJDK_$1_CPU" fi OPENJDK_$1_BUNDLE_PLATFORM="${OPENJDK_$1_OS_BUNDLE}-${OPENJDK_$1_CPU_BUNDLE}" - AC_SUBST(OPENJDK_$1_OS_BUNDLE) - AC_SUBST(OPENJDK_$1_CPU_BUNDLE) AC_SUBST(OPENJDK_$1_BUNDLE_PLATFORM) if test "x$OPENJDK_$1_CPU_BITS" = x64; then - A_LP64="LP64:=" # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in - # unpack200.exe + # unpack200.exe. This variable is used in + # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER. if test "x$OPENJDK_$1_OS" = xlinux || test "x$OPENJDK_$1_OS" = xmacosx; then OPENJDK_$1_ADD_LP64="-D_LP64=1" fi fi - AC_SUBST(LP64,$A_LP64) if test "x$COMPILE_TYPE" = "xcross"; then # FIXME: ... or should this include reduced builds..? diff -r f79de4a75868 -r e5c5721fe29b common/autoconf/spec.gmk.in --- a/common/autoconf/spec.gmk.in Thu Feb 02 21:20:36 2017 +0000 +++ b/common/autoconf/spec.gmk.in Thu Feb 02 21:55:29 2017 +0000 @@ -1,5 +1,5 @@ # -# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -87,9 +87,8 @@ HOTSPOT_TARGET_CPU_ARCH := @HOTSPOT_TARGET_CPU_ARCH@ HOTSPOT_TARGET_CPU_DEFINE := @HOTSPOT_TARGET_CPU_DEFINE@ -OPENJDK_TARGET_CPU_BUNDLE:=@OPENJDK_TARGET_CPU_BUNDLE@ -OPENJDK_TARGET_OS_BUNDLE:=@OPENJDK_TARGET_OS_BUNDLE@ OPENJDK_TARGET_BUNDLE_PLATFORM:=@OPENJDK_TARGET_BUNDLE_PLATFORM@ +JDK_ARCH_ABI_PROP_NAME := @JDK_ARCH_ABI_PROP_NAME@ # We are building on this build system. # When not cross-compiling, it is the same as the target. @@ -683,7 +682,6 @@ # Build setup ENABLE_AOT:=@ENABLE_AOT@ -ENABLE_JFR=@ENABLE_JFR@ ENABLE_INTREE_EC=@ENABLE_INTREE_EC@ USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@ USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@ diff -r f79de4a75868 -r e5c5721fe29b common/bin/unshuffle_list.txt --- a/common/bin/unshuffle_list.txt Thu Feb 02 21:20:36 2017 +0000 +++ b/common/bin/unshuffle_list.txt Thu Feb 02 21:55:29 2017 +0000 @@ -1163,9 +1163,6 @@ jdk/src/java.management/share/classes/sun/management/counter : jdk/src/share/classes/sun/management/counter jdk/src/java.management/share/classes/sun/management/counter/perf : jdk/src/share/classes/sun/management/counter/perf jdk/src/java.management/share/classes/sun/management : jdk/src/share/classes/sun/management -jdk/src/java.management/share/classes/sun/management/jdp : jdk/src/share/classes/sun/management/jdp -jdk/src/java.management/share/classes/sun/management/jmxremote : jdk/src/share/classes/sun/management/jmxremote -jdk/src/java.management/share/classes/sun/management/resources : jdk/src/share/classes/sun/management/resources jdk/src/java.management/share/conf : jdk/src/share/lib/management jdk/src/java.management/share/native/include/jmm.h : jdk/src/share/javavm/export/jmm.h jdk/src/java.management/share/native/libmanagement : jdk/src/share/native/sun/management @@ -1173,6 +1170,11 @@ jdk/src/java.management/unix/native/libmanagement : jdk/src/solaris/native/sun/management jdk/src/java.management/windows/classes/sun/management : jdk/src/windows/classes/sun/management jdk/src/java.management/windows/native/libmanagement : jdk/src/windows/native/sun/management +jdk/src/java.management.rmi/share/classes/com/sun/jmx/remote/internal/rmi/ProxyRef.java : jdk/src/share/classes/com/sun/jmx/remote/internal/ProxyRef.java +jdk/src/java.management.rmi/share/classes/com/sun/jmx/remote/internal/rmi/RMIExporter.java : jdk/src/share/classes/com/sun/jmx/remote/internal/RMIExporter.java +jdk/src/java.management.rmi/share/classes/com/sun/jmx/remote/internal/rmi/Unmarshal.java : jdk/src/share/classes/com/sun/jmx/remote/internal/Unmarshal.java +jdk/src/java.management.rmi/share/classes/com/sun/jmx/remote/protocol/rmi : jdk/src/share/classes/com/sun/jmx/remote/protocol/rmi +jdk/src/java.management.rmi/share/classes/javax/management/remote/rmi : jdk/src/share/classes/javax/management/remote/rmi jdk/src/java.naming/share/classes/com/sun/jndi/ldap/ext : jdk/src/share/classes/com/sun/jndi/ldap/ext jdk/src/java.naming/share/classes/com/sun/jndi/ldap : jdk/src/share/classes/com/sun/jndi/ldap jdk/src/java.naming/share/classes/com/sun/jndi/ldap/pool : jdk/src/share/classes/com/sun/jndi/ldap/pool @@ -1421,6 +1423,9 @@ jdk/src/jdk.localedata/share/classes/sun/util/resources/vi : jdk/src/share/classes/sun/util/resources/vi jdk/src/jdk.localedata/share/classes/sun/util/resources/zh : jdk/src/share/classes/sun/util/resources/zh jdk/src/jdk.management/share/classes/com/sun/management : jdk/src/share/classes/com/sun/management +jdk/src/jdk.management.agent/share/classes/jdk/internal/agent/resources : jdk/src/share/classes/sun/management/resources +jdk/src/jdk.management.agent/share/classes/sun/management/jmxremote : jdk/src/share/classes/sun/management/jmxremote +jdk/src/jdk.management.agent/share/classes/sun/management/jdp : jdk/src/share/classes/sun/management/jdp jdk/src/jdk.naming.dns/share/classes/com/sun/jndi/dns : jdk/src/share/classes/com/sun/jndi/dns jdk/src/jdk.naming.dns/share/classes/com/sun/jndi/url/dns : jdk/src/share/classes/com/sun/jndi/url/dns jdk/src/jdk.naming.dns/share/classes/META-INF/services : jdk/src/share/classes/sun/net/spi/nameservice/dns/META-INF/services diff -r f79de4a75868 -r e5c5721fe29b make/CompileJavaModules.gmk --- a/make/CompileJavaModules.gmk Thu Feb 02 21:20:36 2017 +0000 +++ b/make/CompileJavaModules.gmk Thu Feb 02 21:55:29 2017 +0000 @@ -247,6 +247,10 @@ ################################################################################ +java.management.rmi_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:javax.*' + +################################################################################ + java.prefs_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*' ################################################################################ diff -r f79de4a75868 -r e5c5721fe29b make/Images.gmk --- a/make/Images.gmk Thu Feb 02 21:20:36 2017 +0000 +++ b/make/Images.gmk Thu Feb 02 21:55:29 2017 +0000 @@ -72,6 +72,7 @@ java.compiler \ java.instrument \ java.management \ + java.management.rmi \ java.naming \ java.prefs \ java.security.jgss \ diff -r f79de4a75868 -r e5c5721fe29b make/common/Modules.gmk --- a/make/common/Modules.gmk Thu Feb 02 21:20:36 2017 +0000 +++ b/make/common/Modules.gmk Thu Feb 02 21:55:29 2017 +0000 @@ -51,6 +51,7 @@ java.instrument \ java.logging \ java.management \ + java.management.rmi \ java.naming \ java.prefs \ java.rmi \ @@ -58,6 +59,7 @@ java.xml \ jdk.httpserver \ jdk.management \ + jdk.management.agent \ jdk.net \ jdk.sctp \ jdk.unsupported \