common/autoconf/generated-configure.sh

Print this page




 749 CXX
 750 ac_ct_PROPER_COMPILER_CXX
 751 PROPER_COMPILER_CXX
 752 POTENTIAL_CXX
 753 TOOLS_DIR_CXX
 754 OBJEXT
 755 EXEEXT
 756 ac_ct_CC
 757 CPPFLAGS
 758 LDFLAGS
 759 CFLAGS
 760 CC
 761 ac_ct_PROPER_COMPILER_CC
 762 PROPER_COMPILER_CC
 763 POTENTIAL_CC
 764 TOOLS_DIR_CC
 765 BUILD_LD
 766 BUILD_CXX
 767 BUILD_CC
 768 MSVCR_DLL
 769 DXSDK_INCLUDE_PATH
 770 DXSDK_LIB_PATH
 771 VS_PATH
 772 VS_LIB
 773 VS_INCLUDE
 774 CYGWIN_LINK
 775 AR_OUT_OPTION
 776 LD_OUT_OPTION
 777 EXE_OUT_OPTION
 778 CC_OUT_OPTION
 779 BUILD_HOTSPOT
 780 HOTSPOT_DIST
 781 BUILD_OUTPUT
 782 OVERRIDE_SRC_ROOT
 783 ADD_SRC_ROOT
 784 JDK_TOPDIR
 785 NASHORN_TOPDIR
 786 HOTSPOT_TOPDIR
 787 JAXWS_TOPDIR
 788 JAXP_TOPDIR
 789 CORBA_TOPDIR
 790 LANGTOOLS_TOPDIR


1017 enable_hotspot_test_in_build
1018 with_cacerts_file
1019 enable_unlimited_crypto
1020 with_milestone
1021 with_update_version
1022 with_build_number
1023 with_user_release_suffix
1024 with_boot_jdk
1025 with_boot_jdk_jvmargs
1026 with_add_source_root
1027 with_override_source_root
1028 with_adds_and_overrides
1029 with_override_langtools
1030 with_override_corba
1031 with_override_jaxp
1032 with_override_jaxws
1033 with_override_hotspot
1034 with_override_jdk
1035 with_import_hotspot
1036 with_msvcr_dll
1037 with_dxsdk
1038 with_dxsdk_lib
1039 with_dxsdk_include
1040 with_jtreg
1041 with_extra_cflags
1042 with_extra_cxxflags
1043 with_extra_ldflags
1044 enable_debug_symbols
1045 enable_zip_debug_info
1046 enable_macosx_runtime_support
1047 with_x
1048 with_cups
1049 with_cups_include
1050 with_freetype
1051 with_alsa
1052 with_alsa_include
1053 with_alsa_lib
1054 with_giflib
1055 with_zlib
1056 with_stdc__lib
1057 with_num_cores
1058 with_memory_size
1059 with_jobs


1773                           for each and every source directory, look in this
1774                           override source root for the same directory; if it
1775                           exists, use that directory instead and ignore the
1776                           directory in the original source root
1777   --with-adds-and-overrides
1778                           use the subdirs 'adds' and 'overrides' in the
1779                           specified directory as add-source-root and
1780                           override-source-root
1781   --with-override-langtools
1782                           use this langtools dir for the build
1783   --with-override-corba   use this corba dir for the build
1784   --with-override-jaxp    use this jaxp dir for the build
1785   --with-override-jaxws   use this jaxws dir for the build
1786   --with-override-hotspot use this hotspot dir for the build
1787   --with-override-jdk     use this jdk dir for the build
1788   --with-import-hotspot   import hotspot binaries from this jdk image or
1789                           hotspot build dist dir instead of building from
1790                           source
1791   --with-msvcr-dll        copy this msvcr100.dll into the built JDK (Windows
1792                           only) [probed]
1793   --with-dxsdk            the DirectX SDK (Windows only) [probed]
1794   --with-dxsdk-lib        the DirectX SDK lib directory (Windows only)
1795                           [probed]
1796   --with-dxsdk-include    the DirectX SDK include directory (Windows only)
1797                           [probed]
1798   --with-jtreg            Regression Test Harness [probed]
1799   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1800   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1801   --with-extra-ldflags    extra flags to be used when linking jdk
1802   --with-x                use the X Window System
1803   --with-cups             specify prefix directory for the cups package
1804                           (expecting the headers under PATH/include)
1805   --with-cups-include     specify directory for the cups include files
1806   --with-freetype         specify prefix directory for the freetype2 package
1807                           (expecting the libraries under PATH/lib and the
1808                           headers under PATH/include)
1809   --with-alsa             specify prefix directory for the alsa package
1810                           (expecting the libraries under PATH/lib and the
1811                           headers under PATH/include)
1812   --with-alsa-include     specify directory for the alsa include files
1813   --with-alsa-lib         specify directory for the alsa library
1814   --with-giflib           use giflib from build system or OpenJDK source
1815                           (system, bundled) [bundled]
1816   --with-zlib             use zlib from build system or OpenJDK source
1817                           (system, bundled) [bundled]


