< prev index next >

common/autoconf/generated-configure.sh

Print this page




 673 ALSA_LIBS
 674 ALSA_CFLAGS
 675 FREETYPE_BUNDLE_LIB_PATH
 676 FREETYPE_LIBS
 677 FREETYPE_CFLAGS
 678 CUPS_CFLAGS
 679 X_EXTRA_LIBS
 680 X_LIBS
 681 X_PRE_LIBS
 682 X_CFLAGS
 683 XMKMF
 684 MSVCP_DLL
 685 MSVCR_DLL
 686 LIBCXX
 687 STATIC_CXX_SETTING
 688 FIXPATH_DETACH_FLAG
 689 FIXPATH
 690 GCOV_ENABLED
 691 ZIP_DEBUGINFO_FILES
 692 ENABLE_DEBUG_SYMBOLS



 693 CFLAGS_WARNINGS_ARE_ERRORS
 694 DISABLE_WARNING_PREFIX
 695 HOTSPOT_SET_WARNINGS_AS_ERRORS
 696 WARNINGS_AS_ERRORS
 697 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 698 ZERO_ARCHFLAG
 699 LDFLAGS_TESTEXE
 700 LDFLAGS_TESTLIB
 701 LDFLAGS_CXX_JDK
 702 JDKEXE_LIBS
 703 JDKLIB_LIBS
 704 LDFLAGS_JDKEXE
 705 LDFLAGS_JDKLIB
 706 CXXFLAGS_TESTEXE
 707 CXXFLAGS_TESTLIB
 708 CFLAGS_TESTEXE
 709 CFLAGS_TESTLIB
 710 CXXFLAGS_JDKEXE
 711 CXXFLAGS_JDKLIB
 712 CFLAGS_JDKEXE


1088 with_add_source_root
1089 with_override_source_root
1090 with_adds_and_overrides
1091 with_override_langtools
1092 with_override_corba
1093 with_override_jaxp
1094 with_override_jaxws
1095 with_override_hotspot
1096 with_override_nashorn
1097 with_override_jdk
1098 with_import_hotspot
1099 enable_static_build
1100 with_toolchain_type
1101 with_extra_cflags
1102 with_extra_cxxflags
1103 with_extra_ldflags
1104 with_toolchain_version
1105 with_build_devkit
1106 with_jtreg
1107 enable_warnings_as_errors

1108 enable_debug_symbols
1109 enable_zip_debug_info
1110 enable_native_coverage
1111 with_stdc__lib
1112 with_msvcr_dll
1113 with_msvcp_dll
1114 with_x
1115 with_cups
1116 with_cups_include
1117 with_freetype
1118 with_freetype_include
1119 with_freetype_lib
1120 with_freetype_src
1121 enable_freetype_bundling
1122 with_alsa
1123 with_alsa_include
1124 with_alsa_lib
1125 with_libffi
1126 with_libffi_include
1127 with_libffi_lib


1868   cat <<\_ACEOF
1869 
1870 Optional Features:
1871   --disable-option-checking  ignore unrecognized --enable/--with options
1872   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1873   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1874   --enable-openjdk-only   suppress building custom source even if present
1875                           [disabled]
1876   --enable-debug          set the debug level to fastdebug (shorthand for
1877                           --with-debug-level=fastdebug) [disabled]
1878   --disable-headful       disable building headful support (graphical UI
1879                           support) [enabled]
1880   --enable-hotspot-test-in-build
1881                           run the Queens test after Hotspot build [disabled]
1882   --enable-unlimited-crypto
1883                           Enable unlimited crypto policy [disabled]
1884   --enable-static-build   enable static library build [disabled]
1885   --disable-warnings-as-errors
1886                           do not consider native warnings to be an error
1887                           [enabled]
1888   --disable-debug-symbols disable generation of debug symbols [enabled]
1889   --disable-zip-debug-info
1890                           disable zipping of debug-info files [enabled]

