< prev index next >

common/autoconf/generated-configure.sh

Print this page




 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 represents a valid version number, and assign it
4077 # to a variable.
4078 
4079 # Argument 1: the variable to assign to
4080 # Argument 2: the value given by the user
4081 
4082 
4083 
4084 
4085 #
4086 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
4087 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4088 #
4089 # This code is free software; you can redistribute it and/or modify it
4090 # under the terms of the GNU General Public License version 2 only, as
4091 # published by the Free Software Foundation.  Oracle designates this
4092 # particular file as subject to the "Classpath" exception as provided
4093 # by Oracle in the LICENSE file that accompanied this code.
4094 #
4095 # This code is distributed in the hope that it will be useful, but WITHOUT
4096 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4097 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4098 # version 2 for more details (a copy is included in the LICENSE file that
4099 # accompanied this code).
4100 #
4101 # You should have received a copy of the GNU General Public License version
4102 # 2 along with this work; if not, write to the Free Software Foundation,
4103 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4104 #
4105 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA


4421 
4422 
4423 
4424 
4425 
4426 
4427 
4428 
4429 
4430 
4431 
4432 
4433 
4434 
4435 # This line needs to be here, verbatim, after all includes and the dummy hook
4436 # definitions. It is replaced with custom functionality when building
4437 # custom sources.
4438 #CUSTOM_AUTOCONF_INCLUDE
4439 
4440 # Do not change or remove the following line, it is needed for consistency checks:
4441 DATE_WHEN_GENERATED=1433857590
4442 
4443 ###############################################################################
4444 #
4445 # Initialization / Boot-strapping
4446 #
4447 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4448 # thus it jumps back and forth, each time gaining something needed later on.
4449 #
4450 ###############################################################################
4451 
4452 # If we are requested to print additional help, do that and then exit.
4453 # This must be the very first call.
4454 
4455   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4456     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4457     $PRINTF "Which are valid to use depends on the build platform.\n"
4458     for toolchain in $VALID_TOOLCHAINS_all; do
4459       # Use indirect variable referencing
4460       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4461       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}


20143   ###############################################################################
20144   #
20145   # Enable or disable unlimited crypto
20146   #
20147   # Check whether --enable-unlimited-crypto was given.
20148 if test "${enable_unlimited_crypto+set}" = set; then :
20149   enableval=$enable_unlimited_crypto;
20150 else
20151   enable_unlimited_crypto=no
20152 fi
20153 
20154   if test "x$enable_unlimited_crypto" = "xyes"; then
20155     UNLIMITED_CRYPTO=true
20156   else
20157     UNLIMITED_CRYPTO=false
20158   fi
20159 
20160 
20161   ###############################################################################
20162   #






20163   # --enable-rmiconnector-iiop
20164   #
20165   # Check whether --enable-rmiconnector-iiop was given.
20166 if test "${enable_rmiconnector_iiop+set}" = set; then :
20167   enableval=$enable_rmiconnector_iiop;
20168 fi
20169 
20170   if test "x$enable_rmiconnector_iiop" = "xyes"; then
20171     RMICONNECTOR_IIOP=true
20172   else
20173     RMICONNECTOR_IIOP=false
20174   fi
20175 
20176 
20177   ###############################################################################
20178   #
20179   # Compress jars
20180   #
20181   COMPRESS_JARS=false
20182 
20183 
20184 
20185   # Setup default copyright year. Mostly overridden when building close to a new year.
20186 
20187 # Check whether --with-copyright-year was given.
20188 if test "${with_copyright_year+set}" = set; then :
20189   withval=$with_copyright_year;
20190 fi
20191 
20192   if test "x$with_copyright_year" = xyes; then
20193     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
20194   elif test "x$with_copyright_year" != x; then
20195     COPYRIGHT_YEAR="$with_copyright_year"
20196   else
20197     COPYRIGHT_YEAR=`date +'%Y'`
20198   fi
20199 
20200 
20201 
20202   # Warn user that old version arguments are deprecated.
20203 

20204 
20205 # Check whether --with-milestone was given.
20206 if test "${with_milestone+set}" = set; then :
20207   withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5
20208 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;}
20209 fi
20210 
20211 