3788 # 2 along with this work; if not, write to the Free Software Foundation,
3789 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3790 #
3791 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3792 # or visit www.oracle.com if you need additional information or have any
3793 # questions.
3794 #
3795 
3796 
3797 
3798 
3799 
3800 
3801 
3802 # Check if the VS env variables were setup prior to running configure.
3803 # If not, then find vcvarsall.bat and run it automatically, and integrate
3804 # the set env variables into the spec file.
3805 
3806 
3807 
3808 # Setup the DXSDK paths
3809 
3810 
3811 
3812 
3813 
3814 
3815 # This line needs to be here, verbatim, after all includes and the dummy hook
3816 # definitions. It is replaced with custom functionality when building
3817 # custom sources.
3818 #CUSTOM_AUTOCONF_INCLUDE
3819 
3820 # Do not change or remove the following line, it is needed for consistency checks:
3821 DATE_WHEN_GENERATED=1378914658
3822 
3823 ###############################################################################
3824 #
3825 # Initialization / Boot-strapping
3826 #
3827 # The bootstrapping process needs to solve the "chicken or the egg" problem,
3828 # thus it jumps back and forth, each time gaining something needed later on.
3829 #
3830 ###############################################################################
3831 
3832 # Basic initialization that must happen first of all
3833 
3834 # Save the original command line. This is passed to us by the wrapper configure script.
3835 
3836 DATE_WHEN_CONFIGURED=`LANG=C date`
3837 
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
3839 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
3841 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}


