< prev index next >

common/autoconf/generated-configure.sh

Print this page




 666 LIBFFI_CFLAGS
 667 ALSA_LIBS
 668 ALSA_CFLAGS
 669 FREETYPE_BUNDLE_LIB_PATH
 670 FREETYPE_LIBS
 671 FREETYPE_CFLAGS
 672 CUPS_CFLAGS
 673 X_EXTRA_LIBS
 674 X_LIBS
 675 X_PRE_LIBS
 676 X_CFLAGS
 677 XMKMF
 678 MSVCP_DLL
 679 MSVCR_DLL
 680 LIBCXX
 681 STATIC_CXX_SETTING
 682 FIXPATH
 683 GCOV_ENABLED
 684 ZIP_DEBUGINFO_FILES
 685 ENABLE_DEBUG_SYMBOLS



 686 CFLAGS_WARNINGS_ARE_ERRORS
 687 DISABLE_WARNING_PREFIX
 688 HOTSPOT_SET_WARNINGS_AS_ERRORS
 689 WARNINGS_AS_ERRORS
 690 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 691 ZERO_ARCHFLAG
 692 LDFLAGS_TESTEXE
 693 LDFLAGS_TESTLIB
 694 LDFLAGS_CXX_JDK
 695 JDKEXE_LIBS
 696 JDKLIB_LIBS
 697 LDFLAGS_JDKEXE
 698 LDFLAGS_JDKLIB
 699 CXXFLAGS_TESTEXE
 700 CXXFLAGS_TESTLIB
 701 CFLAGS_TESTEXE
 702 CFLAGS_TESTLIB
 703 CXXFLAGS_JDKEXE
 704 CXXFLAGS_JDKLIB
 705 CFLAGS_JDKEXE


1067 with_add_source_root
1068 with_override_source_root
1069 with_adds_and_overrides
1070 with_override_langtools
1071 with_override_corba
1072 with_override_jaxp
1073 with_override_jaxws
1074 with_override_hotspot
1075 with_override_nashorn
1076 with_override_jdk
1077 with_import_hotspot
1078 enable_static_build
1079 with_toolchain_type
1080 with_extra_cflags
1081 with_extra_cxxflags
1082 with_extra_ldflags
1083 with_toolchain_version
1084 with_build_devkit
1085 with_jtreg
1086 enable_warnings_as_errors



1087 enable_debug_symbols
1088 enable_zip_debug_info
1089 enable_native_coverage
1090 with_stdc__lib
1091 with_msvcr_dll
1092 with_msvcp_dll
1093 with_x
1094 with_cups
1095 with_cups_include
1096 with_freetype
1097 with_freetype_include
1098 with_freetype_lib
1099 with_freetype_src
1100 enable_freetype_bundling
1101 with_alsa
1102 with_alsa_include
1103 with_alsa_lib
1104 with_libffi
1105 with_libffi_include
1106 with_libffi_lib


1841   cat <<\_ACEOF
1842 
1843 Optional Features:
1844   --disable-option-checking  ignore unrecognized --enable/--with options
1845   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1846   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1847   --enable-openjdk-only   suppress building custom source even if present
1848                           [disabled]
1849   --enable-debug          set the debug level to fastdebug (shorthand for
1850                           --with-debug-level=fastdebug) [disabled]
1851   --disable-headful       disable building headful support (graphical UI
1852                           support) [enabled]
1853   --enable-hotspot-test-in-build
1854                           run the Queens test after Hotspot build [disabled]
1855   --enable-unlimited-crypto
1856                           Enable unlimited crypto policy [disabled]
1857   --enable-static-build   enable static library build [disabled]
1858   --disable-warnings-as-errors
1859                           do not consider native warnings to be an error
1860                           [enabled]