20212 
20213 
20214 # Check whether --with-update-version was given.
20215 if test "${with_update_version+set}" = set; then :
20216   withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5
20217 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;}
20218 fi
20219 
20220 










20221 
20222 
20223 # Check whether --with-user-release-suffix was given.
20224 if test "${with_user_release_suffix+set}" = set; then :
20225   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
20226 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;}
20227 fi
20228 
20229 




20230 
20231 
20232 # Check whether --with-build-number was given.
20233 if test "${with_build_number+set}" = set; then :
20234   withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5
20235 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;}
20236 fi
20237 
20238 
20239 
20240   # Source the version numbers file
20241   . $AUTOCONF_DIR/version-numbers
20242 
20243   # Some non-version number information is set in that file
20244 
20245 
20246 
20247 
20248 
20249 
20250 
20251 
20252   # Override version from arguments
20253 
20254   # If --with-version-string is set, process it first. It is possible to
20255   # override parts with more specific flags, since these are processed later.
20256 
20257 # Check whether --with-version-string was given.
20258 if test "${with_version_string+set}" = set; then :
20259   withval=$with_version_string;
20260 fi
20261 
20262   if test "x$with_version_string" = xyes; then
20263     as_fn_error $? "--with-version-string must have a value" "$LINENO" 5
20264   elif test "x$with_version_string" != x; then
20265     # Additional [] needed to keep m4 from mangling shell constructs.
20266     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
20267       VERSION_MAJOR=${BASH_REMATCH[1]}
20268       VERSION_MINOR=${BASH_REMATCH[3]}
20269       VERSION_SECURITY=${BASH_REMATCH[5]}
20270       VERSION_PATCH=${BASH_REMATCH[7]}
20271       VERSION_PRE_BASE=${BASH_REMATCH[9]}
20272       VERSION_PRE_DEBUGLEVEL=${BASH_REMATCH[11]}
20273       version_plus_separator=${BASH_REMATCH[13]}
20274       VERSION_BUILD=${BASH_REMATCH[14]}
20275       VERSION_OPT=${BASH_REMATCH[16]}
20276       # Unspecified numerical fields are interpreted as 0.
20277       if test "x$VERSION_MINOR" = x; then
20278         VERSION_MINOR=0
20279       fi
20280       if test "x$VERSION_SECURITY" = x; then
20281         VERSION_SECURITY=0
20282       fi
20283       if test "x$VERSION_PATCH" = x; then
20284         VERSION_PATCH=0
20285       fi
20286       if test "x$version_plus_separator" != x && test "x$VERSION_BUILD$VERSION_OPT" = x; then
20287         as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5
20288       fi
20289       # Stop the version part process from setting default values.
20290       # We still allow them to explicitely override though.
20291       NO_DEFAULT_VERSION_PARTS=true
20292     else
20293       as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5
20294     fi
20295   fi
20296 