17564 
17565   else
17566     # We're on a posix platform. Hooray! :)
17567     path="$MSVCR_DLL"
17568     has_space=`$ECHO "$path" | $GREP " "`
17569     if test "x$has_space" != x; then
17570       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5
17571 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;}
17572       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17573     fi
17574 
17575     # Use eval to expand a potential ~
17576     eval path="$path"
17577     if test ! -f "$path" && test ! -d "$path"; then
17578       as_fn_error $? "The path of MSVCR_DLL, which resolves as \"$path\", is not found." "$LINENO" 5
17579     fi
17580 
17581     MSVCR_DLL="`cd "$path"; $THEPWDCMD -L`"
17582   fi
17583 
17584 
17585 
17586 
17587 # Check whether --with-dxsdk was given.
17588 if test "${with_dxsdk+set}" = set; then :
17589   withval=$with_dxsdk;
17590 fi
17591 
17592 
17593 # Check whether --with-dxsdk-lib was given.
17594 if test "${with_dxsdk_lib+set}" = set; then :
17595   withval=$with_dxsdk_lib;
17596 fi
17597 
17598 
17599 # Check whether --with-dxsdk-include was given.
17600 if test "${with_dxsdk_include+set}" = set; then :
17601   withval=$with_dxsdk_include;
17602 fi
17603 
17604 
17605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectX SDK" >&5
17606 $as_echo_n "checking for DirectX SDK... " >&6; }
17607 
17608   if test "x$with_dxsdk" != x; then
17609     dxsdk_path="$with_dxsdk"
17610   elif test "x$DXSDK_DIR" != x; then
17611     dxsdk_path="$DXSDK_DIR"
17612   elif test -d "C:/DXSDK"; then
17613     dxsdk_path="C:/DXSDK"
17614   else
17615     as_fn_error $? "Could not find the DirectX SDK" "$LINENO" 5
17616   fi
17617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dxsdk_path" >&5
17618 $as_echo "$dxsdk_path" >&6; }
17619 
17620   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17621 
17622   # Input might be given as Windows format, start by converting to
17623   # unix format.
17624   path="$dxsdk_path"
17625   new_path=`$CYGPATH -u "$path"`
17626 
17627   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17628   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17629   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17630   # "foo.exe" is OK but "foo" is an error.
17631   #
17632   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17633   # It is also a way to make sure we got the proper file name for the real test later on.
17634   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17635   if test "x$test_shortpath" = x; then
17636     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of dxsdk_path, which resolves as \"$path\", is invalid." >&5
17637 $as_echo "$as_me: The path of dxsdk_path, which resolves as \"$path\", is invalid." >&6;}
17638     as_fn_error $? "Cannot locate the the path of dxsdk_path" "$LINENO" 5
17639   fi
17640 
17641   # Call helper function which possibly converts this using DOS-style short mode.
17642   # If so, the updated path is stored in $new_path.
17643 
17644   input_path="$new_path"
17645   # Check if we need to convert this using DOS-style short mode. If the path
17646   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17647   # take no chances and rewrite it.
17648   # Note: m4 eats our [], so we need to use [ and ] instead.
17649   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17650   if test "x$has_forbidden_chars" != x; then
17651     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17652     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17653     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17654     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17655       # Going to short mode and back again did indeed matter. Since short mode is
17656       # case insensitive, let's make it lowercase to improve readability.
17657       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17658       # Now convert it back to Unix-stile (cygpath)
17659       input_path=`$CYGPATH -u "$shortmode_path"`
17660       new_path="$input_path"
17661     fi
17662   fi
17663 
17664   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17665   if test "x$test_cygdrive_prefix" = x; then
17666     # As a simple fix, exclude /usr/bin since it's not a real path.
17667     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17668       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17669       # a path prefixed by /cygdrive for fixpath to work.
17670       new_path="$CYGWIN_ROOT_PATH$input_path"
17671     fi
17672   fi
17673 
17674 
17675   if test "x$path" != "x$new_path"; then
17676     dxsdk_path="$new_path"
17677     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting dxsdk_path to \"$new_path\"" >&5
17678 $as_echo "$as_me: Rewriting dxsdk_path to \"$new_path\"" >&6;}
17679   fi
17680 
17681   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17682 
17683   path="$dxsdk_path"
17684   has_colon=`$ECHO $path | $GREP ^.:`
17685   new_path="$path"
17686   if test "x$has_colon" = x; then
17687     # Not in mixed or Windows style, start by that.
17688     new_path=`cmd //c echo $path`
17689   fi
17690 
17691 
17692   input_path="$new_path"
17693   # Check if we need to convert this using DOS-style short mode. If the path
17694   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17695   # take no chances and rewrite it.
17696   # Note: m4 eats our [], so we need to use [ and ] instead.
17697   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17698   if test "x$has_forbidden_chars" != x; then
17699     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17700     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17701   fi
17702 
17703 
17704   windows_path="$new_path"
17705   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17706     unix_path=`$CYGPATH -u "$windows_path"`
17707     new_path="$unix_path"
17708   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17709     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17710     new_path="$unix_path"
17711   fi
17712 
17713   if test "x$path" != "x$new_path"; then
17714     dxsdk_path="$new_path"
17715     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting dxsdk_path to \"$new_path\"" >&5
17716 $as_echo "$as_me: Rewriting dxsdk_path to \"$new_path\"" >&6;}
17717   fi
17718 
17719   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17720   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17721 
17722   else
17723     # We're on a posix platform. Hooray! :)
17724     path="$dxsdk_path"
17725     has_space=`$ECHO "$path" | $GREP " "`
17726     if test "x$has_space" != x; then
17727       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of dxsdk_path, which resolves as \"$path\", is invalid." >&5
17728 $as_echo "$as_me: The path of dxsdk_path, which resolves as \"$path\", is invalid." >&6;}
17729       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17730     fi
17731 
17732     # Use eval to expand a potential ~
17733     eval path="$path"
17734     if test ! -f "$path" && test ! -d "$path"; then
17735       as_fn_error $? "The path of dxsdk_path, which resolves as \"$path\", is not found." "$LINENO" 5
17736     fi
17737 
17738     dxsdk_path="`cd "$path"; $THEPWDCMD -L`"
17739   fi
17740 
17741 
17742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectX SDK lib dir" >&5
17743 $as_echo_n "checking for DirectX SDK lib dir... " >&6; }
17744   if test "x$with_dxsdk_lib" != x; then
17745     DXSDK_LIB_PATH="$with_dxsdk_lib"
17746   elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
17747     DXSDK_LIB_PATH="$dxsdk_path/Lib/x64"
17748   else
17749     DXSDK_LIB_PATH="$dxsdk_path/Lib"
17750   fi
17751   # dsound.lib is linked to in jsoundds
17752   if test ! -f "$DXSDK_LIB_PATH/dsound.lib"; then
17753     as_fn_error $? "Invalid DirectX SDK lib dir" "$LINENO" 5
17754   fi
17755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DXSDK_LIB_PATH" >&5
17756 $as_echo "$DXSDK_LIB_PATH" >&6; }
17757 
17758   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17759 
17760   # Input might be given as Windows format, start by converting to
17761   # unix format.
17762   path="$DXSDK_LIB_PATH"
17763   new_path=`$CYGPATH -u "$path"`
17764 
17765   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17766   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17767   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17768   # "foo.exe" is OK but "foo" is an error.
17769   #
17770   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17771   # It is also a way to make sure we got the proper file name for the real test later on.
17772   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17773   if test "x$test_shortpath" = x; then
17774     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DXSDK_LIB_PATH, which resolves as \"$path\", is invalid." >&5
17775 $as_echo "$as_me: The path of DXSDK_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
17776     as_fn_error $? "Cannot locate the the path of DXSDK_LIB_PATH" "$LINENO" 5
17777   fi
17778 
17779   # Call helper function which possibly converts this using DOS-style short mode.
17780   # If so, the updated path is stored in $new_path.
17781 
17782   input_path="$new_path"
17783   # Check if we need to convert this using DOS-style short mode. If the path
17784   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17785   # take no chances and rewrite it.
17786   # Note: m4 eats our [], so we need to use [ and ] instead.
17787   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17788   if test "x$has_forbidden_chars" != x; then
17789     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17790     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17791     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17792     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17793       # Going to short mode and back again did indeed matter. Since short mode is
17794       # case insensitive, let's make it lowercase to improve readability.
17795       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17796       # Now convert it back to Unix-stile (cygpath)
17797       input_path=`$CYGPATH -u "$shortmode_path"`
17798       new_path="$input_path"
17799     fi
17800   fi
17801 
17802   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17803   if test "x$test_cygdrive_prefix" = x; then
17804     # As a simple fix, exclude /usr/bin since it's not a real path.
17805     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17806       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17807       # a path prefixed by /cygdrive for fixpath to work.
17808       new_path="$CYGWIN_ROOT_PATH$input_path"
17809     fi
17810   fi
17811 
17812 
17813   if test "x$path" != "x$new_path"; then
17814     DXSDK_LIB_PATH="$new_path"
17815     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DXSDK_LIB_PATH to \"$new_path\"" >&5
17816 $as_echo "$as_me: Rewriting DXSDK_LIB_PATH to \"$new_path\"" >&6;}
17817   fi
17818 
17819   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17820 
17821   path="$DXSDK_LIB_PATH"
17822   has_colon=`$ECHO $path | $GREP ^.:`
17823   new_path="$path"
17824   if test "x$has_colon" = x; then
17825     # Not in mixed or Windows style, start by that.
17826     new_path=`cmd //c echo $path`
17827   fi
17828 
17829 
17830   input_path="$new_path"
17831   # Check if we need to convert this using DOS-style short mode. If the path
17832   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17833   # take no chances and rewrite it.
17834   # Note: m4 eats our [], so we need to use [ and ] instead.
17835   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17836   if test "x$has_forbidden_chars" != x; then
17837     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17838     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17839   fi
17840 
17841 
17842   windows_path="$new_path"
17843   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17844     unix_path=`$CYGPATH -u "$windows_path"`
17845     new_path="$unix_path"
17846   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17847     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17848     new_path="$unix_path"
17849   fi
17850 
17851   if test "x$path" != "x$new_path"; then
17852     DXSDK_LIB_PATH="$new_path"
17853     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DXSDK_LIB_PATH to \"$new_path\"" >&5
17854 $as_echo "$as_me: Rewriting DXSDK_LIB_PATH to \"$new_path\"" >&6;}
17855   fi
17856 
17857   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17858   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17859 
17860   else
17861     # We're on a posix platform. Hooray! :)
17862     path="$DXSDK_LIB_PATH"
17863     has_space=`$ECHO "$path" | $GREP " "`
17864     if test "x$has_space" != x; then
17865       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DXSDK_LIB_PATH, which resolves as \"$path\", is invalid." >&5
17866 $as_echo "$as_me: The path of DXSDK_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
17867       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17868     fi
17869 
17870     # Use eval to expand a potential ~
17871     eval path="$path"
17872     if test ! -f "$path" && test ! -d "$path"; then
17873       as_fn_error $? "The path of DXSDK_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
17874     fi
17875 
17876     DXSDK_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
17877   fi
17878 
17879 
17880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectX SDK include dir" >&5
17881 $as_echo_n "checking for DirectX SDK include dir... " >&6; }
17882   if test "x$with_dxsdk_include" != x; then
17883     DXSDK_INCLUDE_PATH="$with_dxsdk_include"
17884   else
17885     DXSDK_INCLUDE_PATH="$dxsdk_path/Include"
17886   fi
17887   # dsound.h is included in jsoundds
17888   if test ! -f "$DXSDK_INCLUDE_PATH/dsound.h"; then
17889     as_fn_error $? "Invalid DirectX SDK lib dir" "$LINENO" 5
17890   fi
17891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DXSDK_INCLUDE_PATH" >&5
17892 $as_echo "$DXSDK_INCLUDE_PATH" >&6; }
17893 
17894   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17895 
17896   # Input might be given as Windows format, start by converting to
17897   # unix format.
17898   path="$DXSDK_INCLUDE_PATH"
17899   new_path=`$CYGPATH -u "$path"`
17900 
17901   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17902   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17903   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17904   # "foo.exe" is OK but "foo" is an error.
17905   #
17906   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17907   # It is also a way to make sure we got the proper file name for the real test later on.
17908   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17909   if test "x$test_shortpath" = x; then
17910     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DXSDK_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
17911 $as_echo "$as_me: The path of DXSDK_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
17912     as_fn_error $? "Cannot locate the the path of DXSDK_INCLUDE_PATH" "$LINENO" 5
17913   fi
17914 
17915   # Call helper function which possibly converts this using DOS-style short mode.
17916   # If so, the updated path is stored in $new_path.
17917 
17918   input_path="$new_path"
17919   # Check if we need to convert this using DOS-style short mode. If the path
17920   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17921   # take no chances and rewrite it.
17922   # Note: m4 eats our [], so we need to use [ and ] instead.
17923   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17924   if test "x$has_forbidden_chars" != x; then
17925     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17926     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17927     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17928     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17929       # Going to short mode and back again did indeed matter. Since short mode is
17930       # case insensitive, let's make it lowercase to improve readability.
17931       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17932       # Now convert it back to Unix-stile (cygpath)
17933       input_path=`$CYGPATH -u "$shortmode_path"`
17934       new_path="$input_path"
17935     fi
17936   fi
17937 
17938   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17939   if test "x$test_cygdrive_prefix" = x; then
17940     # As a simple fix, exclude /usr/bin since it's not a real path.
17941     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17942       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17943       # a path prefixed by /cygdrive for fixpath to work.
17944       new_path="$CYGWIN_ROOT_PATH$input_path"
17945     fi
17946   fi
17947 
17948 
17949   if test "x$path" != "x$new_path"; then
17950     DXSDK_INCLUDE_PATH="$new_path"
17951     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DXSDK_INCLUDE_PATH to \"$new_path\"" >&5
17952 $as_echo "$as_me: Rewriting DXSDK_INCLUDE_PATH to \"$new_path\"" >&6;}
17953   fi
17954 
17955   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17956 
17957   path="$DXSDK_INCLUDE_PATH"
17958   has_colon=`$ECHO $path | $GREP ^.:`
17959   new_path="$path"
17960   if test "x$has_colon" = x; then
17961     # Not in mixed or Windows style, start by that.
17962     new_path=`cmd //c echo $path`
17963   fi
17964 
17965 
17966   input_path="$new_path"
17967   # Check if we need to convert this using DOS-style short mode. If the path
17968   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17969   # take no chances and rewrite it.
17970   # Note: m4 eats our [], so we need to use [ and ] instead.
17971   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17972   if test "x$has_forbidden_chars" != x; then
17973     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17974     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17975   fi
17976 
17977 
17978   windows_path="$new_path"
17979   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17980     unix_path=`$CYGPATH -u "$windows_path"`
17981     new_path="$unix_path"
17982   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17983     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17984     new_path="$unix_path"
17985   fi
17986 
17987   if test "x$path" != "x$new_path"; then
17988     DXSDK_INCLUDE_PATH="$new_path"
17989     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DXSDK_INCLUDE_PATH to \"$new_path\"" >&5
17990 $as_echo "$as_me: Rewriting DXSDK_INCLUDE_PATH to \"$new_path\"" >&6;}
17991   fi
17992 
17993   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17994   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17995 
17996   else
17997     # We're on a posix platform. Hooray! :)
17998     path="$DXSDK_INCLUDE_PATH"
17999     has_space=`$ECHO "$path" | $GREP " "`
18000     if test "x$has_space" != x; then
18001       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DXSDK_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
18002 $as_echo "$as_me: The path of DXSDK_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
18003       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
18004     fi
18005 
18006     # Use eval to expand a potential ~
18007     eval path="$path"
18008     if test ! -f "$path" && test ! -d "$path"; then
18009       as_fn_error $? "The path of DXSDK_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
18010     fi
18011 
18012     DXSDK_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
18013   fi
18014 
18015 
18016 
18017 
18018   LDFLAGS_JDK="$LDFLAGS_JDK -libpath:$DXSDK_LIB_PATH"
18019 
18020 fi
18021 
18022 
18023 
18024 # If --build AND --host is set, then the configure script will find any
18025 # cross compilation tools in the PATH. Cross compilation tools
18026 # follows the cross compilation standard where they are prefixed with ${host}.
18027 # For example the binary i686-sun-solaris2.10-gcc
18028 # will cross compile for i686-sun-solaris2.10
18029 # If neither of build and host is not set, then build=host and the
18030 # default compiler found in the path will be used.
18031 # Setting only --host, does not seem to be really supported.
18032 # Please set both --build and --host if you want to cross compile.
18033 
18034 if test "x$COMPILE_TYPE" = "xcross"; then
18035     # Now we to find a C/C++ compiler that can build executables for the build
18036     # platform. We can't use the AC_PROG_CC macro, since it can only be used
18037     # once. Also, we need to do this before adding a tools dir to the path,
18038     # otherwise we might pick up cross-compilers which don't use standard naming.




 749 CXX
 750 ac_ct_PROPER_COMPILER_CXX
 751 PROPER_COMPILER_CXX
 752 POTENTIAL_CXX
 753 TOOLS_DIR_CXX
 754 OBJEXT
 755 EXEEXT
 756 ac_ct_CC
 757 CPPFLAGS
 758 LDFLAGS
 759 CFLAGS
 760 CC
 761 ac_ct_PROPER_COMPILER_CC
 762 PROPER_COMPILER_CC
 763 POTENTIAL_CC
 764 TOOLS_DIR_CC
 765 BUILD_LD
 766 BUILD_CXX
 767 BUILD_CC
 768 MSVCR_DLL


 769 VS_PATH
 770 VS_LIB
 771 VS_INCLUDE
 772 CYGWIN_LINK
 773 AR_OUT_OPTION
 774 LD_OUT_OPTION
 775 EXE_OUT_OPTION
 776 CC_OUT_OPTION
 777 BUILD_HOTSPOT
 778 HOTSPOT_DIST
 779 BUILD_OUTPUT
 780 OVERRIDE_SRC_ROOT
 781 ADD_SRC_ROOT
 782 JDK_TOPDIR
 783 NASHORN_TOPDIR
 784 HOTSPOT_TOPDIR
 785 JAXWS_TOPDIR
 786 JAXP_TOPDIR
 787 CORBA_TOPDIR
 788 LANGTOOLS_TOPDIR