1891   --enable-native-coverage
1892                           enable native compilation with code coverage
1893                           data[disabled]
1894   --disable-freetype-bundling
1895                           disable bundling of the freetype library with the
1896                           build result [enabled on Windows or when using
1897                           --with-freetype, disabled otherwise]
1898   --enable-sjavac         use sjavac to do fast incremental compiles
1899                           [disabled]
1900   --disable-javac-server  disable javac server [enabled]
1901   --enable-icecc          enable distribted compilation of native code using
1902                           icecc/icecream [disabled]
1903   --disable-precompiled-headers
1904                           disable using precompiled headers when compiling C++
1905                           [enabled]
1906   --enable-ccache         enable using ccache to speed up recompilations
1907                           [disabled]
1908 
1909 Optional Packages:
1910   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]


1980   --with-override-hotspot Deprecated. Option is kept for backwards
1981                           compatibility and is ignored
1982   --with-override-nashorn Deprecated. Option is kept for backwards
1983                           compatibility and is ignored
1984   --with-override-jdk     Deprecated. Option is kept for backwards
1985                           compatibility and is ignored
1986   --with-import-hotspot   import hotspot binaries from this jdk image or
1987                           hotspot build dist dir instead of building from
1988                           source
1989   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1990                           to show possible values [platform dependent]
1991   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1992   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1993   --with-extra-ldflags    extra flags to be used when linking jdk
1994   --with-toolchain-version
1995                           the version of the toolchain to look for, use
1996                           '--help' to show possible values [platform
1997                           dependent]
1998   --with-build-devkit     Devkit to use for the build platform toolchain
1999   --with-jtreg            Regression Test Harness [probed]



2000   --with-stdc++lib=<static>,<dynamic>,<default>
2001                           force linking of the C++ runtime on Linux to either
2002                           static or dynamic, default is static with dynamic as
2003                           fallback
2004   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2005                           (Windows only) [probed]
2006   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2007                           (Windows only) [probed]
2008   --with-x                use the X Window System
2009   --with-cups             specify prefix directory for the cups package
2010                           (expecting the headers under PATH/include)
2011   --with-cups-include     specify directory for the cups include files
2012   --with-freetype         specify prefix directory for the freetype package
2013                           (expecting the libraries under PATH/lib and the
2014                           headers under PATH/include)
2015   --with-freetype-include specify directory for the freetype include files
2016   --with-freetype-lib     specify directory for the freetype library
2017   --with-freetype-src     specify directory with freetype sources to
2018                           automatically build the library (experimental,
2019                           Windows-only)


3460 # 1) There will be no spaces in the path. On unix platforms,
3461 #    spaces in the path will result in an error. On Windows,
3462 #    the path will be rewritten using short-style to be space-free.
3463 # 2) The path will be absolute, and it will be in unix-style (on
3464 #     cygwin).
3465 # Any arguments given to the executable is preserved.
3466 # If the input variable does not have a directory specification, then
3467 # it need to be in the PATH.
3468 # $1: The name of the variable to fix
3469 
3470 
3471 
3472 
3473 # Register a --with argument but mark it as deprecated
3474 # $1: The name of the with argument to deprecate, not including --with-
3475 
3476 
3477 # Register a --enable argument but mark it as deprecated
3478 # $1: The name of the with argument to deprecate, not including --enable-
3479 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)

3480 
3481 
3482 
3483 
3484 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3485 # $1: variable to check
3486 
3487 
3488 # Check that there are no unprocessed overridden variables left.
3489 # If so, they are an incorrect argument and we will exit with an error.
3490 
3491 
3492 # Setup a tool for the given variable. If correctly specified by the user,
3493 # use that value, otherwise search for the tool using the supplied code snippet.
3494 # $1: variable to set
3495 # $2: code snippet to call to look for the tool
3496 # $3: code snippet to call if variable was used to find tool
3497 
3498 
3499 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool


4035 
4036 
4037 
4038 
4039 
4040 ###############################################################################
4041 #
4042 # Enable or disable the elliptic curve crypto implementation
4043 #
4044 
4045 
4046 
4047 
4048 
4049 ################################################################################
4050 #
4051 # Gcov coverage data for hotspot
4052 #
4053 
4054 









4055 #
4056 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4057 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4058 #
4059 # This code is free software; you can redistribute it and/or modify it
4060 # under the terms of the GNU General Public License version 2 only, as
4061 # published by the Free Software Foundation.  Oracle designates this
4062 # particular file as subject to the "Classpath" exception as provided
4063 # by Oracle in the LICENSE file that accompanied this code.
4064 #
4065 # This code is distributed in the hope that it will be useful, but WITHOUT
4066 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4067 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4068 # version 2 for more details (a copy is included in the LICENSE file that
4069 # accompanied this code).
4070 #
4071 # You should have received a copy of the GNU General Public License version
4072 # 2 along with this work; if not, write to the Free Software Foundation,
4073 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4074 #
4075 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4076 # or visit www.oracle.com if you need additional information or have any
4077 # questions.
4078 #
4079 
4080 ###############################################################################
4081 #
4082 # Setup version numbers
4083 #
4084 
4085 # Verify that a given string represents a valid version number, and assign it
4086 # to a variable.
4087 
4088 # Argument 1: the variable to assign to
4089 # Argument 2: the value given by the user
4090 
4091 
4092 
4093 
4094 ################################################################################
4095 #
4096 # Static build support.  When enabled will generate static
4097 # libraries instead of shared libraries for all JDK libs.
4098 #
4099 
4100 
4101 
4102 
4103 #
4104 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4105 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4106 #
4107 # This code is free software; you can redistribute it and/or modify it
4108 # under the terms of the GNU General Public License version 2 only, as
4109 # published by the Free Software Foundation.  Oracle designates this
4110 # particular file as subject to the "Classpath" exception as provided
4111 # by Oracle in the LICENSE file that accompanied this code.
4112 #
4113 # This code is distributed in the hope that it will be useful, but WITHOUT
4114 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4115 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4116 # version 2 for more details (a copy is included in the LICENSE file that
4117 # accompanied this code).
4118 #
4119 # You should have received a copy of the GNU General Public License version
4120 # 2 along with this work; if not, write to the Free Software Foundation,
4121 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4122 #


4692 
4693 
4694 
4695 
4696 
4697 
4698 
4699 
4700 
4701 
4702 
4703 
4704 
4705 
4706 # This line needs to be here, verbatim, after all includes and the dummy hook
4707 # definitions. It is replaced with custom functionality when building
4708 # custom sources.
4709 #CUSTOM_AUTOCONF_INCLUDE
4710 
4711 # Do not change or remove the following line, it is needed for consistency checks:
4712 DATE_WHEN_GENERATED=1449049746
4713 
4714 ###############################################################################
4715 #
4716 # Initialization / Boot-strapping
4717 #
4718 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4719 # thus it jumps back and forth, each time gaining something needed later on.
4720 #
4721 ###############################################################################
4722 
4723 # If we are requested to print additional help, do that and then exit.
4724 # This must be the very first call.
4725 
4726   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4727     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4728     $PRINTF "Which are valid to use depends on the build platform.\n"
4729     for toolchain in $VALID_TOOLCHAINS_all; do
4730       # Use indirect variable referencing
4731       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4732       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}


47388 
47389       if test "x$BUILD_CC_CAN_DISABLE_WARNINGS" = "xtrue"; then
47390         BUILD_CC_DISABLE_WARNING_PREFIX="-Wno-"
47391       else
47392         BUILD_CC_DISABLE_WARNING_PREFIX=
47393       fi
47394       CC="$CC_OLD"
47395       ;;
47396     clang)
47397       DISABLE_WARNING_PREFIX="-Wno-"
47398       CFLAGS_WARNINGS_ARE_ERRORS="-Werror"
47399       ;;
47400   esac
47401 
47402 
47403 
47404 
47405 # Setup debug symbols (need objcopy from the toolchain for that)
47406 
47407   #
47408   # ENABLE_DEBUG_SYMBOLS
47409   # This must be done after the toolchain is setup, since we're looking at objcopy.
47410   #
47411   # Check whether --enable-debug-symbols was given.
47412 if test "${enable_debug_symbols+set}" = set; then :
47413   enableval=$enable_debug_symbols;