1861   --disable-debug-symbols disable generation of debug symbols [enabled]
1862   --disable-zip-debug-info
1863                           disable zipping of debug-info files [enabled]
1864   --enable-native-coverage
1865                           enable native compilation with code coverage
1866                           data[disabled]
1867   --disable-freetype-bundling
1868                           disable bundling of the freetype library with the
1869                           build result [enabled on Windows or when using
1870                           --with-freetype, disabled otherwise]
1871   --enable-sjavac         use sjavac to do fast incremental compiles
1872                           [disabled]
1873   --enable-javac-server   use only the server part of sjavac for faster javac
1874                           compiles [disabled]
1875   --disable-precompiled-headers
1876                           disable using precompiled headers when compiling C++
1877                           [enabled]
1878   --enable-ccache         enable using ccache to speed up recompilations
1879                           [disabled]
1880 


1934   --with-override-hotspot Deprecated. Option is kept for backwards
1935                           compatibility and is ignored
1936   --with-override-nashorn Deprecated. Option is kept for backwards
1937                           compatibility and is ignored
1938   --with-override-jdk     Deprecated. Option is kept for backwards
1939                           compatibility and is ignored
1940   --with-import-hotspot   import hotspot binaries from this jdk image or
1941                           hotspot build dist dir instead of building from
1942                           source
1943   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1944                           to show possible values [platform dependent]
1945   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1946   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1947   --with-extra-ldflags    extra flags to be used when linking jdk
1948   --with-toolchain-version
1949                           the version of the toolchain to look for, use
1950                           '--help' to show possible values [platform
1951                           dependent]
1952   --with-build-devkit     Devkit to use for the build platform toolchain
1953   --with-jtreg            Regression Test Harness [probed]




1954   --with-stdc++lib=<static>,<dynamic>,<default>
1955                           force linking of the C++ runtime on Linux to either
1956                           static or dynamic, default is static with dynamic as
1957                           fallback
1958   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
1959                           (Windows only) [probed]
1960   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
1961                           (Windows only) [probed]
1962   --with-x                use the X Window System
1963   --with-cups             specify prefix directory for the cups package
1964                           (expecting the headers under PATH/include)
1965   --with-cups-include     specify directory for the cups include files
1966   --with-freetype         specify prefix directory for the freetype package
1967                           (expecting the libraries under PATH/lib and the
1968                           headers under PATH/include)
1969   --with-freetype-include specify directory for the freetype include files
1970   --with-freetype-lib     specify directory for the freetype library
1971   --with-freetype-src     specify directory with freetype sources to
1972                           automatically build the library (experimental,
1973                           Windows-only)


4593 
4594 
4595 
4596 
4597 
4598 
4599 
4600 
4601 
4602 
4603 
4604 
4605 
4606 
4607 # This line needs to be here, verbatim, after all includes and the dummy hook
4608 # definitions. It is replaced with custom functionality when building
4609 # custom sources.
4610 #CUSTOM_AUTOCONF_INCLUDE
4611 
4612 # Do not change or remove the following line, it is needed for consistency checks:
4613 DATE_WHEN_GENERATED=1446762265
4614 
4615 ###############################################################################
4616 #
4617 # Initialization / Boot-strapping
4618 #
4619 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4620 # thus it jumps back and forth, each time gaining something needed later on.
4621 #
4622 ###############################################################################
4623 
4624 # If we are requested to print additional help, do that and then exit.
4625 # This must be the very first call.
4626 
4627   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4628     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4629     $PRINTF "Which are valid to use depends on the build platform.\n"
4630     for toolchain in $VALID_TOOLCHAINS_all; do
4631       # Use indirect variable referencing
4632       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4633       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}


45289   fi
45290 
45291       if test "x$GCC_CAN_DISABLE_WARNINGS" = "xtrue"; then
45292         DISABLE_WARNING_PREFIX="-Wno-"
45293       else
45294         DISABLE_WARNING_PREFIX=
45295       fi
45296       CFLAGS_WARNINGS_ARE_ERRORS="-Werror"
45297       ;;
45298     clang)
45299       DISABLE_WARNING_PREFIX="-Wno-"
45300       CFLAGS_WARNINGS_ARE_ERRORS="-Werror"
45301       ;;
45302   esac
45303 
45304 
45305 
45306 
45307 # Setup debug symbols (need objcopy from the toolchain for that)
45308 




























































































45309   #
45310   # ENABLE_DEBUG_SYMBOLS
45311   # This must be done after the toolchain is setup, since we're looking at objcopy.
45312   #