20297 
20298 # Check whether --with-version-pre-base was given.
20299 if test "${with_version_pre_base+set}" = set; then :
20300   withval=$with_version_pre_base; with_version_pre_base_present=true
20301 else
20302   with_version_pre_base_present=false
20303 fi
20304 
20305 
20306   if test "x$with_version_pre_base_present" = xtrue; then
20307     if test "x$with_version_pre_base" = xyes; then
20308       as_fn_error $? "--with-version-pre-base must have a value" "$LINENO" 5
20309     elif test "x$with_version_pre_base" = xno; then
20310       # Interpret --without-* as empty string instead of the literal "no"
20311       VERSION_PRE_BASE=
20312     else
20313       # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4.
20314        VERSION_PRE_BASE=`$ECHO "$with_version_pre_base" | $TR -c -d '[a-z][A-Z]'`
20315       if test "x$VERSION_PRE_BASE" != "x$with_version_pre_base"; then
20316         { $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
20317 $as_echo "$as_me: WARNING: --with-version-pre-base value has been sanitized from '$with_version_pre_base' to '$VERSION_PRE_BASE'" >&2;}
20318       fi
20319     fi
20320   else
20321     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
20322       # Default is to use "internal" as pre
20323       VERSION_PRE_BASE="internal"
20324     fi
20325   fi
20326 
20327 
20328 # Check whether --with-version-pre-debuglevel was given.
20329 if test "${with_version_pre_debuglevel+set}" = set; then :
20330   withval=$with_version_pre_debuglevel; with_version_pre_debuglevel_present=true
20331 else
20332   with_version_pre_debuglevel_present=false
20333 fi
20334 
20335 
20336   if test "x$with_version_pre_debuglevel_present" = xtrue; then
20337     if test "x$with_version_pre_debuglevel" = xyes; then
20338       as_fn_error $? "--with-version-pre-debuglevel must have a value" "$LINENO" 5
20339     elif test "x$with_version_pre_debuglevel" = xno; then
20340       # Interpret --without-* as empty string instead of the literal "no"
20341       VERSION_PRE_DEBUGLEVEL=
20342     else
20343       # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4.
20344        VERSION_PRE_DEBUGLEVEL=`$ECHO "$with_version_pre_debuglevel" | $TR -c -d '[a-z][A-Z]'`
20345       if test "x$VERSION_PRE_DEBUGLEVEL" != "x$with_version_pre_debuglevel"; then
20346         { $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
20347 $as_echo "$as_me: WARNING: --with-version-pre-debuglevel value has been sanitized from '$with_version_pre_debuglevel' to '$VERSION_PRE_DEBUGLEVEL'" >&2;}
20348       fi
20349     fi
20350   else
20351     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
20352       # Default is to use the debug level name, except for release which is empty.
20353       if test "x$DEBUG_LEVEL" != "xrelease"; then
20354         VERSION_PRE_DEBUGLEVEL="$DEBUG_LEVEL"
20355       else
20356         VERSION_PRE_DEBUGLEVEL=""
20357       fi
20358     fi
20359   fi
20360 
20361 
20362 # Check whether --with-version-opt was given.
20363 if test "${with_version_opt+set}" = set; then :
20364   withval=$with_version_opt; with_version_opt_present=true
20365 else
20366   with_version_opt_present=false
20367 fi
20368 
20369 
20370   if test "x$with_version_opt_present" = xtrue; then
20371     if test "x$with_version_opt" = xyes; then
20372       as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5
20373     elif test "x$with_version_opt" = xno; then
20374       # Interpret --without-* as empty string instead of the literal "no"
20375       VERSION_OPT=
20376     else
20377       # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4.
20378        VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'`
20379       if test "x$VERSION_OPT" != "x$with_version_opt"; then
20380         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5
20381 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;}
20382       fi
20383     fi
20384   else
20385     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
20386       # Default is to calculate a string like this <timestamp>.<username>.<base dir name>
20387       timestamp=`$DATE '+%Y-%m-%d-%H%M%S'`
20388       # Outer [ ] to quote m4.
20389        username=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'`
20390        basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'`
20391       VERSION_OPT="$timestamp.$username.$basedirname"
20392     fi
20393   fi
20394 
20395 
20396 # Check whether --with-version-build was given.
20397 if test "${with_version_build+set}" = set; then :
20398   withval=$with_version_build; with_version_build_present=true
20399 else
20400   with_version_build_present=false
20401 fi
20402 
20403 
20404   if test "x$with_version_build_present" = xtrue; then
20405     if test "x$with_version_build" = xyes; then
20406       as_fn_error $? "--with-version-build must have a value" "$LINENO" 5
20407     elif test "x$with_version_build" = xno; then
20408       # Interpret --without-* as empty string instead of the literal "no"
20409       VERSION_BUILD=
20410     elif test "x$with_version_build" = x; then
20411       VERSION_BUILD=
20412     else
20413 
20414   # Additional [] needed to keep m4 from mangling shell constructs.
20415   if  ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
20416     as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5
20417   fi
20418   # Extract the version number without leading zeros.
20419   cleaned_value=${BASH_REMATCH[1]}
20420   if test "x$cleaned_value" = x; then
20421     # Special case for zero
20422     cleaned_value=${BASH_REMATCH[2]}
20423   fi
20424 
20425   if test $cleaned_value -gt 255; then
20426     as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5
20427   fi
20428   if test "x$cleaned_value" != "x$with_version_build"; then
20429     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5
20430 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;}
20431   fi
20432   VERSION_BUILD=$cleaned_value
20433 
20434     fi
20435   else
20436     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
20437       # Default is to not have a build number.
20438       VERSION_BUILD=""
20439       # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0.
20440       VERSION_BUILD=0
20441     fi
20442   fi
20443 
20444 
20445 # Check whether --with-version-major was given.
20446 if test "${with_version_major+set}" = set; then :
20447   withval=$with_version_major; with_version_major_present=true
20448 else
20449   with_version_major_present=false
20450 fi
20451 
20452 
20453   if test "x$with_version_major_present" = xtrue; then
20454     if test "x$with_version_major" = xyes; then
20455       as_fn_error $? "--with-version-major must have a value" "$LINENO" 5
20456     else
20457 
20458   # Additional [] needed to keep m4 from mangling shell constructs.
20459   if  ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
20460     as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5
20461   fi
20462   # Extract the version number without leading zeros.
20463   cleaned_value=${BASH_REMATCH[1]}
20464   if test "x$cleaned_value" = x; then
20465     # Special case for zero
20466     cleaned_value=${BASH_REMATCH[2]}
20467   fi
20468 
20469   if test $cleaned_value -gt 255; then
20470     as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5
20471   fi
20472   if test "x$cleaned_value" != "x$with_version_major"; then
20473     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5
20474 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;}
20475   fi
20476   VERSION_MAJOR=$cleaned_value
20477 
20478     fi