47414 fi
47415 



47416 
47417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5
47418 $as_echo_n "checking if we should generate debug symbols... " >&6; }
47419 
47420   if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then
47421     # explicit enabling of enable-debug-symbols and can't find objcopy
47422     #   this is an error
47423     as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5
47424   fi
47425 
47426   if test "x$enable_debug_symbols" = "xyes"; then
47427     ENABLE_DEBUG_SYMBOLS=true
47428   elif test "x$enable_debug_symbols" = "xno"; then



47429     ENABLE_DEBUG_SYMBOLS=false
47430   else
47431     # Default is on if objcopy is found
47432     if test "x$OBJCOPY" != x; then
47433       ENABLE_DEBUG_SYMBOLS=true
47434     # MacOS X and Windows don't use objcopy but default is on for those OSes
47435     elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then











47436       ENABLE_DEBUG_SYMBOLS=true



47437     else
47438       ENABLE_DEBUG_SYMBOLS=false

















47439     fi

47440   fi
47441 
47442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5
47443 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; }
47444 
47445   #
47446   # ZIP_DEBUGINFO_FILES
47447   #
47448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5
47449 $as_echo_n "checking if we should zip debug-info files... " >&6; }
47450   # Check whether --enable-zip-debug-info was given.
47451 if test "${enable_zip_debug_info+set}" = set; then :
47452   enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}"
47453 else
47454   enable_zip_debug_info="yes"
47455 fi
47456 
47457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5
47458 $as_echo "${enable_zip_debug_info}" >&6; }






47459 
47460   if test "x${enable_zip_debug_info}" = "xno"; then
47461     ZIP_DEBUGINFO_FILES=false
47462   else
47463     ZIP_DEBUGINFO_FILES=true
47464   fi




47465 
47466 
47467 
47468 
47469 
47470   # Check whether --enable-native-coverage was given.
47471 if test "${enable_native_coverage+set}" = set; then :
47472   enableval=$enable_native_coverage;
47473 fi
47474 
47475   GCOV_ENABLED="false"
47476   if test "x$enable_native_coverage" = "xyes"; then
47477     if test "x$TOOLCHAIN_TYPE" = "xgcc"; then
47478       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5
47479 $as_echo_n "checking if native coverage is enabled... " >&6; }
47480       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47481 $as_echo "yes" >&6; }
47482       GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline"
47483       GCOV_LDFLAGS="-fprofile-arcs"
47484       LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $GCOV_CFLAGS"




 673 ALSA_LIBS
 674 ALSA_CFLAGS
 675 FREETYPE_BUNDLE_LIB_PATH
 676 FREETYPE_LIBS
 677 FREETYPE_CFLAGS
 678 CUPS_CFLAGS
 679 X_EXTRA_LIBS
 680 X_LIBS
 681 X_PRE_LIBS
 682 X_CFLAGS
 683 XMKMF
 684 MSVCP_DLL
 685 MSVCR_DLL
 686 LIBCXX
 687 STATIC_CXX_SETTING
 688 FIXPATH_DETACH_FLAG
 689 FIXPATH
 690 GCOV_ENABLED
 691 ZIP_DEBUGINFO_FILES
 692 ENABLE_DEBUG_SYMBOLS
 693 STRIP_POLICY
 694 DEBUG_BINARIES
 695 NATIVE_DEBUG_SYMBOLS
 696 CFLAGS_WARNINGS_ARE_ERRORS
 697 DISABLE_WARNING_PREFIX
 698 HOTSPOT_SET_WARNINGS_AS_ERRORS
 699 WARNINGS_AS_ERRORS
 700 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 701 ZERO_ARCHFLAG
 702 LDFLAGS_TESTEXE
 703 LDFLAGS_TESTLIB
 704 LDFLAGS_CXX_JDK
 705 JDKEXE_LIBS
 706 JDKLIB_LIBS
 707 LDFLAGS_JDKEXE
 708 LDFLAGS_JDKLIB
 709 CXXFLAGS_TESTEXE
 710 CXXFLAGS_TESTLIB
 711 CFLAGS_TESTEXE
 712 CFLAGS_TESTLIB
 713 CXXFLAGS_JDKEXE
 714 CXXFLAGS_JDKLIB
 715 CFLAGS_JDKEXE