45313   # Check whether --enable-debug-symbols was given.
45314 if test "${enable_debug_symbols+set}" = set; then :
45315   enableval=$enable_debug_symbols;
45316 fi
45317 
45318 
45319   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5
45320 $as_echo_n "checking if we should generate debug symbols... " >&6; }
45321 
45322   if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then
45323     # explicit enabling of enable-debug-symbols and can't find objcopy
45324     #   this is an error
45325     as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5
45326   fi
45327 
45328   if test "x$enable_debug_symbols" = "xyes"; then
45329     ENABLE_DEBUG_SYMBOLS=true
45330   elif test "x$enable_debug_symbols" = "xno"; then
45331     ENABLE_DEBUG_SYMBOLS=false
45332   else
45333     # Default is on if objcopy is found
45334     if test "x$OBJCOPY" != x; then
45335       ENABLE_DEBUG_SYMBOLS=true
45336     # MacOS X and Windows don't use objcopy but default is on for those OSes
45337     elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then
45338       ENABLE_DEBUG_SYMBOLS=true
45339     else
45340       ENABLE_DEBUG_SYMBOLS=false
45341     fi
45342   fi
45343 
45344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5
45345 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; }
45346 
45347   #
45348   # ZIP_DEBUGINFO_FILES
45349   #





45350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5
45351 $as_echo_n "checking if we should zip debug-info files... " >&6; }
45352   # Check whether --enable-zip-debug-info was given.
45353 if test "${enable_zip_debug_info+set}" = set; then :
45354   enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}"
45355 else
45356   enable_zip_debug_info="yes"
45357 fi
45358 
45359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5
45360 $as_echo "${enable_zip_debug_info}" >&6; }
45361 
45362   if test "x${enable_zip_debug_info}" = "xno"; then
45363     ZIP_DEBUGINFO_FILES=false
45364   else
45365     ZIP_DEBUGINFO_FILES=true
45366   fi



45367 
45368 
45369 
45370 
45371 
45372   # Check whether --enable-native-coverage was given.
45373 if test "${enable_native_coverage+set}" = set; then :
45374   enableval=$enable_native_coverage;
45375 fi
45376 
45377   GCOV_ENABLED="false"
45378   if test "x$enable_native_coverage" = "xyes"; then
45379     if test "x$TOOLCHAIN_TYPE" = "xgcc"; then
45380       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5
45381 $as_echo_n "checking if native coverage is enabled... " >&6; }
45382       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45383 $as_echo "yes" >&6; }
45384       GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline"
45385       GCOV_LDFLAGS="-fprofile-arcs"
45386       LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $GCOV_CFLAGS"




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


1070 with_add_source_root
1071 with_override_source_root
1072 with_adds_and_overrides
1073 with_override_langtools
1074 with_override_corba
1075 with_override_jaxp
1076 with_override_jaxws
1077 with_override_hotspot
1078 with_override_nashorn
1079 with_override_jdk
1080 with_import_hotspot
1081 enable_static_build
1082 with_toolchain_type
1083 with_extra_cflags
1084 with_extra_cxxflags
1085 with_extra_ldflags
1086 with_toolchain_version
1087 with_build_devkit
1088 with_jtreg
1089 enable_warnings_as_errors
1090 with_debug_symbols
1091 enable_debug_binaries
1092 with_strip_policy
1093 enable_debug_symbols
1094 enable_zip_debug_info
1095 enable_native_coverage
1096 with_stdc__lib
1097 with_msvcr_dll
1098 with_msvcp_dll
1099 with_x
1100 with_cups
1101 with_cups_include
1102 with_freetype
1103 with_freetype_include
1104 with_freetype_lib
1105 with_freetype_src
1106 enable_freetype_bundling
1107 with_alsa
1108 with_alsa_include
1109 with_alsa_lib
1110 with_libffi
1111 with_libffi_include
1112 with_libffi_lib