20479   else
20480     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
20481       # Default is to get value from version-numbers
20482       VERSION_MAJOR="$DEFAULT_VERSION_MAJOR"
20483     fi
20484   fi
20485 
20486 
20487 # Check whether --with-version-minor was given.
20488 if test "${with_version_minor+set}" = set; then :
20489   withval=$with_version_minor; with_version_minor_present=true
20490 else
20491   with_version_minor_present=false
20492 fi
20493 
20494 
20495   if test "x$with_version_minor_present" = xtrue; then
20496     if test "x$with_version_minor" = xyes; then
20497       as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5
20498     elif test "x$with_version_minor" = xno; then
20499       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
20500       VERSION_MINOR=0
20501     elif test "x$with_version_minor" = x; then
20502       VERSION_MINOR=0
20503     else
20504 
20505   # Additional [] needed to keep m4 from mangling shell constructs.
20506   if  ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
20507     as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5
20508   fi
20509   # Extract the version number without leading zeros.
20510   cleaned_value=${BASH_REMATCH[1]}
20511   if test "x$cleaned_value" = x; then
20512     # Special case for zero
20513     cleaned_value=${BASH_REMATCH[2]}
20514   fi
20515 
20516   if test $cleaned_value -gt 255; then
20517     as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5
20518   fi
20519   if test "x$cleaned_value" != "x$with_version_minor"; then
20520     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5
20521 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;}
20522   fi
20523   VERSION_MINOR=$cleaned_value
20524 
20525     fi
20526   else
20527     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
20528       # Default is 0, if unspecified
20529       VERSION_MINOR=0
20530     fi
20531   fi
20532 
20533 
20534 # Check whether --with-version-security was given.
20535 if test "${with_version_security+set}" = set; then :
20536   withval=$with_version_security; with_version_security_present=true
20537 else
20538   with_version_security_present=false
20539 fi
20540 
20541 
20542   if test "x$with_version_security_present" = xtrue; then
20543     if test "x$with_version_security" = xyes; then
20544       as_fn_error $? "--with-version-security must have a value" "$LINENO" 5
20545     elif test "x$with_version_security" = xno; then
20546       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
20547       VERSION_SECURITY=0
20548     elif test "x$with_version_security" = x; then
20549       VERSION_SECURITY=0
20550     else
20551 
20552   # Additional [] needed to keep m4 from mangling shell constructs.
20553   if  ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
20554     as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5
20555   fi
20556   # Extract the version number without leading zeros.
20557   cleaned_value=${BASH_REMATCH[1]}
20558   if test "x$cleaned_value" = x; then
20559     # Special case for zero
20560     cleaned_value=${BASH_REMATCH[2]}
20561   fi
20562 
20563   if test $cleaned_value -gt 255; then
20564     as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5
20565   fi
20566   if test "x$cleaned_value" != "x$with_version_security"; then
20567     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5
20568 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;}
20569   fi
20570   VERSION_SECURITY=$cleaned_value
20571 
20572     fi
20573   else
20574     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
20575       # Default is 0, if unspecified
20576       VERSION_SECURITY=0
20577     fi
20578   fi
20579 
20580 
20581 # Check whether --with-version-patch was given.
20582 if test "${with_version_patch+set}" = set; then :
20583   withval=$with_version_patch; with_version_patch_present=true
20584 else
20585   with_version_patch_present=false
20586 fi
20587 
20588 
20589   if test "x$with_version_patch_present" = xtrue; then
20590     if test "x$with_version_patch" = xyes; then
20591       as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5
20592     elif test "x$with_version_patch" = xno; then
20593       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
20594       VERSION_PATCH=0
20595     elif test "x$with_version_patch" = x; then
20596       VERSION_PATCH=0
20597     else
20598 
20599   # Additional [] needed to keep m4 from mangling shell constructs.
20600   if  ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
20601     as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5
20602   fi
20603   # Extract the version number without leading zeros.
20604   cleaned_value=${BASH_REMATCH[1]}
20605   if test "x$cleaned_value" = x; then
20606     # Special case for zero
20607     cleaned_value=${BASH_REMATCH[2]}
20608   fi
20609 
20610   if test $cleaned_value -gt 255; then
20611     as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5
20612   fi
20613   if test "x$cleaned_value" != "x$with_version_patch"; then
20614     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5
20615 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;}
20616   fi
20617   VERSION_PATCH=$cleaned_value
20618 
20619     fi
20620   else
20621     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
20622       # Default is 0, if unspecified
20623       VERSION_PATCH=0
20624     fi
20625   fi
20626 
20627   # Calculate derived version properties
20628 
20629   # Set pre to "pre-base" if debug level is empty (i.e. release), or
20630   # "pre-base.debug-level" otherwise.
20631   if test "x$VERSION_PRE_BASE" = x && test "x$VERSION_PRE_DEBUGLEVEL" != x; then
20632     as_fn_error $? "Cannot set version-pre-debuglevel when version-pre-base is empty" "$LINENO" 5
20633   fi
20634   VERSION_PRE=$VERSION_PRE_BASE${VERSION_PRE_DEBUGLEVEL:+.$VERSION_PRE_DEBUGLEVEL}
20635 
20636   # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
20637   VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH
20638 
20639   stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS
20640   # Strip trailing zeroes from stripped_version_number
20641   for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done
20642   VERSION_NUMBER=$stripped_version_number
20643 
20644   # The complete version string, with additional build information
20645   if test "x$VERSION_BUILD$VERSION_OPT" = x; then
20646     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
20647   else
20648     # If either build or opt is set, we need a + separator
20649     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT}
20650   fi
20651 
20652   # The short version string, just VERSION_NUMBER and PRE, if present.
20653   VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
20654 
20655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5
20656 $as_echo_n "checking for version string... " >&6; }
20657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5
20658 $as_echo "$VERSION_STRING" >&6; }
20659 
20660 
20661 
20662 
20663 
20664 
20665 
20666 
20667 
20668 
20669 
20670 
20671 
20672 
20673 ###############################################################################
20674 #
20675 # Setup BootJDK, used to bootstrap the build.
20676 #
20677 ###############################################################################
20678 
20679 
20680   BOOT_JDK_FOUND=no
20681 
20682 # Check whether --with-boot-jdk was given.
20683 if test "${with_boot_jdk+set}" = set; then :
20684   withval=$with_boot_jdk;
20685 fi
20686 
20687 
20688   # We look for the Boot JDK through various means, going from more certain to
20689   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if


