808 BUILD_OUTPUT
809 OVERRIDE_SRC_ROOT
810 ADD_SRC_ROOT
811 JDK_TOPDIR
812 NASHORN_TOPDIR
813 HOTSPOT_TOPDIR
814 JAXWS_TOPDIR
815 JAXP_TOPDIR
816 CORBA_TOPDIR
817 LANGTOOLS_TOPDIR
818 JAVAC_FLAGS
819 BOOT_JDK_SOURCETARGET
820 JARSIGNER
821 JAR
822 JAVAH
823 JAVAC
824 JAVA
825 BOOT_JDK
826 JAVA_CHECK
827 JAVAC_CHECK
828 COOKED_BUILD_NUMBER
829 JDK_VERSION
830 COPYRIGHT_YEAR
831 MACOSX_BUNDLE_ID_BASE
832 MACOSX_BUNDLE_NAME_BASE
833 COMPANY_NAME
834 JDK_RC_PLATFORM_NAME
835 PRODUCT_SUFFIX
836 PRODUCT_NAME
837 LAUNCHER_NAME
838 MILESTONE
839 JDK_BUILD_NUMBER
840 JDK_UPDATE_VERSION
841 JDK_MICRO_VERSION
842 JDK_MINOR_VERSION
843 JDK_MAJOR_VERSION
844 USER_RELEASE_SUFFIX
845 COMPRESS_JARS
846 RMICONNECTOR_IIOP
847 UNLIMITED_CRYPTO
848 CACERTS_FILE
849 TEST_IN_BUILD
850 BUILD_HEADLESS
851 SUPPORT_HEADFUL
852 SUPPORT_HEADLESS
853 BDEPS_FTP
854 BDEPS_UNZIP
855 OS_VERSION_MICRO
856 OS_VERSION_MINOR
857 OS_VERSION_MAJOR
858 PKG_CONFIG
859 BASH_ARGS
860 CODESIGN
861 XATTR
862 DSYMUTIL
863 IS_GNU_TIME
864 TIME
1046 enable_debug
1047 with_debug_level
1048 with_devkit
1049 with_sys_root
1050 with_sysroot
1051 with_tools_dir
1052 with_toolchain_path
1053 with_extra_path
1054 with_sdk_name
1055 with_conf_name
1056 with_output_sync
1057 with_builddeps_conf
1058 with_builddeps_server
1059 with_builddeps_dir
1060 with_builddeps_group
1061 enable_headful
1062 enable_hotspot_test_in_build
1063 with_cacerts_file
1064 enable_unlimited_crypto
1065 enable_rmiconnector_iiop
1066 with_milestone
1067 with_update_version
1068 with_user_release_suffix
1069 with_build_number
1070 with_copyright_year
1071 with_boot_jdk
1072 with_add_source_root
1073 with_override_source_root
1074 with_adds_and_overrides
1075 with_override_langtools
1076 with_override_corba
1077 with_override_jaxp
1078 with_override_jaxws
1079 with_override_hotspot
1080 with_override_nashorn
1081 with_override_jdk
1082 with_import_hotspot
1083 with_toolchain_type
1084 with_toolchain_version
1085 with_jtreg
1086 with_extra_cflags
1087 with_extra_cxxflags
1088 with_extra_ldflags
1089 enable_warnings_as_errors
1090 enable_debug_symbols
1892 --with-sys-root alias for --with-sysroot for backwards compatability
1893 --with-sysroot use this directory as sysroot
1894 --with-tools-dir alias for --with-toolchain-path for backwards
1895 compatibility
1896 --with-toolchain-path prepend these directories when searching for
1897 toolchain binaries (compilers etc)
1898 --with-extra-path prepend these directories to the default path
1899 --with-sdk-name use the platform SDK of the given name. [macosx]
1900 --with-conf-name use this as the name of the configuration [generated
1901 from important configuration options]
1902 --with-output-sync set make output sync type if supported by make.
1903 [recurse]
1904 --with-builddeps-conf use this configuration file for the builddeps
1905 --with-builddeps-server download and use build dependencies from this server
1906 url
1907 --with-builddeps-dir store downloaded build dependencies here
1908 [/localhome/builddeps]
1909 --with-builddeps-group chgrp the downloaded build dependencies to this
1910 group
1911 --with-cacerts-file specify alternative cacerts file
1912 --with-milestone Set milestone value for build [internal]
1913 --with-update-version Set update version value for build [b00]
1914 --with-user-release-suffix
1915 Add a custom string to the version string if build
1916 number is not set.[username_builddateb00]
1917 --with-build-number Set build number value for build [b00]
1918 --with-copyright-year Set copyright year value for build [current year]
1919 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed]
1920 --with-add-source-root for each and every source directory, look in this
1921 additional source root for the same directory; if it
1922 exists and have files in it, include it in the build
1923 --with-override-source-root
1924 for each and every source directory, look in this
1925 override source root for the same directory; if it
1926 exists, use that directory instead and ignore the
1927 directory in the original source root
1928 --with-adds-and-overrides
1929 use the subdirs 'adds' and 'overrides' in the
1930 specified directory as add-source-root and
1931 override-source-root
1932 --with-override-langtools
1933 use this langtools dir for the build
1934 --with-override-corba use this corba dir for the build
1935 --with-override-jaxp use this jaxp dir for the build
1936 --with-override-jaxws use this jaxws dir for the build
1937 --with-override-hotspot use this hotspot dir for the build
1938 --with-override-nashorn use this nashorn dir for the build
3808
3809
3810
3811
3812
3813 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3814 # [RUN-IF-FALSE])
3815 # ------------------------------------------------------------
3816 # Check that the c and c++ compilers support an argument
3817
3818
3819 # FLAGS_LINKER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3820 # [RUN-IF-FALSE])
3821 # ------------------------------------------------------------
3822 # Check that the linker support an argument
3823
3824
3825
3826
3827 #
3828 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3829 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3830 #
3831 # This code is free software; you can redistribute it and/or modify it
3832 # under the terms of the GNU General Public License version 2 only, as
3833 # published by the Free Software Foundation. Oracle designates this
3834 # particular file as subject to the "Classpath" exception as provided
3835 # by Oracle in the LICENSE file that accompanied this code.
3836 #
3837 # This code is distributed in the hope that it will be useful, but WITHOUT
3838 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3839 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3840 # version 2 for more details (a copy is included in the LICENSE file that
3841 # accompanied this code).
3842 #
3843 # You should have received a copy of the GNU General Public License version
3844 # 2 along with this work; if not, write to the Free Software Foundation,
3845 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3846 #
3847 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3848 # or visit www.oracle.com if you need additional information or have any
3977 # questions.
3978 #
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989 ###############################################################################
3990 #
3991 # Should we build only OpenJDK even if closed sources are present?
3992 #
3993
3994
3995
3996
3997 ###############################################################################
3998 #
3999 # Setup version numbers
4000 #
4001
4002
4003
4004
4005
4006
4007 ################################################################################
4008 #
4009 # Gcov coverage data for hotspot
4010 #
4011
4012
4013 #
4014 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
4015 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4016 #
4017 # This code is free software; you can redistribute it and/or modify it
4018 # under the terms of the GNU General Public License version 2 only, as
4019 # published by the Free Software Foundation. Oracle designates this
4020 # particular file as subject to the "Classpath" exception as provided
4021 # by Oracle in the LICENSE file that accompanied this code.
4022 #
4023 # This code is distributed in the hope that it will be useful, but WITHOUT
4024 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4025 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4026 # version 2 for more details (a copy is included in the LICENSE file that
4027 # accompanied this code).
4028 #
4029 # You should have received a copy of the GNU General Public License version
4030 # 2 along with this work; if not, write to the Free Software Foundation,
4031 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4032 #
4033 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363 # This line needs to be here, verbatim, after all includes and the dummy hook
4364 # definitions. It is replaced with custom functionality when building
4365 # custom sources.
4366 #CUSTOM_AUTOCONF_INCLUDE
4367
4368 # Do not change or remove the following line, it is needed for consistency checks:
4369 DATE_WHEN_GENERATED=1432629750
4370
4371 ###############################################################################
4372 #
4373 # Initialization / Boot-strapping
4374 #
4375 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4376 # thus it jumps back and forth, each time gaining something needed later on.
4377 #
4378 ###############################################################################
4379
4380 # If we are requested to print additional help, do that and then exit.
4381 # This must be the very first call.
4382
4383 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4384 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4385 $PRINTF "Which are valid to use depends on the build platform.\n"
4386 for toolchain in $VALID_TOOLCHAINS_all; do
4387 # Use indirect variable referencing
4388 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4389 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
20071 ###############################################################################
20072 #
20073 # Enable or disable unlimited crypto
20074 #
20075 # Check whether --enable-unlimited-crypto was given.
20076 if test "${enable_unlimited_crypto+set}" = set; then :
20077 enableval=$enable_unlimited_crypto;
20078 else
20079 enable_unlimited_crypto=no
20080 fi
20081
20082 if test "x$enable_unlimited_crypto" = "xyes"; then
20083 UNLIMITED_CRYPTO=true
20084 else
20085 UNLIMITED_CRYPTO=false
20086 fi
20087
20088
20089 ###############################################################################
20090 #
20091 # Enable or disable the elliptic curve crypto implementation
20092 #
20093
20094
20095 ###############################################################################
20096 #
20097 # --enable-rmiconnector-iiop
20098 #
20099 # Check whether --enable-rmiconnector-iiop was given.
20100 if test "${enable_rmiconnector_iiop+set}" = set; then :
20101 enableval=$enable_rmiconnector_iiop;
20102 fi
20103
20104 if test "x$enable_rmiconnector_iiop" = "xyes"; then
20105 RMICONNECTOR_IIOP=true
20106 else
20107 RMICONNECTOR_IIOP=false
20108 fi
20109
20110
20111 ###############################################################################
20112 #
20113 # Compress jars
20114 #
20115 COMPRESS_JARS=false
20116
20117
20118
20119
20120 # Source the version numbers
20121 . $AUTOCONF_DIR/version-numbers
20122
20123 # Get the settings from parameters
20124
20125 # Check whether --with-milestone was given.
20126 if test "${with_milestone+set}" = set; then :
20127 withval=$with_milestone;
20128 fi
20129
20130 if test "x$with_milestone" = xyes; then
20131 as_fn_error $? "Milestone must have a value" "$LINENO" 5
20132 elif test "x$with_milestone" != x; then
20133 MILESTONE="$with_milestone"
20134 fi
20135 if test "x$MILESTONE" = x; then
20136 MILESTONE=internal
20137 fi
20138
20139
20140 # Check whether --with-update-version was given.
20141 if test "${with_update_version+set}" = set; then :
20142 withval=$with_update_version;
20143 fi
20144
20145 if test "x$with_update_version" = xyes; then
20146 as_fn_error $? "Update version must have a value" "$LINENO" 5
20147 elif test "x$with_update_version" != x; then
20148 JDK_UPDATE_VERSION="$with_update_version"
20149 # On macosx 10.7, it's not possible to set --with-update-version=0X due
20150 # to a bug in expr (which reduces it to just X). To work around this, we
20151 # always add a 0 to one digit update versions.
20152 if test "${#JDK_UPDATE_VERSION}" = "1"; then
20153 JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
20154 fi
20155 fi
20156
20157
20158 # Check whether --with-user-release-suffix was given.
20159 if test "${with_user_release_suffix+set}" = set; then :
20160 withval=$with_user_release_suffix;
20161 fi
20162
20163 if test "x$with_user_release_suffix" = xyes; then
20164 as_fn_error $? "Release suffix must have a value" "$LINENO" 5
20165 elif test "x$with_user_release_suffix" != x; then
20166 USER_RELEASE_SUFFIX="$with_user_release_suffix"
20167 fi
20168
20169
20170 # Check whether --with-build-number was given.
20171 if test "${with_build_number+set}" = set; then :
20172 withval=$with_build_number;
20173 fi
20174
20175 if test "x$with_build_number" = xyes; then
20176 as_fn_error $? "Build number must have a value" "$LINENO" 5
20177 elif test "x$with_build_number" != x; then
20178 JDK_BUILD_NUMBER="$with_build_number"
20179 fi
20180 # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
20181 if test "x$JDK_BUILD_NUMBER" = x; then
20182 JDK_BUILD_NUMBER=b00
20183 if test "x$USER_RELEASE_SUFFIX" = x; then
20184 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
20185 # Avoid [:alnum:] since it depends on the locale.
20186 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
20187 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20188 fi
20189 fi
20190
20191 # Now set the JDK version, milestone, build number etc.
20192
20193
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208 # Check whether --with-copyright-year was given.
20209 if test "${with_copyright_year+set}" = set; then :
20210 withval=$with_copyright_year;
20211 fi
20212
20213 if test "x$with_copyright_year" = xyes; then
20214 as_fn_error $? "Copyright year must have a value" "$LINENO" 5
20215 elif test "x$with_copyright_year" != x; then
20216 COPYRIGHT_YEAR="$with_copyright_year"
20217 else
20218 COPYRIGHT_YEAR=`date +'%Y'`
20219 fi
20220
20221
20222 if test "x$JDK_UPDATE_VERSION" != x; then
20223 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
20224 else
20225 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
20226 fi
20227
20228
20229 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
20230
20231
20232
20233 ###############################################################################
20234 #
20235 # Setup BootJDK, used to bootstrap the build.
20236 #
20237 ###############################################################################
20238
20239
20240 BOOT_JDK_FOUND=no
20241
20242 # Check whether --with-boot-jdk was given.
20243 if test "${with_boot_jdk+set}" = set; then :
20244 withval=$with_boot_jdk;
20245 fi
20246
20247
20248 # We look for the Boot JDK through various means, going from more certain to
20249 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
41048 AR_OUT_OPTION='rcs$(SPACE)'
41049 fi
41050
41051
41052
41053
41054
41055 # On Windows, we need to set RC flags.
41056 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
41057 RC_FLAGS="-nologo -l0x409"
41058 if test "x$VARIANT" = xOPT; then
41059 RC_FLAGS="$RC_FLAGS -DNDEBUG"
41060 fi
41061
41062 # The version variables used to create RC_FLAGS may be overridden
41063 # in a custom configure script, or possibly the command line.
41064 # Let those variables be expanded at make time in spec.gmk.
41065 # The \$ are escaped to the shell, and the $(...) variables
41066 # are evaluated by make.
41067 RC_FLAGS="$RC_FLAGS \
41068 -D\"JDK_BUILD_ID=\$(FULL_VERSION)\" \
41069 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \
41070 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \
41071 -D\"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \
41072 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \
41073 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \
41074 -D\"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\""
41075 fi
41076
41077
41078 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
41079 # silence copyright notice and other headers.
41080 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo"
41081 fi
41082
41083 if test "x$SYSROOT" != "x"; then
41084 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then
41085 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
41086 # Solaris Studio does not have a concept of sysroot. Instead we must
41087 # make sure the default include and lib dirs are appended to each
41088 # compile and link command line.
41089 SYSROOT_CFLAGS="-I$SYSROOT/usr/include"
41090 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \
41091 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \
41092 -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR"
41093 fi
41094 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
42131 fi
42132 fi
42133
42134 # Setup target OS define. Use OS target name but in upper case.
42135 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42136 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE"
42137
42138 # Setup target CPU
42139 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY"
42140
42141 # Setup debug/release defines
42142 if test "x$DEBUG_LEVEL" = xrelease; then
42143 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG"
42144 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
42145 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED"
42146 fi
42147 else
42148 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG"
42149 fi
42150
42151 # Setup release name
42152 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'"
42153
42154
42155 # Set some additional per-OS defines.
42156 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
42157 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT"
42158 elif test "x$OPENJDK_TARGET_OS" = xaix; then
42159 # FIXME: PPC64 should not be here.
42160 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DPPC64"
42161 elif test "x$OPENJDK_TARGET_OS" = xbsd; then
42162 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE"
42163 fi
42164
42165 # Additional macosx handling
42166 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
42167 # Setting these parameters makes it an error to link to macosx APIs that are
42168 # newer than the given OS version and makes the linked binaries compatible
42169 # even if built on a newer version of the OS.
42170 # The expected format is X.Y.Z
42171 MACOSX_VERSION_MIN=10.7.0
42172
42173
42174 # The macro takes the version with no dots, ex: 1070
54256 else
54257 if test "x$IS_RECONFIGURE" != "xyes"; then
54258 printf "A configuration has been successfully checked but not created\n"
54259 else
54260 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUT_ROOT"
54261 fi
54262 fi
54263 if test "x$CONFIGURE_COMMAND_LINE" != x; then
54264 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n"
54265 else
54266 printf "using default settings.\n"
54267 fi
54268
54269 printf "\n"
54270 printf "Configuration summary:\n"
54271 printf "* Debug level: $DEBUG_LEVEL\n"
54272 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n"
54273 printf "* JDK variant: $JDK_VARIANT\n"
54274 printf "* JVM variants: $with_jvm_variants\n"
54275 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n"
54276
54277 printf "\n"
54278 printf "Tools summary:\n"
54279 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
54280 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n"
54281 fi
54282 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n"
54283 if test "x$TOOLCHAIN_VERSION" != "x"; then
54284 print_version=" $TOOLCHAIN_VERSION"
54285 fi
54286 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION$print_version)\n"
54287 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n"
54288 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n"
54289
54290 printf "\n"
54291 printf "Build performance summary:\n"
54292 printf "* Cores to use: $JOBS\n"
54293 printf "* Memory limit: $MEMORY_SIZE MB\n"
54294 if test "x$CCACHE_STATUS" != "x"; then
54295 printf "* ccache status: $CCACHE_STATUS\n"
|
808 BUILD_OUTPUT
809 OVERRIDE_SRC_ROOT
810 ADD_SRC_ROOT
811 JDK_TOPDIR
812 NASHORN_TOPDIR
813 HOTSPOT_TOPDIR
814 JAXWS_TOPDIR
815 JAXP_TOPDIR
816 CORBA_TOPDIR
817 LANGTOOLS_TOPDIR
818 JAVAC_FLAGS
819 BOOT_JDK_SOURCETARGET
820 JARSIGNER
821 JAR
822 JAVAH
823 JAVAC
824 JAVA
825 BOOT_JDK
826 JAVA_CHECK
827 JAVAC_CHECK
828 VERSION_SHORT
829 VERSION_STRING
830 VERSION_NUMBER_FOUR_POSITIONS
831 VERSION_NUMBER
832 VERSION_OPT
833 VERSION_BUILD
834 VERSION_PRE
835 VERSION_PATCH
836 VERSION_SECURITY
837 VERSION_MINOR
838 VERSION_MAJOR
839 MACOSX_BUNDLE_ID_BASE
840 MACOSX_BUNDLE_NAME_BASE
841 COMPANY_NAME
842 JDK_RC_PLATFORM_NAME
843 PRODUCT_SUFFIX
844 PRODUCT_NAME
845 LAUNCHER_NAME
846 COPYRIGHT_YEAR
847 COMPRESS_JARS
848 RMICONNECTOR_IIOP
849 UNLIMITED_CRYPTO
850 CACERTS_FILE
851 TEST_IN_BUILD
852 BUILD_HEADLESS
853 SUPPORT_HEADFUL
854 SUPPORT_HEADLESS
855 BDEPS_FTP
856 BDEPS_UNZIP
857 OS_VERSION_MICRO
858 OS_VERSION_MINOR
859 OS_VERSION_MAJOR
860 PKG_CONFIG
861 BASH_ARGS
862 CODESIGN
863 XATTR
864 DSYMUTIL
865 IS_GNU_TIME
866 TIME
1048 enable_debug
1049 with_debug_level
1050 with_devkit
1051 with_sys_root
1052 with_sysroot
1053 with_tools_dir
1054 with_toolchain_path
1055 with_extra_path
1056 with_sdk_name
1057 with_conf_name
1058 with_output_sync
1059 with_builddeps_conf
1060 with_builddeps_server
1061 with_builddeps_dir
1062 with_builddeps_group
1063 enable_headful
1064 enable_hotspot_test_in_build
1065 with_cacerts_file
1066 enable_unlimited_crypto
1067 enable_rmiconnector_iiop
1068 with_copyright_year
1069 with_milestone
1070 with_update_version
1071 with_user_release_suffix
1072 with_build_number
1073 with_version_string
1074 with_version_pre_base
1075 with_version_pre_debuglevel
1076 with_version_opt
1077 with_version_build
1078 with_version_major
1079 with_version_minor
1080 with_version_security
1081 with_version_patch
1082 with_boot_jdk
1083 with_add_source_root
1084 with_override_source_root
1085 with_adds_and_overrides
1086 with_override_langtools
1087 with_override_corba
1088 with_override_jaxp
1089 with_override_jaxws
1090 with_override_hotspot
1091 with_override_nashorn
1092 with_override_jdk
1093 with_import_hotspot
1094 with_toolchain_type
1095 with_toolchain_version
1096 with_jtreg
1097 with_extra_cflags
1098 with_extra_cxxflags
1099 with_extra_ldflags
1100 enable_warnings_as_errors
1101 enable_debug_symbols
1903 --with-sys-root alias for --with-sysroot for backwards compatability
1904 --with-sysroot use this directory as sysroot
1905 --with-tools-dir alias for --with-toolchain-path for backwards
1906 compatibility
1907 --with-toolchain-path prepend these directories when searching for
1908 toolchain binaries (compilers etc)
1909 --with-extra-path prepend these directories to the default path
1910 --with-sdk-name use the platform SDK of the given name. [macosx]
1911 --with-conf-name use this as the name of the configuration [generated
1912 from important configuration options]
1913 --with-output-sync set make output sync type if supported by make.
1914 [recurse]
1915 --with-builddeps-conf use this configuration file for the builddeps
1916 --with-builddeps-server download and use build dependencies from this server
1917 url
1918 --with-builddeps-dir store downloaded build dependencies here
1919 [/localhome/builddeps]
1920 --with-builddeps-group chgrp the downloaded build dependencies to this
1921 group
1922 --with-cacerts-file specify alternative cacerts file
1923 --with-copyright-year Set copyright year value for build [current year]
1924 --with-milestone Deprecated. Option is kept for backwards
1925 compatibility and is ignored
1926 --with-update-version Deprecated. Option is kept for backwards
1927 compatibility and is ignored
1928 --with-user-release-suffix
1929 Deprecated. Option is kept for backwards
1930 compatibility and is ignored
1931 --with-build-number Deprecated. Option is kept for backwards
1932 compatibility and is ignored
1933 --with-version-string Set version string [calculated]
1934 --with-version-pre-base Set the base part of the version 'PRE' field
1935 (pre-release identifier) ['internal']
1936 --with-version-pre-debuglevel
1937 Set the debug level part of the version 'PRE' field
1938 (pre-release identifier) [current debug level]
1939 --with-version-opt Set version 'OPT' field (build metadata)
1940 [<timestamp>.<user>.<dirname>]
1941 --with-version-build Set version 'BUILD' field (build number) [not
1942 specified]
1943 --with-version-major Set version 'MAJOR' field (first number) [current
1944 source value]
1945 --with-version-minor Set version 'MINOR' field (second number) [current
1946 source value]
1947 --with-version-security Set version 'SECURITY' field (third number) [current
1948 source value]
1949 --with-version-patch Set version 'PATCH' field (fourth number) [not
1950 specified]
1951 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed]
1952 --with-add-source-root for each and every source directory, look in this
1953 additional source root for the same directory; if it
1954 exists and have files in it, include it in the build
1955 --with-override-source-root
1956 for each and every source directory, look in this
1957 override source root for the same directory; if it
1958 exists, use that directory instead and ignore the
1959 directory in the original source root
1960 --with-adds-and-overrides
1961 use the subdirs 'adds' and 'overrides' in the
1962 specified directory as add-source-root and
1963 override-source-root
1964 --with-override-langtools
1965 use this langtools dir for the build
1966 --with-override-corba use this corba dir for the build
1967 --with-override-jaxp use this jaxp dir for the build
1968 --with-override-jaxws use this jaxws dir for the build
1969 --with-override-hotspot use this hotspot dir for the build
1970 --with-override-nashorn use this nashorn dir for the build
3840
3841
3842
3843
3844
3845 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3846 # [RUN-IF-FALSE])
3847 # ------------------------------------------------------------
3848 # Check that the c and c++ compilers support an argument
3849
3850
3851 # FLAGS_LINKER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3852 # [RUN-IF-FALSE])
3853 # ------------------------------------------------------------
3854 # Check that the linker support an argument
3855
3856
3857
3858
3859 #
3860 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3861 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3862 #
3863 # This code is free software; you can redistribute it and/or modify it
3864 # under the terms of the GNU General Public License version 2 only, as
3865 # published by the Free Software Foundation. Oracle designates this
3866 # particular file as subject to the "Classpath" exception as provided
3867 # by Oracle in the LICENSE file that accompanied this code.
3868 #
3869 # This code is distributed in the hope that it will be useful, but WITHOUT
3870 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3871 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3872 # version 2 for more details (a copy is included in the LICENSE file that
3873 # accompanied this code).
3874 #
3875 # You should have received a copy of the GNU General Public License version
3876 # 2 along with this work; if not, write to the Free Software Foundation,
3877 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3878 #
3879 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3880 # or visit www.oracle.com if you need additional information or have any
4009 # questions.
4010 #
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021 ###############################################################################
4022 #
4023 # Should we build only OpenJDK even if closed sources are present?
4024 #
4025
4026
4027
4028
4029
4030
4031 ###############################################################################
4032 #
4033 # Enable or disable the elliptic curve crypto implementation
4034 #
4035
4036
4037
4038
4039
4040 ################################################################################
4041 #
4042 # Gcov coverage data for hotspot
4043 #
4044
4045
4046 #
4047 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4048 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4049 #
4050 # This code is free software; you can redistribute it and/or modify it
4051 # under the terms of the GNU General Public License version 2 only, as
4052 # published by the Free Software Foundation. Oracle designates this
4053 # particular file as subject to the "Classpath" exception as provided
4054 # by Oracle in the LICENSE file that accompanied this code.
4055 #
4056 # This code is distributed in the hope that it will be useful, but WITHOUT
4057 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4058 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4059 # version 2 for more details (a copy is included in the LICENSE file that
4060 # accompanied this code).
4061 #
4062 # You should have received a copy of the GNU General Public License version
4063 # 2 along with this work; if not, write to the Free Software Foundation,
4064 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4065 #
4066 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4067 # or visit www.oracle.com if you need additional information or have any
4068 # questions.
4069 #
4070
4071 ###############################################################################
4072 #
4073 # Setup version numbers
4074 #
4075
4076 # Verify that a given string represent a valid version number, and assing it to
4077 # a variable.
4078 # Argument 1: the variable to assign to
4079 # Argument 2: the value given by the user
4080
4081
4082
4083
4084 #
4085 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
4086 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4087 #
4088 # This code is free software; you can redistribute it and/or modify it
4089 # under the terms of the GNU General Public License version 2 only, as
4090 # published by the Free Software Foundation. Oracle designates this
4091 # particular file as subject to the "Classpath" exception as provided
4092 # by Oracle in the LICENSE file that accompanied this code.
4093 #
4094 # This code is distributed in the hope that it will be useful, but WITHOUT
4095 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4096 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4097 # version 2 for more details (a copy is included in the LICENSE file that
4098 # accompanied this code).
4099 #
4100 # You should have received a copy of the GNU General Public License version
4101 # 2 along with this work; if not, write to the Free Software Foundation,
4102 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4103 #
4104 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434 # This line needs to be here, verbatim, after all includes and the dummy hook
4435 # definitions. It is replaced with custom functionality when building
4436 # custom sources.
4437 #CUSTOM_AUTOCONF_INCLUDE
4438
4439 # Do not change or remove the following line, it is needed for consistency checks:
4440 DATE_WHEN_GENERATED=1433492710
4441
4442 ###############################################################################
4443 #
4444 # Initialization / Boot-strapping
4445 #
4446 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4447 # thus it jumps back and forth, each time gaining something needed later on.
4448 #
4449 ###############################################################################
4450
4451 # If we are requested to print additional help, do that and then exit.
4452 # This must be the very first call.
4453
4454 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4455 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4456 $PRINTF "Which are valid to use depends on the build platform.\n"
4457 for toolchain in $VALID_TOOLCHAINS_all; do
4458 # Use indirect variable referencing
4459 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4460 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
20142 ###############################################################################
20143 #
20144 # Enable or disable unlimited crypto
20145 #
20146 # Check whether --enable-unlimited-crypto was given.
20147 if test "${enable_unlimited_crypto+set}" = set; then :
20148 enableval=$enable_unlimited_crypto;
20149 else
20150 enable_unlimited_crypto=no
20151 fi
20152
20153 if test "x$enable_unlimited_crypto" = "xyes"; then
20154 UNLIMITED_CRYPTO=true
20155 else
20156 UNLIMITED_CRYPTO=false
20157 fi
20158
20159
20160 ###############################################################################
20161 #
20162 # --enable-rmiconnector-iiop
20163 #
20164 # Check whether --enable-rmiconnector-iiop was given.
20165 if test "${enable_rmiconnector_iiop+set}" = set; then :
20166 enableval=$enable_rmiconnector_iiop;
20167 fi
20168
20169 if test "x$enable_rmiconnector_iiop" = "xyes"; then
20170 RMICONNECTOR_IIOP=true
20171 else
20172 RMICONNECTOR_IIOP=false
20173 fi
20174
20175
20176 ###############################################################################
20177 #
20178 # Compress jars
20179 #
20180 COMPRESS_JARS=false
20181
20182
20183
20184 # Setup default copyright year. Mostly overridden when building close to a new year.
20185
20186 # Check whether --with-copyright-year was given.
20187 if test "${with_copyright_year+set}" = set; then :
20188 withval=$with_copyright_year;
20189 fi
20190
20191 if test "x$with_copyright_year" = xyes; then
20192 as_fn_error $? "Copyright year must have a value" "$LINENO" 5
20193 elif test "x$with_copyright_year" != x; then
20194 COPYRIGHT_YEAR="$with_copyright_year"
20195 else
20196 COPYRIGHT_YEAR=`date +'%Y'`
20197 fi
20198
20199
20200
20201 # Warn user that old version arguments are deprecated.
20202
20203
20204 # Check whether --with-milestone was given.
20205 if test "${with_milestone+set}" = set; then :
20206 withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5
20207 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;}
20208 fi
20209
20210
20211
20212
20213 # Check whether --with-update-version was given.
20214 if test "${with_update_version+set}" = set; then :
20215 withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5
20216 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;}
20217 fi
20218
20219
20220
20221
20222 # Check whether --with-user-release-suffix was given.
20223 if test "${with_user_release_suffix+set}" = set; then :
20224 withval=$with_user_release_suffix; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&5
20225 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;}
20226 fi
20227
20228
20229
20230
20231 # Check whether --with-build-number was given.
20232 if test "${with_build_number+set}" = set; then :
20233 withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5
20234 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;}
20235 fi
20236
20237
20238
20239 # Source the version numbers file
20240 . $AUTOCONF_DIR/version-numbers
20241
20242 # Some non-version number information is set in that file
20243
20244
20245
20246
20247
20248
20249
20250
20251 # Override version from arguments
20252
20253 # If --with-version-string is set, process it first. It is possible to
20254 # override parts with more specific flags, since these are processed later.
20255
20256 # Check whether --with-version-string was given.
20257 if test "${with_version_string+set}" = set; then :
20258 withval=$with_version_string;
20259 fi
20260
20261 if test "x$with_version_string" = xyes; then
20262 as_fn_error $? "--with--version-string must have a value" "$LINENO" 5
20263 elif test "x$with_version_string" != x; then
20264 # Additional [] needed to keep m4 from mangling shell constructs.
20265 if [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?(\.([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then
20266 VERSION_MAJOR=${BASH_REMATCH[1]}
20267 VERSION_MINOR=${BASH_REMATCH[3]}
20268 VERSION_SECURITY=${BASH_REMATCH[5]}
20269 VERSION_PATCH=${BASH_REMATCH[7]}
20270 VERSION_PRE_BASE=${BASH_REMATCH[9]}
20271 VERSION_PRE_DEBUGLEVEL=${BASH_REMATCH[11]}
20272 version_plus_separator=${BASH_REMATCH[13]}
20273 VERSION_BUILD=${BASH_REMATCH[14]}
20274 VERSION_OPT=${BASH_REMATCH[16]}
20275 # Unspecified numerical fields is interpreted as 0.
20276 if test "x$VERSION_MINOR" = x; then
20277 VERSION_MINOR=0
20278 fi
20279 if test "x$VERSION_SECURITY" = x; then
20280 VERSION_SECURITY=0
20281 fi
20282 if test "x$VERSION_PATCH" = x; then
20283 VERSION_PATCH=0
20284 fi
20285 if test "x$version_plus_separator" != x && test "x$VERSION_BUILD$VERSION_OPT" = x; then
20286 as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' is missing" "$LINENO" 5
20287 fi
20288 # Stop the version part process from setting default values.
20289 # We still allow them to explicitely override though.
20290 NO_DEFAULT_VERSION_PARTS=true
20291 else
20292 as_fn_error $? "--with--version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5
20293 fi
20294 fi
20295
20296
20297 # Check whether --with-version-pre-base was given.
20298 if test "${with_version_pre_base+set}" = set; then :
20299 withval=$with_version_pre_base; with_version_pre_base_present=true
20300 else
20301 with_version_pre_base_present=false
20302 fi
20303
20304
20305 if test "x$with_version_pre_base_present" = xtrue; then
20306 if test "x$with_version_pre_base" = xyes; then
20307 as_fn_error $? "--with--version-pre-base must have a value" "$LINENO" 5
20308 elif test "x$with_version_pre_base" = xno; then
20309 # Interpret --without-* as empty string instead of the literal "no"
20310 VERSION_PRE_BASE=
20311 else
20312 # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4.
20313 VERSION_PRE_BASE=`$ECHO "$with_version_pre_base" | $TR -c -d '[a-z][A-Z]'`
20314 if test "x$VERSION_PRE_BASE" != "x$with_version_pre_base"; then
20315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with--version-pre-base value has been sanitized from '$with_version_pre_base' to '$VERSION_PRE_BASE'" >&5
20316 $as_echo "$as_me: WARNING: --with--version-pre-base value has been sanitized from '$with_version_pre_base' to '$VERSION_PRE_BASE'" >&2;}
20317 fi
20318 fi
20319 else
20320 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
20321 # Default is to use "internal" as pre
20322 VERSION_PRE_BASE="internal"
20323 fi
20324 fi
20325
20326
20327 # Check whether --with-version-pre-debuglevel was given.
20328 if test "${with_version_pre_debuglevel+set}" = set; then :
20329 withval=$with_version_pre_debuglevel; with_version_pre_debuglevel_present=true
20330 else
20331 with_version_pre_debuglevel_present=false
20332 fi
20333
20334
20335 if test "x$with_version_pre_debuglevel_present" = xtrue; then
20336 if test "x$with_version_pre_debuglevel" = xyes; then
20337 as_fn_error $? "--with--version-pre-debuglevel must have a value" "$LINENO" 5
20338 elif test "x$with_version_pre_debuglevel" = xno; then
20339 # Interpret --without-* as empty string instead of the literal "no"
20340 VERSION_PRE_DEBUGLEVEL=
20341 else
20342 # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4.
20343 VERSION_PRE_DEBUGLEVEL=`$ECHO "$with_version_pre_debuglevel" | $TR -c -d '[a-z][A-Z]'`
20344 if test "x$VERSION_PRE_DEBUGLEVEL" != "x$with_version_pre_debuglevel"; then
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with--version-pre-debuglevel value has been sanitized from '$with_version_pre_debuglevel' to '$VERSION_PRE_DEBUGLEVEL'" >&5
20346 $as_echo "$as_me: WARNING: --with--version-pre-debuglevel value has been sanitized from '$with_version_pre_debuglevel' to '$VERSION_PRE_DEBUGLEVEL'" >&2;}
20347 fi
20348 fi
20349 else
20350 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
20351 # Default is to use the debug level name, except for release which is empty.
20352 if test "x$DEBUG_LEVEL" != "xrelease"; then
20353 VERSION_PRE_DEBUGLEVEL="$DEBUG_LEVEL"
20354 else
20355 VERSION_PRE_DEBUGLEVEL=""
20356 fi
20357 fi
20358 fi
20359
20360
20361 # Check whether --with-version-opt was given.
20362 if test "${with_version_opt+set}" = set; then :
20363 withval=$with_version_opt; with_version_opt_present=true
20364 else
20365 with_version_opt_present=false
20366 fi
20367
20368
20369 if test "x$with_version_opt_present" = xtrue; then
20370 if test "x$with_version_opt" = xyes; then
20371 as_fn_error $? "--with--version-opt must have a value" "$LINENO" 5
20372 elif test "x$with_version_opt" = xno; then
20373 # Interpret --without-* as empty string instead of the literal "no"
20374 VERSION_OPT=
20375 else
20376 # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4.
20377 VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'`
20378 if test "x$VERSION_OPT" != "x$with_version_opt"; then
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with--version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5
20380 $as_echo "$as_me: WARNING: --with--version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;}
20381 fi
20382 fi
20383 else
20384 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
20385 # Default is to calculate a string like this <timestamp>.<username>.<base dir name>
20386 timestamp=`$DATE '+%Y-%m-%d-%H%M%S'`
20387 # Outer [ ] to quote m4.
20388 username=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'`
20389 basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'`
20390 VERSION_OPT="$timestamp.$username.$basedirname"
20391 fi
20392 fi
20393
20394
20395 # Check whether --with-version-build was given.
20396 if test "${with_version_build+set}" = set; then :
20397 withval=$with_version_build; with_version_build_present=true
20398 else
20399 with_version_build_present=false
20400 fi
20401
20402
20403 if test "x$with_version_build_present" = xtrue; then
20404 if test "x$with_version_build" = xyes; then
20405 as_fn_error $? "--with--version-build must have a value" "$LINENO" 5
20406 elif test "x$with_version_build" = xno; then
20407 # Interpret --without-* as empty string instead of the literal "no"
20408 VERSION_BUILD=
20409 elif test "x$with_version_build" = x; then
20410 VERSION_BUILD=
20411 else
20412
20413 # Additional [] needed to keep m4 from mangling shell constructs.
20414 if ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then
20415 as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5
20416 fi
20417 # Extract the version number without leading zeros.
20418 cleaned_value=${BASH_REMATCH[1]}
20419 if test "x$cleaned_value" = x; then
20420 # Special case for zero
20421 cleaned_value=${BASH_REMATCH[2]}
20422 fi
20423
20424 if test $cleaned_value -gt 255; then
20425 as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5
20426 fi
20427 if test "x$cleaned_value" != "x$with_version_build"; then
20428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5
20429 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;}
20430 fi
20431 VERSION_BUILD=$cleaned_value
20432
20433 fi
20434 else
20435 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
20436 # Default is to not have a build number.
20437 VERSION_BUILD=""
20438 # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0.
20439 VERSION_BUILD=0
20440 fi
20441 fi
20442
20443
20444 # Check whether --with-version-major was given.
20445 if test "${with_version_major+set}" = set; then :
20446 withval=$with_version_major; with_version_major_present=true
20447 else
20448 with_version_major_present=false
20449 fi
20450
20451
20452 if test "x$with_version_major_present" = xtrue; then
20453 if test "x$with_version_major" = xyes; then
20454 as_fn_error $? "--with--version-major must have a value" "$LINENO" 5
20455 else
20456
20457 # Additional [] needed to keep m4 from mangling shell constructs.
20458 if ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then
20459 as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5
20460 fi
20461 # Extract the version number without leading zeros.
20462 cleaned_value=${BASH_REMATCH[1]}
20463 if test "x$cleaned_value" = x; then
20464 # Special case for zero
20465 cleaned_value=${BASH_REMATCH[2]}
20466 fi
20467
20468 if test $cleaned_value -gt 255; then
20469 as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5
20470 fi
20471 if test "x$cleaned_value" != "x$with_version_major"; then
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5
20473 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;}
20474 fi
20475 VERSION_MAJOR=$cleaned_value
20476
20477 fi
20478 else
20479 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
20480 # Default is to get value from version-numbers
20481 VERSION_MAJOR="$DEFAULT_VERSION_MAJOR"
20482 fi
20483 fi
20484
20485
20486 # Check whether --with-version-minor was given.
20487 if test "${with_version_minor+set}" = set; then :
20488 withval=$with_version_minor; with_version_minor_present=true
20489 else
20490 with_version_minor_present=false
20491 fi
20492
20493
20494 if test "x$with_version_minor_present" = xtrue; then
20495 if test "x$with_version_minor" = xyes; then
20496 as_fn_error $? "--with--version-minor must have a value" "$LINENO" 5
20497 elif test "x$with_version_minor" = xno; then
20498 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
20499 VERSION_MINOR=0
20500 elif test "x$with_version_minor" = x; then
20501 VERSION_MINOR=0
20502 else
20503
20504 # Additional [] needed to keep m4 from mangling shell constructs.
20505 if ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then
20506 as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5
20507 fi
20508 # Extract the version number without leading zeros.
20509 cleaned_value=${BASH_REMATCH[1]}
20510 if test "x$cleaned_value" = x; then
20511 # Special case for zero
20512 cleaned_value=${BASH_REMATCH[2]}
20513 fi
20514
20515 if test $cleaned_value -gt 255; then
20516 as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5
20517 fi
20518 if test "x$cleaned_value" != "x$with_version_minor"; then
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5
20520 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;}
20521 fi
20522 VERSION_MINOR=$cleaned_value
20523
20524 fi
20525 else
20526 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
20527 # Default is 0, if unspecified
20528 VERSION_MINOR=0
20529 fi
20530 fi
20531
20532
20533 # Check whether --with-version-security was given.
20534 if test "${with_version_security+set}" = set; then :
20535 withval=$with_version_security; with_version_security_present=true
20536 else
20537 with_version_security_present=false
20538 fi
20539
20540
20541 if test "x$with_version_security_present" = xtrue; then
20542 if test "x$with_version_security" = xyes; then
20543 as_fn_error $? "--with--version-security must have a value" "$LINENO" 5
20544 elif test "x$with_version_security" = xno; then
20545 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
20546 VERSION_SECURITY=0
20547 elif test "x$with_version_security" = x; then
20548 VERSION_SECURITY=0
20549 else
20550
20551 # Additional [] needed to keep m4 from mangling shell constructs.
20552 if ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then
20553 as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5
20554 fi
20555 # Extract the version number without leading zeros.
20556 cleaned_value=${BASH_REMATCH[1]}
20557 if test "x$cleaned_value" = x; then
20558 # Special case for zero
20559 cleaned_value=${BASH_REMATCH[2]}
20560 fi
20561
20562 if test $cleaned_value -gt 255; then
20563 as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5
20564 fi
20565 if test "x$cleaned_value" != "x$with_version_security"; then
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5
20567 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;}
20568 fi
20569 VERSION_SECURITY=$cleaned_value
20570
20571 fi
20572 else
20573 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
20574 # Default is 0, if unspecified
20575 VERSION_SECURITY=0
20576 fi
20577 fi
20578
20579
20580 # Check whether --with-version-patch was given.
20581 if test "${with_version_patch+set}" = set; then :
20582 withval=$with_version_patch; with_version_patch_present=true
20583 else
20584 with_version_patch_present=false
20585 fi
20586
20587
20588 if test "x$with_version_patch_present" = xtrue; then
20589 if test "x$with_version_patch" = xyes; then
20590 as_fn_error $? "--with--version-patch must have a value" "$LINENO" 5
20591 elif test "x$with_version_patch" = xno; then
20592 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
20593 VERSION_PATCH=0
20594 elif test "x$with_version_patch" = x; then
20595 VERSION_PATCH=0
20596 else
20597
20598 # Additional [] needed to keep m4 from mangling shell constructs.
20599 if ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then
20600 as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5
20601 fi
20602 # Extract the version number without leading zeros.
20603 cleaned_value=${BASH_REMATCH[1]}
20604 if test "x$cleaned_value" = x; then
20605 # Special case for zero
20606 cleaned_value=${BASH_REMATCH[2]}
20607 fi
20608
20609 if test $cleaned_value -gt 255; then
20610 as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5
20611 fi
20612 if test "x$cleaned_value" != "x$with_version_patch"; then
20613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5
20614 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;}
20615 fi
20616 VERSION_PATCH=$cleaned_value
20617
20618 fi
20619 else
20620 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
20621 # Default is 0, if unspecified
20622 VERSION_PATCH=0
20623 fi
20624 fi
20625
20626 # Calculate derived version properties
20627
20628 # Set pre to "pre-base" if debug level is empty (i.e. release), or
20629 # "pre-base.debug-level" otherwise.
20630 if test "x$VERSION_PRE_BASE" = x && test "x$VERSION_PRE_DEBUGLEVEL" != x; then
20631 as_fn_error $? "Cannot set version-pre-debuglevel when version-pre-base is empty" "$LINENO" 5
20632 fi
20633 VERSION_PRE=$VERSION_PRE_BASE${VERSION_PRE_DEBUGLEVEL:+.$VERSION_PRE_DEBUGLEVEL}
20634
20635 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
20636 VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH
20637
20638 stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS
20639 # Strip trailing zeroes from stripped_version_number
20640 for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done
20641 VERSION_NUMBER=$stripped_version_number
20642
20643 # The complete version string, with additional build information
20644 if test "x$VERSION_BUILD$VERSION_OPT" = x; then
20645 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
20646 else
20647 # If either build or opt is set, we need a + separator
20648 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT}
20649 fi
20650
20651 # The short version string, just VERSION_NUMBER and PRE, if present.
20652 VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
20653
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5
20655 $as_echo_n "checking for version string... " >&6; }
20656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5
20657 $as_echo "$VERSION_STRING" >&6; }
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672 ###############################################################################
20673 #
20674 # Setup BootJDK, used to bootstrap the build.
20675 #
20676 ###############################################################################
20677
20678
20679 BOOT_JDK_FOUND=no
20680
20681 # Check whether --with-boot-jdk was given.
20682 if test "${with_boot_jdk+set}" = set; then :
20683 withval=$with_boot_jdk;
20684 fi
20685
20686
20687 # We look for the Boot JDK through various means, going from more certain to
20688 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
41487 AR_OUT_OPTION='rcs$(SPACE)'
41488 fi
41489
41490
41491
41492
41493
41494 # On Windows, we need to set RC flags.
41495 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
41496 RC_FLAGS="-nologo -l0x409"
41497 if test "x$VARIANT" = xOPT; then
41498 RC_FLAGS="$RC_FLAGS -DNDEBUG"
41499 fi
41500
41501 # The version variables used to create RC_FLAGS may be overridden
41502 # in a custom configure script, or possibly the command line.
41503 # Let those variables be expanded at make time in spec.gmk.
41504 # The \$ are escaped to the shell, and the $(...) variables
41505 # are evaluated by make.
41506 RC_FLAGS="$RC_FLAGS \
41507 -D\"JDK_VERSION_STRING=\$(VERSION_STRING)\" \
41508 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \
41509 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \
41510 -D\"JDK_VER=\$(VERSION_NUMBER_FOUR_POSITIONS)\" \
41511 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \
41512 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(VERSION_MAJOR)\" \
41513 -D\"JDK_FVER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\""
41514 fi
41515
41516
41517 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
41518 # silence copyright notice and other headers.
41519 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo"
41520 fi
41521
41522 if test "x$SYSROOT" != "x"; then
41523 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then
41524 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
41525 # Solaris Studio does not have a concept of sysroot. Instead we must
41526 # make sure the default include and lib dirs are appended to each
41527 # compile and link command line.
41528 SYSROOT_CFLAGS="-I$SYSROOT/usr/include"
41529 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \
41530 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \
41531 -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR"
41532 fi
41533 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
42570 fi
42571 fi
42572
42573 # Setup target OS define. Use OS target name but in upper case.
42574 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42575 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE"
42576
42577 # Setup target CPU
42578 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY"
42579
42580 # Setup debug/release defines
42581 if test "x$DEBUG_LEVEL" = xrelease; then
42582 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG"
42583 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
42584 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED"
42585 fi
42586 else
42587 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG"
42588 fi
42589
42590 # Set some additional per-OS defines.
42591 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
42592 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT"
42593 elif test "x$OPENJDK_TARGET_OS" = xaix; then
42594 # FIXME: PPC64 should not be here.
42595 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DPPC64"
42596 elif test "x$OPENJDK_TARGET_OS" = xbsd; then
42597 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE"
42598 fi
42599
42600 # Additional macosx handling
42601 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
42602 # Setting these parameters makes it an error to link to macosx APIs that are
42603 # newer than the given OS version and makes the linked binaries compatible
42604 # even if built on a newer version of the OS.
42605 # The expected format is X.Y.Z
42606 MACOSX_VERSION_MIN=10.7.0
42607
42608
42609 # The macro takes the version with no dots, ex: 1070
54691 else
54692 if test "x$IS_RECONFIGURE" != "xyes"; then
54693 printf "A configuration has been successfully checked but not created\n"
54694 else
54695 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUT_ROOT"
54696 fi
54697 fi
54698 if test "x$CONFIGURE_COMMAND_LINE" != x; then
54699 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n"
54700 else
54701 printf "using default settings.\n"
54702 fi
54703
54704 printf "\n"
54705 printf "Configuration summary:\n"
54706 printf "* Debug level: $DEBUG_LEVEL\n"
54707 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n"
54708 printf "* JDK variant: $JDK_VARIANT\n"
54709 printf "* JVM variants: $with_jvm_variants\n"
54710 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n"
54711 printf "* Version string: $VERSION_STRING ($VERSION_SHORT)\n"
54712
54713 printf "\n"
54714 printf "Tools summary:\n"
54715 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
54716 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n"
54717 fi
54718 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n"
54719 if test "x$TOOLCHAIN_VERSION" != "x"; then
54720 print_version=" $TOOLCHAIN_VERSION"
54721 fi
54722 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION$print_version)\n"
54723 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n"
54724 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n"
54725
54726 printf "\n"
54727 printf "Build performance summary:\n"
54728 printf "* Cores to use: $JOBS\n"
54729 printf "* Memory limit: $MEMORY_SIZE MB\n"
54730 if test "x$CCACHE_STATUS" != "x"; then
54731 printf "* ccache status: $CCACHE_STATUS\n"
|