1847   cat <<\_ACEOF
1848 
1849 Optional Features:
1850   --disable-option-checking  ignore unrecognized --enable/--with options
1851   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1852   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1853   --enable-openjdk-only   suppress building custom source even if present
1854                           [disabled]
1855   --enable-debug          set the debug level to fastdebug (shorthand for
1856                           --with-debug-level=fastdebug) [disabled]
1857   --disable-headful       disable building headful support (graphical UI
1858                           support) [enabled]
1859   --enable-hotspot-test-in-build
1860                           run the Queens test after Hotspot build [disabled]
1861   --enable-unlimited-crypto
1862                           Enable unlimited crypto policy [disabled]
1863   --enable-static-build   enable static library build [disabled]
1864   --disable-warnings-as-errors
1865                           do not consider native warnings to be an error
1866                           [enabled]
1867   --disable-debug-binaries
1868                           disable generating debug information [enabled]
1869   --disable-debug-symbols disable generation of debug symbols [enabled]
1870   --disable-zip-debug-info
1871                           disable zipping of debug-info files [enabled]
1872   --enable-native-coverage
1873                           enable native compilation with code coverage
1874                           data[disabled]
1875   --disable-freetype-bundling
1876                           disable bundling of the freetype library with the
1877                           build result [enabled on Windows or when using
1878                           --with-freetype, disabled otherwise]
1879   --enable-sjavac         use sjavac to do fast incremental compiles
1880                           [disabled]
1881   --enable-javac-server   use only the server part of sjavac for faster javac
1882                           compiles [disabled]
1883   --disable-precompiled-headers
1884                           disable using precompiled headers when compiling C++
1885                           [enabled]
1886   --enable-ccache         enable using ccache to speed up recompilations
1887                           [disabled]
1888 


1942   --with-override-hotspot Deprecated. Option is kept for backwards
1943                           compatibility and is ignored
1944   --with-override-nashorn Deprecated. Option is kept for backwards
1945                           compatibility and is ignored
1946   --with-override-jdk     Deprecated. Option is kept for backwards
1947                           compatibility and is ignored
1948   --with-import-hotspot   import hotspot binaries from this jdk image or
1949                           hotspot build dist dir instead of building from
1950                           source
1951   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1952                           to show possible values [platform dependent]
1953   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1954   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1955   --with-extra-ldflags    extra flags to be used when linking jdk
1956   --with-toolchain-version
1957                           the version of the toolchain to look for, use
1958                           '--help' to show possible values [platform
1959                           dependent]
1960   --with-build-devkit     Devkit to use for the build platform toolchain
1961   --with-jtreg            Regression Test Harness [probed]
1962   --with-debug-symbols    set the debug symbol configuration (none, internal,
1963                           external, zipped) [zipped]
1964   --with-strip-policy     set the policy of strip (all_strip, min_strip,
1965                           no_strip) [min_strip]
1966   --with-stdc++lib=<static>,<dynamic>,<default>
1967                           force linking of the C++ runtime on Linux to either
1968                           static or dynamic, default is static with dynamic as
1969                           fallback
1970   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
1971                           (Windows only) [probed]
1972   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
1973                           (Windows only) [probed]
1974   --with-x                use the X Window System
1975   --with-cups             specify prefix directory for the cups package
1976                           (expecting the headers under PATH/include)
1977   --with-cups-include     specify directory for the cups include files
1978   --with-freetype         specify prefix directory for the freetype package
1979                           (expecting the libraries under PATH/lib and the
1980                           headers under PATH/include)
1981   --with-freetype-include specify directory for the freetype include files
1982   --with-freetype-lib     specify directory for the freetype library
1983   --with-freetype-src     specify directory with freetype sources to
1984                           automatically build the library (experimental,
1985                           Windows-only)


4605 
4606 
4607 
4608 
4609 
4610 
4611 
4612 
4613 
4614 
4615 
4616 
4617 
4618 
4619 # This line needs to be here, verbatim, after all includes and the dummy hook
4620 # definitions. It is replaced with custom functionality when building
4621 # custom sources.
4622 #CUSTOM_AUTOCONF_INCLUDE
4623 
4624 # Do not change or remove the following line, it is needed for consistency checks:
4625 DATE_WHEN_GENERATED=1447929925
4626 
4627 ###############################################################################
4628 #
4629 # Initialization / Boot-strapping
4630 #
4631 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4632 # thus it jumps back and forth, each time gaining something needed later on.
4633 #
4634 ###############################################################################
4635 
4636 # If we are requested to print additional help, do that and then exit.
4637 # This must be the very first call.
4638 
4639   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4640     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4641     $PRINTF "Which are valid to use depends on the build platform.\n"
4642     for toolchain in $VALID_TOOLCHAINS_all; do
4643       # Use indirect variable referencing
4644       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4645       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}