1091 with_add_source_root
1092 with_override_source_root
1093 with_adds_and_overrides
1094 with_override_langtools
1095 with_override_corba
1096 with_override_jaxp
1097 with_override_jaxws
1098 with_override_hotspot
1099 with_override_nashorn
1100 with_override_jdk
1101 with_import_hotspot
1102 enable_static_build
1103 with_toolchain_type
1104 with_extra_cflags
1105 with_extra_cxxflags
1106 with_extra_ldflags
1107 with_toolchain_version
1108 with_build_devkit
1109 with_jtreg
1110 enable_warnings_as_errors
1111 with_native_debug_symbols
1112 enable_debug_symbols
1113 enable_zip_debug_info
1114 enable_native_coverage
1115 with_stdc__lib
1116 with_msvcr_dll
1117 with_msvcp_dll
1118 with_x
1119 with_cups
1120 with_cups_include
1121 with_freetype
1122 with_freetype_include
1123 with_freetype_lib
1124 with_freetype_src
1125 enable_freetype_bundling
1126 with_alsa
1127 with_alsa_include
1128 with_alsa_lib
1129 with_libffi
1130 with_libffi_include
1131 with_libffi_lib


1872   cat <<\_ACEOF
1873 
1874 Optional Features:
1875   --disable-option-checking  ignore unrecognized --enable/--with options
1876   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1877   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1878   --enable-openjdk-only   suppress building custom source even if present
1879                           [disabled]
1880   --enable-debug          set the debug level to fastdebug (shorthand for
1881                           --with-debug-level=fastdebug) [disabled]
1882   --disable-headful       disable building headful support (graphical UI
1883                           support) [enabled]
1884   --enable-hotspot-test-in-build
1885                           run the Queens test after Hotspot build [disabled]
1886   --enable-unlimited-crypto
1887                           Enable unlimited crypto policy [disabled]
1888   --enable-static-build   enable static library build [disabled]
1889   --disable-warnings-as-errors
1890                           do not consider native warnings to be an error
1891                           [enabled]
1892   --enable-debug-symbols  Deprecated. Option is kept for backwards
1893                           compatibility and is ignored
1894   --enable-zip-debug-info Deprecated. Option is kept for backwards
1895                           compatibility and is ignored
1896   --enable-native-coverage
1897                           enable native compilation with code coverage
1898                           data[disabled]
1899   --disable-freetype-bundling
1900                           disable bundling of the freetype library with the
1901                           build result [enabled on Windows or when using
1902                           --with-freetype, disabled otherwise]
1903   --enable-sjavac         use sjavac to do fast incremental compiles
1904                           [disabled]
1905   --disable-javac-server  disable javac server [enabled]
1906   --enable-icecc          enable distribted compilation of native code using
1907                           icecc/icecream [disabled]
1908   --disable-precompiled-headers
1909                           disable using precompiled headers when compiling C++
1910                           [enabled]
1911   --enable-ccache         enable using ccache to speed up recompilations
1912                           [disabled]
1913 
1914 Optional Packages:
1915   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]