1015 enable_hotspot_test_in_build
1016 with_cacerts_file
1017 enable_unlimited_crypto
1018 with_milestone
1019 with_update_version
1020 with_build_number
1021 with_user_release_suffix
1022 with_boot_jdk
1023 with_boot_jdk_jvmargs
1024 with_add_source_root
1025 with_override_source_root
1026 with_adds_and_overrides
1027 with_override_langtools
1028 with_override_corba
1029 with_override_jaxp
1030 with_override_jaxws
1031 with_override_hotspot
1032 with_override_jdk
1033 with_import_hotspot
1034 with_msvcr_dll



1035 with_jtreg
1036 with_extra_cflags
1037 with_extra_cxxflags
1038 with_extra_ldflags
1039 enable_debug_symbols
1040 enable_zip_debug_info
1041 enable_macosx_runtime_support
1042 with_x
1043 with_cups
1044 with_cups_include
1045 with_freetype
1046 with_alsa
1047 with_alsa_include
1048 with_alsa_lib
1049 with_giflib
1050 with_zlib
1051 with_stdc__lib
1052 with_num_cores
1053 with_memory_size
1054 with_jobs


1768                           for each and every source directory, look in this
1769                           override source root for the same directory; if it
1770                           exists, use that directory instead and ignore the
1771                           directory in the original source root
1772   --with-adds-and-overrides
1773                           use the subdirs 'adds' and 'overrides' in the
1774                           specified directory as add-source-root and
1775                           override-source-root
1776   --with-override-langtools
1777                           use this langtools dir for the build
1778   --with-override-corba   use this corba dir for the build
1779   --with-override-jaxp    use this jaxp dir for the build
1780   --with-override-jaxws   use this jaxws dir for the build
1781   --with-override-hotspot use this hotspot dir for the build
1782   --with-override-jdk     use this jdk dir for the build
1783   --with-import-hotspot   import hotspot binaries from this jdk image or
1784                           hotspot build dist dir instead of building from
1785                           source
1786   --with-msvcr-dll        copy this msvcr100.dll into the built JDK (Windows
1787                           only) [probed]