41488     AR_OUT_OPTION='rcs$(SPACE)'
41489   fi
41490 
41491 
41492 
41493 
41494 
41495   # On Windows, we need to set RC flags.
41496   if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
41497     RC_FLAGS="-nologo -l0x409"
41498     if test "x$VARIANT" = xOPT; then
41499       RC_FLAGS="$RC_FLAGS -DNDEBUG"
41500     fi
41501 
41502     # The version variables used to create RC_FLAGS may be overridden
41503     # in a custom configure script, or possibly the command line.
41504     # Let those variables be expanded at make time in spec.gmk.
41505     # The \$ are escaped to the shell, and the $(...) variables
41506     # are evaluated by make.
41507     RC_FLAGS="$RC_FLAGS \
41508         -D\"JDK_VERSION_STRING=\$(VERSION_STRING)\" \
41509         -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \
41510         -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \
41511         -D\"JDK_VER=\$(VERSION_NUMBER_FOUR_POSITIONS)\" \
41512         -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \
41513         -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(VERSION_MAJOR)\" \
41514         -D\"JDK_FVER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\""
41515   fi
41516 
41517 
41518   if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
41519     # silence copyright notice and other headers.
41520     COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo"
41521   fi
41522 
41523   if test "x$SYSROOT" != "x"; then
41524     if test "x$TOOLCHAIN_TYPE" = xsolstudio; then
41525       if test "x$OPENJDK_TARGET_OS" = xsolaris; then
41526         # Solaris Studio does not have a concept of sysroot. Instead we must
41527         # make sure the default include and lib dirs are appended to each
41528         # compile and link command line.
41529         SYSROOT_CFLAGS="-I$SYSROOT/usr/include"
41530         SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \
41531             -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \
41532             -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR"
41533       fi
41534     elif test "x$OPENJDK_TARGET_OS" = xmacosx; then