45301   fi
45302 
45303       if test "x$GCC_CAN_DISABLE_WARNINGS" = "xtrue"; then
45304         DISABLE_WARNING_PREFIX="-Wno-"
45305       else
45306         DISABLE_WARNING_PREFIX=
45307       fi
45308       CFLAGS_WARNINGS_ARE_ERRORS="-Werror"
45309       ;;
45310     clang)
45311       DISABLE_WARNING_PREFIX="-Wno-"
45312       CFLAGS_WARNINGS_ARE_ERRORS="-Werror"
45313       ;;
45314   esac
45315 
45316 
45317 
45318 
45319 # Setup debug symbols (need objcopy from the toolchain for that)
45320 
45321   DEBUG_BINARIES=false
45322   STRIP_POLICY=min_strip
45323 
45324   #
45325   # DEBUG_SYMBOLS
45326   #
45327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of debug symbols to use" >&5
45328 $as_echo_n "checking what type of debug symbols to use... " >&6; }
45329 
45330 # Check whether --with-debug-symbols was given.
45331 if test "${with_debug_symbols+set}" = set; then :
45332   withval=$with_debug_symbols;
45333 else
45334   with_debug_symbols="zipped"
45335 fi
45336 
45337   DEBUG_SYMBOLS=$with_debug_symbols
45338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_SYMBOLS" >&5
45339 $as_echo "$DEBUG_SYMBOLS" >&6; }
45340 
45341   if test "x$DEBUG_SYMBOLS" = xzipped; then
45342     ENABLE_DEBUG_SYMBOLS=true
45343     ZIP_DEBUGINFO_FILES=true
45344     DEBUG_BINARIES=true
45345     STRIP_POLICY=min_strip
45346     JAVAC_FLAGS="$JAVAC_FLAGS -g"
45347   elif test "x$DEBUG_SYMBOLS" = xnone; then
45348     ENABLE_DEBUG_SYMBOLS=false
45349     ZIP_DEBUGINFO_FILES=false
45350     DEBUG_BINARIES=false
45351     STRIP_POLICY=min_strip
45352   elif test "x$DEBUG_SYMBOLS" = xinternal; then
45353     ENABLE_DEBUG_SYMBOLS=false  # -g option only
45354     ZIP_DEBUGINFO_FILES=false
45355     DEBUG_BINARIES=true
45356     STRIP_POLICY=no_strip
45357     STRIP=""
45358     JAVAC_FLAGS="$JAVAC_FLAGS -g"
45359   elif test "x$DEBUG_SYMBOLS" = xexternal; then
45360     ENABLE_DEBUG_SYMBOLS=true
45361     ZIP_DEBUGINFO_FILES=false
45362     DEBUG_BINARIES=true
45363     STRIP_POLICY=min_strip
45364     JAVAC_FLAGS="$JAVAC_FLAGS -g"
45365   else
45366     as_fn_error $? "Allowed debug symbols are: none, internal, external, zipped" "$LINENO" 5
45367   fi
45368 
45369   #
45370   # DEBUG_BINARIES
45371   #
45372   if test "x$DEBUG_BINARIES" = xtrue; then
45373     enable_debug_binaries=yes
45374   else
45375     enable_debug_binaries=no
45376   fi
45377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug information" >&5
45378 $as_echo_n "checking if we should generate debug information... " >&6; }
45379   # Check whether --enable-debug-binaries was given.
45380 if test "${enable_debug_binaries+set}" = set; then :
45381   enableval=$enable_debug_binaries;
45382 fi
45383 
45384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_binaries" >&5
45385 $as_echo "$enable_debug_binaries" >&6; }
45386   if test "x$enable_debug_binaries" = xyes; then
45387     DEBUG_BINARIES=true
45388   else
45389     DEBUG_BINARIES=false
45390   fi
45391 
45392   #
45393   # STRIP_POLICY
45394   #
45395   strip_policy=$STRIP_POLICY
45396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what policy of strip" >&5
45397 $as_echo_n "checking what policy of strip... " >&6; }
45398 
45399 # Check whether --with-strip-policy was given.
45400 if test "${with_strip_policy+set}" = set; then :
45401   withval=$with_strip_policy; STRIP_POLICY=$strip_policy
45402 fi
45403 
45404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_POLICY" >&5
45405 $as_echo "$STRIP_POLICY" >&6; }
45406 
45407   if test "x$STRIP_POLICY" != xall_strip && \
45408       test "x$STRIP_POLICY" != xmin_strip && \
45409       test "x$STRIP_POLICY" != xno_strip; then
45410     as_fn_error $? "Allowed strip policies are: all_strip, min_strip, no_strip" "$LINENO" 5
45411   fi
45412 
45413   #
45414   # ENABLE_DEBUG_SYMBOLS
45415   # This must be done after the toolchain is setup, since we're looking at objcopy.
45416   #
45417   if test "x$ENABLE_DEBUG_SYMBOLS" = xtrue; then
45418     enable_debug_symbols=yes
45419   else
45420     enable_debug_symbols=no
45421   fi
45422   # Check whether --enable-debug-symbols was given.
45423 if test "${enable_debug_symbols+set}" = set; then :
45424   enableval=$enable_debug_symbols;
45425 fi
45426 
45427 
45428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5
45429 $as_echo_n "checking if we should generate debug symbols... " >&6; }
45430 
45431   if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then
45432     # explicit enabling of enable-debug-symbols and can't find objcopy
45433     #   this is an error
45434     as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5
45435   fi
45436 
45437   if test "x$enable_debug_symbols" = "xyes"; then
45438     ENABLE_DEBUG_SYMBOLS=true
45439   elif test "x$enable_debug_symbols" = "xno"; then
45440     ENABLE_DEBUG_SYMBOLS=false
45441   else
45442     # Default is on if objcopy is found
45443     if test "x$OBJCOPY" != x; then
45444       ENABLE_DEBUG_SYMBOLS=true
45445     # MacOS X and Windows don't use objcopy but default is on for those OSes
45446     elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then
45447       ENABLE_DEBUG_SYMBOLS=true
45448     else
45449       ENABLE_DEBUG_SYMBOLS=false
45450     fi
45451   fi
45452 
45453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5
45454 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; }
45455 
45456   #
45457   # ZIP_DEBUGINFO_FILES
45458   #
45459   if test "x$ZIP_DEBUGINFO_FILES" = xtrue; then
45460     enable_zip_debug_info=yes
45461   else
45462     enable_zip_debug_info=no
45463   fi
45464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5
45465 $as_echo_n "checking if we should zip debug-info files... " >&6; }
45466   # Check whether --enable-zip-debug-info was given.
45467 if test "${enable_zip_debug_info+set}" = set; then :
45468   enableval=$enable_zip_debug_info;


45469 fi
45470 
45471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5
45472 $as_echo "${enable_zip_debug_info}" >&6; }
45473 
45474   if test "x${enable_zip_debug_info}" = "xno"; then
45475     ZIP_DEBUGINFO_FILES=false
45476   else
45477     ZIP_DEBUGINFO_FILES=true
45478   fi
45479 
45480 
45481 
45482 
45483 
45484 
45485 
45486 
45487   # Check whether --enable-native-coverage was given.
45488 if test "${enable_native_coverage+set}" = set; then :
45489   enableval=$enable_native_coverage;
45490 fi
45491 
45492   GCOV_ENABLED="false"
45493   if test "x$enable_native_coverage" = "xyes"; then
45494     if test "x$TOOLCHAIN_TYPE" = "xgcc"; then
45495       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5
45496 $as_echo_n "checking if native coverage is enabled... " >&6; }
45497       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45498 $as_echo "yes" >&6; }
45499       GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline"
45500       GCOV_LDFLAGS="-fprofile-arcs"
45501       LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $GCOV_CFLAGS"


< prev index next >