1788   --with-jtreg            Regression Test Harness [probed]
1789   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1790   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1791   --with-extra-ldflags    extra flags to be used when linking jdk
1792   --with-x                use the X Window System
1793   --with-cups             specify prefix directory for the cups package
1794                           (expecting the headers under PATH/include)
1795   --with-cups-include     specify directory for the cups include files
1796   --with-freetype         specify prefix directory for the freetype2 package
1797                           (expecting the libraries under PATH/lib and the
1798                           headers under PATH/include)
1799   --with-alsa             specify prefix directory for the alsa package
1800                           (expecting the libraries under PATH/lib and the
1801                           headers under PATH/include)
1802   --with-alsa-include     specify directory for the alsa include files
1803   --with-alsa-lib         specify directory for the alsa library
1804   --with-giflib           use giflib from build system or OpenJDK source
1805                           (system, bundled) [bundled]
1806   --with-zlib             use zlib from build system or OpenJDK source
1807                           (system, bundled) [bundled]


3778 # 2 along with this work; if not, write to the Free Software Foundation,
3779 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3780 #
3781 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3782 # or visit www.oracle.com if you need additional information or have any
3783 # questions.
3784 #
3785 
3786 
3787 
3788 
3789 
3790 
3791 
3792 # Check if the VS env variables were setup prior to running configure.
3793 # If not, then find vcvarsall.bat and run it automatically, and integrate
3794 # the set env variables into the spec file.
3795 
3796 
3797 