1985   --with-override-hotspot Deprecated. Option is kept for backwards
1986                           compatibility and is ignored
1987   --with-override-nashorn Deprecated. Option is kept for backwards
1988                           compatibility and is ignored
1989   --with-override-jdk     Deprecated. Option is kept for backwards
1990                           compatibility and is ignored
1991   --with-import-hotspot   import hotspot binaries from this jdk image or
1992                           hotspot build dist dir instead of building from
1993                           source
1994   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1995                           to show possible values [platform dependent]
1996   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1997   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1998   --with-extra-ldflags    extra flags to be used when linking jdk
1999   --with-toolchain-version
2000                           the version of the toolchain to look for, use
2001                           '--help' to show possible values [platform
2002                           dependent]
2003   --with-build-devkit     Devkit to use for the build platform toolchain
2004   --with-jtreg            Regression Test Harness [probed]
2005   --with-native-debug-symbols
2006                           set the native debug symbol configuration (none,
2007                           internal, external, zipped) [zipped]
2008   --with-stdc++lib=<static>,<dynamic>,<default>
2009                           force linking of the C++ runtime on Linux to either
2010                           static or dynamic, default is static with dynamic as
2011                           fallback
2012   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2013                           (Windows only) [probed]
2014   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2015                           (Windows only) [probed]
2016   --with-x                use the X Window System
2017   --with-cups             specify prefix directory for the cups package
2018                           (expecting the headers under PATH/include)
2019   --with-cups-include     specify directory for the cups include files
2020   --with-freetype         specify prefix directory for the freetype package
2021                           (expecting the libraries under PATH/lib and the
2022                           headers under PATH/include)
2023   --with-freetype-include specify directory for the freetype include files
2024   --with-freetype-lib     specify directory for the freetype library
2025   --with-freetype-src     specify directory with freetype sources to
2026                           automatically build the library (experimental,
2027                           Windows-only)


3468 # 1) There will be no spaces in the path. On unix platforms,
3469 #    spaces in the path will result in an error. On Windows,
3470 #    the path will be rewritten using short-style to be space-free.
3471 # 2) The path will be absolute, and it will be in unix-style (on
3472 #     cygwin).
3473 # Any arguments given to the executable is preserved.
3474 # If the input variable does not have a directory specification, then
3475 # it need to be in the PATH.
3476 # $1: The name of the variable to fix
3477 
3478 
3479 
3480 
3481 # Register a --with argument but mark it as deprecated
3482 # $1: The name of the with argument to deprecate, not including --with-
3483 
3484 
3485 # Register a --enable argument but mark it as deprecated
3486 # $1: The name of the with argument to deprecate, not including --enable-
3487 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3488 # $3: Messages to user.
3489 
3490 
3491 
3492 
3493 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3494 # $1: variable to check
3495 
3496 
3497 # Check that there are no unprocessed overridden variables left.
3498 # If so, they are an incorrect argument and we will exit with an error.
3499 
3500 
3501 # Setup a tool for the given variable. If correctly specified by the user,
3502 # use that value, otherwise search for the tool using the supplied code snippet.
3503 # $1: variable to set
3504 # $2: code snippet to call to look for the tool
3505 # $3: code snippet to call if variable was used to find tool
3506 
3507 
3508 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool


4044 
4045 
4046 
4047 
4048 
4049 ###############################################################################
4050 #
4051 # Enable or disable the elliptic curve crypto implementation
4052 #
4053 
4054 
4055 
4056 
4057 
4058 ################################################################################
4059 #
4060 # Gcov coverage data for hotspot
4061 #
4062 
4063 
4064 ################################################################################
4065 #
4066 # Static build support.  When enabled will generate static
4067 # libraries instead of shared libraries for all JDK libs.
4068 #
4069 
4070 
4071 
4072 
4073 #
4074 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4075 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4076 #
4077 # This code is free software; you can redistribute it and/or modify it
4078 # under the terms of the GNU General Public License version 2 only, as
4079 # published by the Free Software Foundation.  Oracle designates this
4080 # particular file as subject to the "Classpath" exception as provided
4081 # by Oracle in the LICENSE file that accompanied this code.
4082 #
4083 # This code is distributed in the hope that it will be useful, but WITHOUT
4084 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4085 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4086 # version 2 for more details (a copy is included in the LICENSE file that
4087 # accompanied this code).
4088 #
4089 # You should have received a copy of the GNU General Public License version
4090 # 2 along with this work; if not, write to the Free Software Foundation,
4091 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4092 #
4093 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4094 # or visit www.oracle.com if you need additional information or have any
4095 # questions.
4096 #
4097 
4098 ###############################################################################
4099 #
4100 # Setup version numbers
4101 #
4102 
4103 # Verify that a given string represents a valid version number, and assign it
4104 # to a variable.
4105 
4106 # Argument 1: the variable to assign to
4107 # Argument 2: the value given by the user
4108 
4109 
4110 
4111 









4112 #
4113 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4114 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4115 #
4116 # This code is free software; you can redistribute it and/or modify it
4117 # under the terms of the GNU General Public License version 2 only, as
4118 # published by the Free Software Foundation.  Oracle designates this
4119 # particular file as subject to the "Classpath" exception as provided
4120 # by Oracle in the LICENSE file that accompanied this code.
4121 #
4122 # This code is distributed in the hope that it will be useful, but WITHOUT
4123 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4124 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4125 # version 2 for more details (a copy is included in the LICENSE file that
4126 # accompanied this code).
4127 #
4128 # You should have received a copy of the GNU General Public License version
4129 # 2 along with this work; if not, write to the Free Software Foundation,
4130 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4131 #


4701 
4702 
4703 
4704 
4705 
4706 
4707 
4708 
4709 
4710 
4711 
4712 
4713 
4714 
4715 # This line needs to be here, verbatim, after all includes and the dummy hook
4716 # definitions. It is replaced with custom functionality when building
4717 # custom sources.
4718 #CUSTOM_AUTOCONF_INCLUDE
4719 
4720 # Do not change or remove the following line, it is needed for consistency checks:
4721 DATE_WHEN_GENERATED=1449552417
4722 
4723 ###############################################################################
4724 #
4725 # Initialization / Boot-strapping
4726 #
4727 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4728 # thus it jumps back and forth, each time gaining something needed later on.
4729 #
4730 ###############################################################################
4731 
4732 # If we are requested to print additional help, do that and then exit.
4733 # This must be the very first call.
4734 
4735   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4736     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4737     $PRINTF "Which are valid to use depends on the build platform.\n"
4738     for toolchain in $VALID_TOOLCHAINS_all; do
4739       # Use indirect variable referencing
4740       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4741       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}


47397 
47398       if test "x$BUILD_CC_CAN_DISABLE_WARNINGS" = "xtrue"; then
47399         BUILD_CC_DISABLE_WARNING_PREFIX="-Wno-"
47400       else
47401         BUILD_CC_DISABLE_WARNING_PREFIX=
47402       fi
47403       CC="$CC_OLD"
47404       ;;
47405     clang)
47406       DISABLE_WARNING_PREFIX="-Wno-"
47407       CFLAGS_WARNINGS_ARE_ERRORS="-Werror"
47408       ;;
47409   esac
47410 
47411 
47412 
47413 
47414 # Setup debug symbols (need objcopy from the toolchain for that)
47415 
47416   #
47417   # NATIVE_DEBUG_SYMBOLS
47418   # This must be done after the toolchain is setup, since we're looking at objcopy.
47419   #
47420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of native debug symbols to use" >&5
47421 $as_echo_n "checking what type of native debug symbols to use... " >&6; }
47422 
47423 # Check whether --with-native-debug-symbols was given.
47424 if test "${with_native_debug_symbols+set}" = set; then :
47425   withval=$with_native_debug_symbols;
47426 else
47427   with_native_debug_symbols="zipped"
47428 fi
47429 
47430   NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols
47431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE_DEBUG_SYMBOLS" >&5
47432 $as_echo "$NATIVE_DEBUG_SYMBOLS" >&6; }
47433 
47434   if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then