42571     fi
42572   fi
42573 
42574   # Setup target OS define. Use OS target name but in upper case.
42575   OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42576   COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE"
42577 
42578   # Setup target CPU
42579   COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY"
42580 
42581   # Setup debug/release defines
42582   if test "x$DEBUG_LEVEL" = xrelease; then
42583     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG"
42584     if test "x$OPENJDK_TARGET_OS" = xsolaris; then
42585       COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED"
42586     fi
42587   else
42588     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG"
42589   fi
42590 




42591   # Set some additional per-OS defines.
42592   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
42593     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT"
42594   elif test "x$OPENJDK_TARGET_OS" = xaix; then
42595     # FIXME: PPC64 should not be here.
42596     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DPPC64"
42597   elif test "x$OPENJDK_TARGET_OS" = xbsd; then
42598     COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE"
42599   fi
42600 
42601   # Additional macosx handling
42602   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
42603     # Setting these parameters makes it an error to link to macosx APIs that are
42604     # newer than the given OS version and makes the linked binaries compatible
42605     # even if built on a newer version of the OS.
42606     # The expected format is X.Y.Z
42607     MACOSX_VERSION_MIN=10.7.0
42608 
42609 
42610     # The macro takes the version with no dots, ex: 1070


54692   else
54693     if test "x$IS_RECONFIGURE" != "xyes"; then
54694       printf "A configuration has been successfully checked but not created\n"
54695     else
54696       printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUT_ROOT"
54697     fi
54698   fi
54699   if test "x$CONFIGURE_COMMAND_LINE" != x; then
54700     printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n"
54701   else
54702     printf "using default settings.\n"
54703   fi
54704 
54705   printf "\n"
54706   printf "Configuration summary:\n"
54707   printf "* Debug level:    $DEBUG_LEVEL\n"
54708   printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n"
54709   printf "* JDK variant:    $JDK_VARIANT\n"
54710   printf "* JVM variants:   $with_jvm_variants\n"
54711   printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n"
54712   printf "* Version string: $VERSION_STRING ($VERSION_SHORT)\n"
54713 
54714   printf "\n"
54715   printf "Tools summary:\n"
54716   if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
54717     printf "* Environment:    $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n"
54718   fi
54719   printf "* Boot JDK:       $BOOT_JDK_VERSION (at $BOOT_JDK)\n"
54720   if test "x$TOOLCHAIN_VERSION" != "x"; then
54721     print_version=" $TOOLCHAIN_VERSION"
54722   fi
54723   printf "* Toolchain:      $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION$print_version)\n"
54724   printf "* C Compiler:     Version $CC_VERSION_NUMBER (at $CC)\n"
54725   printf "* C++ Compiler:   Version $CXX_VERSION_NUMBER (at $CXX)\n"
54726 
54727   printf "\n"
54728   printf "Build performance summary:\n"
54729   printf "* Cores to use:   $JOBS\n"
54730   printf "* Memory limit:   $MEMORY_SIZE MB\n"
54731   if test "x$CCACHE_STATUS" != "x"; then
54732     printf "* ccache status:  $CCACHE_STATUS\n"


< prev index next >