3798 
3799 
3800 
3801 # This line needs to be here, verbatim, after all includes and the dummy hook
3802 # definitions. It is replaced with custom functionality when building
3803 # custom sources.
3804 #CUSTOM_AUTOCONF_INCLUDE
3805 
3806 # Do not change or remove the following line, it is needed for consistency checks:
3807 DATE_WHEN_GENERATED=1378978734
3808 
3809 ###############################################################################
3810 #
3811 # Initialization / Boot-strapping
3812 #
3813 # The bootstrapping process needs to solve the "chicken or the egg" problem,
3814 # thus it jumps back and forth, each time gaining something needed later on.
3815 #
3816 ###############################################################################
3817 
3818 # Basic initialization that must happen first of all
3819 
3820 # Save the original command line. This is passed to us by the wrapper configure script.
3821 
3822 DATE_WHEN_CONFIGURED=`LANG=C date`
3823 
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
3825 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
3827 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}


17550 
17551   else
17552     # We're on a posix platform. Hooray! :)
17553     path="$MSVCR_DLL"
17554     has_space=`$ECHO "$path" | $GREP " "`
17555     if test "x$has_space" != x; then
17556       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5
17557 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;}
17558       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17559     fi
17560 
17561     # Use eval to expand a potential ~
17562     eval path="$path"
17563     if test ! -f "$path" && test ! -d "$path"; then
17564       as_fn_error $? "The path of MSVCR_DLL, which resolves as \"$path\", is not found." "$LINENO" 5
17565     fi
17566 
17567     MSVCR_DLL="`cd "$path"; $THEPWDCMD -L`"
17568   fi
17569 



















































































































































































































































































































































































































































17570 
17571 fi
17572 
17573 
17574 
17575 # If --build AND --host is set, then the configure script will find any
17576 # cross compilation tools in the PATH. Cross compilation tools
17577 # follows the cross compilation standard where they are prefixed with ${host}.
17578 # For example the binary i686-sun-solaris2.10-gcc
17579 # will cross compile for i686-sun-solaris2.10
17580 # If neither of build and host is not set, then build=host and the
17581 # default compiler found in the path will be used.
17582 # Setting only --host, does not seem to be really supported.
17583 # Please set both --build and --host if you want to cross compile.
17584 
17585 if test "x$COMPILE_TYPE" = "xcross"; then
17586     # Now we to find a C/C++ compiler that can build executables for the build
17587     # platform. We can't use the AC_PROG_CC macro, since it can only be used
17588     # once. Also, we need to do this before adding a tools dir to the path,
17589     # otherwise we might pick up cross-compilers which don't use standard naming.