47435 
47436     if test "x$OBJCOPY" = x; then
47437       # explicit enabling of enable-debug-symbols and can't find objcopy
47438       # this is an error
47439       as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5
47440     fi
47441 

47442     ENABLE_DEBUG_SYMBOLS=true
47443     ZIP_DEBUGINFO_FILES=true
47444     DEBUG_BINARIES=true
47445     STRIP_POLICY=min_strip
47446   elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then
47447     ENABLE_DEBUG_SYMBOLS=false
47448     ZIP_DEBUGINFO_FILES=false
47449     DEBUG_BINARIES=false
47450     STRIP_POLICY=no_strip
47451   elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then
47452     ENABLE_DEBUG_SYMBOLS=false  # -g option only
47453     ZIP_DEBUGINFO_FILES=false
47454     DEBUG_BINARIES=true
47455     STRIP_POLICY=no_strip
47456     STRIP=""
47457   elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then
47458 
47459     if test "x$OBJCOPY" = x; then
47460       # explicit enabling of enable-debug-symbols and can't find objcopy
47461       # this is an error
47462       as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5
47463     fi
47464 
47465     ENABLE_DEBUG_SYMBOLS=true
47466     ZIP_DEBUGINFO_FILES=false
47467     DEBUG_BINARIES=true
47468     STRIP_POLICY=min_strip
47469   else
47470     as_fn_error $? "Allowed native debug symbols are: none, internal, external, zipped" "$LINENO" 5
47471   fi
47472 
47473   # --enable-debug-symbols is deprecated.
47474   # Please use --with-debug-symbols=[internal,external,zipped] .
47475 
47476   # Check whether --enable-debug-symbols was given.
47477 if test "${enable_debug_symbols+set}" = set; then :
47478   enableval=$enable_debug_symbols;
47479 fi
47480 
47481   if test "x$enable_debug_symbols" != x; then
47482     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&5
47483 $as_echo "$as_me: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&2;}
47484 
47485     if test "xPlease use --with-debug-symbols=[internal,external,zipped] ." != x; then
47486       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-debug-symbols=[internal,external,zipped] ." >&5
47487 $as_echo "$as_me: WARNING: Please use --with-debug-symbols=[internal,external,zipped] ." >&2;}
47488     fi
47489 
47490   fi
47491 


47492 
47493   # --enable-zip-debug-info is deprecated.
47494   # Please use --with-debug-symbols=zipped .
47495 


47496   # Check whether --enable-zip-debug-info was given.
47497 if test "${enable_zip_debug_info+set}" = set; then :
47498   enableval=$enable_zip_debug_info;


47499 fi
47500 
47501   if test "x$enable_zip_debug_info" != x; then
47502     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&5
47503 $as_echo "$as_me: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&2;}
47504 
47505     if test "xPlease use --with-debug-symbols=zipped ." != x; then
47506       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-debug-symbols=zipped ." >&5
47507 $as_echo "$as_me: WARNING: Please use --with-debug-symbols=zipped ." >&2;}
47508     fi
47509 




47510   fi
47511 
47512 
47513 
47514 
47515 
47516 
47517 
47518 
47519 
47520   # Check whether --enable-native-coverage was given.
47521 if test "${enable_native_coverage+set}" = set; then :
47522   enableval=$enable_native_coverage;
47523 fi
47524 
47525   GCOV_ENABLED="false"
47526   if test "x$enable_native_coverage" = "xyes"; then
47527     if test "x$TOOLCHAIN_TYPE" = "xgcc"; then
47528       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5
47529 $as_echo_n "checking if native coverage is enabled... " >&6; }
47530       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47531 $as_echo "yes" >&6; }
47532       GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline"
47533       GCOV_LDFLAGS="-fprofile-arcs"
47534       LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $GCOV_CFLAGS"


< prev index next >