694 C_O_FLAG_HIGHEST
695 POST_MCS_CMD
696 POST_STRIP_CMD
697 SET_EXECUTABLE_ORIGIN
698 SET_SHARED_LIBRARY_ORIGIN
699 CXX_FLAG_REORDER
700 C_FLAG_REORDER
701 SET_SHARED_LIBRARY_MAPFILE
702 SET_SHARED_LIBRARY_NAME
703 SHARED_LIBRARY_FLAGS
704 EXE_SUFFIX
705 STATIC_LIBRARY_SUFFIX
706 SHARED_LIBRARY_SUFFIX
707 LIBRARY_PREFIX
708 STATIC_LIBRARY
709 SHARED_LIBRARY
710 OBJ_SUFFIX
711 COMPILER_NAME
712 JT_HOME
713 JTREGEXE
714 LIPO
715 ac_ct_OBJDUMP
716 OBJDUMP
717 ac_ct_OBJCOPY
718 OBJCOPY
719 MCS
720 STRIP
721 GNM
722 NM
723 AS
724 CXXCPP
725 CPP
726 COMPILER_TYPE
727 RC_FLAGS
728 DUMPBIN
729 WINAR
730 HOTSPOT_RC
731 HOTSPOT_MT
732 RC
733 MT
734 WINLD
735 HOTSPOT_LD
736 HOTSPOT_CXX
737 ARFLAGS
738 AR
745 OBJC
746 ac_ct_CXX
747 CXXFLAGS
748 CXX
749 ac_ct_PROPER_COMPILER_CXX
750 PROPER_COMPILER_CXX
751 POTENTIAL_CXX
752 TOOLS_DIR_CXX
753 COMPILER_TARGET_BITS_FLAG
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
817 UNLIMITED_CRYPTO
818 CACERTS_FILE
819 TEST_IN_BUILD
820 BUILD_HEADLESS
821 SUPPORT_HEADFUL
822 SUPPORT_HEADLESS
823 BDEPS_FTP
824 BDEPS_UNZIP
825 OS_VERSION_MICRO
826 OS_VERSION_MINOR
827 OS_VERSION_MAJOR
828 PKG_CONFIG
829 CODESIGN
830 XATTR
831 DSYMUTIL
832 IS_GNU_TIME
833 TIME
834 STAT
835 HG
836 READELF
837 OTOOL
838 LDD
839 ZIP
840 UNZIP
841 FIND_DELETE
842 MAKE
843 CHECK_TOOLSDIR_MAKE
844 CHECK_TOOLSDIR_GMAKE
845 CHECK_MAKE
846 CHECK_GMAKE
847 PKGHANDLER
848 OUTPUT_ROOT
849 CONF_NAME
850 SPEC
851 BUILD_VARIANT_RELEASE
852 DEBUG_CLASSFILES
853 FASTDEBUG
854 VARIANT
855 DEBUG_LEVEL
856 MACOSX_UNIVERSAL
857 INCLUDE_SA
989 sbindir
990 bindir
991 program_transform_name
992 prefix
993 exec_prefix
994 PACKAGE_URL
995 PACKAGE_BUGREPORT
996 PACKAGE_STRING
997 PACKAGE_VERSION
998 PACKAGE_TARNAME
999 PACKAGE_NAME
1000 PATH_SEPARATOR
1001 SHELL'
1002 ac_subst_files=''
1003 ac_user_opts='
1004 enable_option_checking
1005 with_custom_make_dir
1006 with_target_bits
1007 with_sys_root
1008 with_tools_dir
1009 with_devkit
1010 enable_openjdk_only
1011 with_jdk_variant
1012 with_jvm_interpreter
1013 with_jvm_variants
1014 enable_debug
1015 with_debug_level
1016 with_conf_name
1017 with_builddeps_conf
1018 with_builddeps_server
1019 with_builddeps_dir
1020 with_builddeps_group
1021 enable_headful
1022 enable_hotspot_test_in_build
1023 with_cacerts_file
1024 enable_unlimited_crypto
1025 with_milestone
1026 with_update_version
1027 with_user_release_suffix
1028 with_build_number
1735 build result [enabled on Windows or when using
1736 --with-freetype, disabled otherwise]
1737 --enable-sjavac use sjavac to do fast incremental compiles
1738 [disabled]
1739 --disable-precompiled-headers
1740 disable using precompiled headers when compiling C++
1741 [enabled]
1742 --disable-ccache disable using ccache to speed up recompilations
1743 [enabled]
1744
1745 Optional Packages:
1746 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1747 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1748 --with-custom-make-dir use this directory for custom build/make files
1749 --with-target-bits build 32-bit or 64-bit binaries (for platforms that
1750 support it), e.g. --with-target-bits=32 [guessed]
1751 --with-sys-root pass this sys-root to the compilers and tools (for
1752 cross-compiling)
1753 --with-tools-dir search this directory for compilers and tools (for
1754 cross-compiling)
1755 --with-devkit use this directory as base for tools-dir and
1756 sys-root (for cross-compiling)
1757 --with-jdk-variant JDK variant to build (normal) [normal]
1758 --with-jvm-interpreter JVM interpreter to build (template, cpp) [template]
1759 --with-jvm-variants JVM variants (separated by commas) to build (server,
1760 client, minimal1, kernel, zero, zeroshark, core)
1761 [server]
1762 --with-debug-level set the debug level (release, fastdebug, slowdebug)
1763 [release]
1764 --with-conf-name use this as the name of the configuration [generated
1765 from important configuration options]
1766 --with-builddeps-conf use this configuration file for the builddeps
1767 --with-builddeps-server download and use build dependencies from this server
1768 url
1769 --with-builddeps-dir store downloaded build dependencies here
1770 [/localhome/builddeps]
1771 --with-builddeps-group chgrp the downloaded build dependencies to this
1772 group
1773 --with-cacerts-file specify alternative cacerts file
1774 --with-milestone Set milestone value for build [internal]
3091 # _PKG_SHORT_ERRORS_SUPPORTED
3092 # -----------------------------
3093 # _PKG_SHORT_ERRORS_SUPPORTED
3094
3095
3096 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3097 # [ACTION-IF-NOT-FOUND])
3098 #
3099 #
3100 # Note that if there is a possibility the first call to
3101 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3102 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3103 #
3104 #
3105 # --------------------------------------------------------------
3106 # PKG_CHECK_MODULES
3107
3108
3109 # Include these first...
3110 #
3111 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
3112 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3113 #
3114 # This code is free software; you can redistribute it and/or modify it
3115 # under the terms of the GNU General Public License version 2 only, as
3116 # published by the Free Software Foundation. Oracle designates this
3117 # particular file as subject to the "Classpath" exception as provided
3118 # by Oracle in the LICENSE file that accompanied this code.
3119 #
3120 # This code is distributed in the hope that it will be useful, but WITHOUT
3121 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3122 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3123 # version 2 for more details (a copy is included in the LICENSE file that
3124 # accompanied this code).
3125 #
3126 # You should have received a copy of the GNU General Public License version
3127 # 2 along with this work; if not, write to the Free Software Foundation,
3128 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3129 #
3130 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3131 # or visit www.oracle.com if you need additional information or have any
3607 #
3608
3609
3610
3611
3612
3613
3614 # Support for customization of the build process. Some build files
3615 # will include counterparts from this location, if they exist. This allows
3616 # for a degree of customization of the build targets and the rules/recipes
3617 # to create them
3618
3619 # Check whether --with-custom-make-dir was given.
3620 if test "${with_custom_make_dir+set}" = set; then :
3621 withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir
3622 fi
3623
3624
3625
3626 #
3627 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3628 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3629 #
3630 # This code is free software; you can redistribute it and/or modify it
3631 # under the terms of the GNU General Public License version 2 only, as
3632 # published by the Free Software Foundation. Oracle designates this
3633 # particular file as subject to the "Classpath" exception as provided
3634 # by Oracle in the LICENSE file that accompanied this code.
3635 #
3636 # This code is distributed in the hope that it will be useful, but WITHOUT
3637 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3638 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3639 # version 2 for more details (a copy is included in the LICENSE file that
3640 # accompanied this code).
3641 #
3642 # You should have received a copy of the GNU General Public License version
3643 # 2 along with this work; if not, write to the Free Software Foundation,
3644 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3645 #
3646 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3647 # or visit www.oracle.com if you need additional information or have any
3747 # version 2 for more details (a copy is included in the LICENSE file that
3748 # accompanied this code).
3749 #
3750 # You should have received a copy of the GNU General Public License version
3751 # 2 along with this work; if not, write to the Free Software Foundation,
3752 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3753 #
3754 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3755 # or visit www.oracle.com if you need additional information or have any
3756 # questions.
3757 #
3758
3759
3760
3761
3762
3763
3764
3765
3766 #
3767 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3768 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3769 #
3770 # This code is free software; you can redistribute it and/or modify it
3771 # under the terms of the GNU General Public License version 2 only, as
3772 # published by the Free Software Foundation. Oracle designates this
3773 # particular file as subject to the "Classpath" exception as provided
3774 # by Oracle in the LICENSE file that accompanied this code.
3775 #
3776 # This code is distributed in the hope that it will be useful, but WITHOUT
3777 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3778 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3779 # version 2 for more details (a copy is included in the LICENSE file that
3780 # accompanied this code).
3781 #
3782 # You should have received a copy of the GNU General Public License version
3783 # 2 along with this work; if not, write to the Free Software Foundation,
3784 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3785 #
3786 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3787 # or visit www.oracle.com if you need additional information or have any
3855
3856 # Check if the VS env variables were setup prior to running configure.
3857 # If not, then find vcvarsall.bat and run it automatically, and integrate
3858 # the set env variables into the spec file.
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869 # This line needs to be here, verbatim, after all includes and the dummy hook
3870 # definitions. It is replaced with custom functionality when building
3871 # custom sources.
3872 #CUSTOM_AUTOCONF_INCLUDE
3873
3874 # Do not change or remove the following line, it is needed for consistency checks:
3875 DATE_WHEN_GENERATED=1416326200
3876
3877 ###############################################################################
3878 #
3879 # Initialization / Boot-strapping
3880 #
3881 # The bootstrapping process needs to solve the "chicken or the egg" problem,
3882 # thus it jumps back and forth, each time gaining something needed later on.
3883 #
3884 ###############################################################################
3885
3886 # Basic initialization that must happen first of all
3887
3888 # Save the original command line. This is passed to us by the wrapper configure script.
3889
3890 DATE_WHEN_CONFIGURED=`LANG=C date`
3891
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
3893 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
3895 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
7586 if test "${with_sys_root+set}" = set; then :
7587 withval=$with_sys_root;
7588 fi
7589
7590
7591 if test "x$with_sys_root" != x; then
7592 SYS_ROOT=$with_sys_root
7593 else
7594 SYS_ROOT=/
7595 fi
7596
7597
7598
7599 # Check whether --with-tools-dir was given.
7600 if test "${with_tools_dir+set}" = set; then :
7601 withval=$with_tools_dir; TOOLS_DIR=$with_tools_dir
7602
7603 fi
7604
7605
7606
7607 # Check whether --with-devkit was given.
7608 if test "${with_devkit+set}" = set; then :
7609 withval=$with_devkit;
7610 if test "x$with_sys_root" != x; then
7611 as_fn_error $? "Cannot specify both --with-devkit and --with-sys-root at the same time" "$LINENO" 5
7612 fi
7613
7614 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
7615
7616 # Input might be given as Windows format, start by converting to
7617 # unix format.
7618 path="$with_devkit"
7619 new_path=`$CYGPATH -u "$path"`
7620
7621 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
7622 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
7623 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
7624 # "foo.exe" is OK but "foo" is an error.
7625 #
7943
7944
7945
7946
7947
7948
7949
7950 INCLUDE_SA=true
7951 if test "x$JVM_VARIANT_ZERO" = xtrue ; then
7952 INCLUDE_SA=false
7953 fi
7954 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
7955 INCLUDE_SA=false
7956 fi
7957 if test "x$VAR_CPU" = xppc64 ; then
7958 INCLUDE_SA=false
7959 fi
7960
7961
7962 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
7963 MACOSX_UNIVERSAL="true"
7964 fi
7965
7966
7967
7968
7969 ###############################################################################
7970 #
7971 # Set the debug level
7972 # release: no debug information, all optimizations, no asserts.
7973 # fastdebug: debug information (-g), all optimizations, all asserts
7974 # slowdebug: debug information (-g), no optimizations, all asserts
7975 #
7976 DEBUG_LEVEL="release"
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
7978 $as_echo_n "checking which debug level to use... " >&6; }
7979 # Check whether --enable-debug was given.
7980 if test "${enable_debug+set}" = set; then :
7981 enableval=$enable_debug;
7982 ENABLE_DEBUG="${enableval}"
7983 DEBUG_LEVEL="fastdebug"
10304
10305 ;;
10306 esac
10307 fi
10308 LDD=$ac_cv_path_LDD
10309 if test -n "$LDD"; then
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
10311 $as_echo "$LDD" >&6; }
10312 else
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10314 $as_echo "no" >&6; }
10315 fi
10316
10317
10318 if test "x$LDD" = "x"; then
10319 # List shared lib dependencies is used for
10320 # debug output and checking for forbidden dependencies.
10321 # We can build without it.
10322 LDD="true"
10323 fi
10324 # Extract the first word of "otool", so it can be a program name with args.
10325 set dummy otool; ac_word=$2
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10327 $as_echo_n "checking for $ac_word... " >&6; }
10328 if ${ac_cv_path_OTOOL+:} false; then :
10329 $as_echo_n "(cached) " >&6
10330 else
10331 case $OTOOL in
10332 [\\/]* | ?:[\\/]*)
10333 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
10334 ;;
10335 *)
10336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10337 for as_dir in $PATH
10338 do
10339 IFS=$as_save_IFS
10340 test -z "$as_dir" && as_dir=.
10341 for ac_exec_ext in '' $ac_executable_extensions; do
10342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10343 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
10344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10345 break 2
10346 fi
10347 done
10348 done
10349 IFS=$as_save_IFS
10350
10351 ;;
10352 esac
10353 fi
10354 OTOOL=$ac_cv_path_OTOOL
10355 if test -n "$OTOOL"; then
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10357 $as_echo "$OTOOL" >&6; }
10358 else
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10360 $as_echo "no" >&6; }
10361 fi
10362
10363
10364 if test "x$OTOOL" = "x"; then
10365 OTOOL="true"
10366 fi
10367 for ac_prog in readelf greadelf
10368 do
10369 # Extract the first word of "$ac_prog", so it can be a program name with args.
10370 set dummy $ac_prog; ac_word=$2
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10372 $as_echo_n "checking for $ac_word... " >&6; }
10373 if ${ac_cv_path_READELF+:} false; then :
10374 $as_echo_n "(cached) " >&6
10375 else
10376 case $READELF in
10377 [\\/]* | ?:[\\/]*)
10378 ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
10379 ;;
10380 *)
10381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10382 for as_dir in $PATH
10383 do
10384 IFS=$as_save_IFS
10385 test -z "$as_dir" && as_dir=.
10386 for ac_exec_ext in '' $ac_executable_extensions; do
19230 x_libraries="$SYS_ROOT/usr/lib"
19231 fi
19232
19233
19234 fi
19235
19236 fi
19237
19238
19239 # Store the CFLAGS etal passed to the configure script.
19240 ORG_CFLAGS="$CFLAGS"
19241 ORG_CXXFLAGS="$CXXFLAGS"
19242 ORG_OBJCFLAGS="$OBJCFLAGS"
19243
19244 # autoconf magic only relies on PATH, so update it if tools dir is specified
19245 OLD_PATH="$PATH"
19246 if test "x$TOOLS_DIR" != x; then
19247 PATH=$TOOLS_DIR:$PATH
19248 fi
19249
19250
19251 ### Locate C compiler (CC)
19252
19253 # On windows, only cl.exe is supported.
19254 # On Solaris, cc is preferred to gcc.
19255 # Elsewhere, gcc is preferred to cc.
19256
19257 if test "x$CC" != x; then
19258 COMPILER_CHECK_LIST="$CC"
19259 elif test "x$OPENJDK_TARGET_OS" = "xwindows"; then
19260 COMPILER_CHECK_LIST="cl"
19261 elif test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
19262 COMPILER_CHECK_LIST="cc gcc"
19263 elif test "x$OPENJDK_TARGET_OS" = "xaix"; then
19264 # Do not probe for cc on AIX.
19265 COMPILER_CHECK_LIST="xlc_r"
19266 else
19267 COMPILER_CHECK_LIST="gcc cc"
19268 fi
19269
27049 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
27050 fi
27051 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5
27052 fi
27053 fi
27054
27055 # Now join together the path and the arguments once again
27056 if test "x$arguments" != xEOL; then
27057 new_complete="$new_path ${arguments% *}"
27058 else
27059 new_complete="$new_path"
27060 fi
27061
27062 if test "x$complete" != "x$new_complete"; then
27063 MCS="$new_complete"
27064 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5
27065 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;}
27066 fi
27067
27068 elif test "x$OPENJDK_TARGET_OS" != xwindows; then
27069 if test -n "$ac_tool_prefix"; then
27070 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
27071 set dummy ${ac_tool_prefix}nm; ac_word=$2
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27073 $as_echo_n "checking for $ac_word... " >&6; }
27074 if ${ac_cv_prog_NM+:} false; then :
27075 $as_echo_n "(cached) " >&6
27076 else
27077 if test -n "$NM"; then
27078 ac_cv_prog_NM="$NM" # Let the user override the test.
27079 else
27080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27081 for as_dir in $PATH
27082 do
27083 IFS=$as_save_IFS
27084 test -z "$as_dir" && as_dir=.
27085 for ac_exec_ext in '' $ac_executable_extensions; do
27086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27087 ac_cv_prog_NM="${ac_tool_prefix}nm"
27088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28513 fi
28514 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5
28515 fi
28516 fi
28517
28518 # Now join together the path and the arguments once again
28519 if test "x$arguments" != xEOL; then
28520 new_complete="$new_path ${arguments% *}"
28521 else
28522 new_complete="$new_path"
28523 fi
28524
28525 if test "x$complete" != "x$new_complete"; then
28526 OBJDUMP="$new_complete"
28527 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5
28528 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;}
28529 fi
28530
28531 fi
28532
28533 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
28534 # Extract the first word of "lipo", so it can be a program name with args.
28535 set dummy lipo; ac_word=$2
28536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28537 $as_echo_n "checking for $ac_word... " >&6; }
28538 if ${ac_cv_path_LIPO+:} false; then :
28539 $as_echo_n "(cached) " >&6
28540 else
28541 case $LIPO in
28542 [\\/]* | ?:[\\/]*)
28543 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path.
28544 ;;
28545 *)
28546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28547 for as_dir in $PATH
28548 do
28549 IFS=$as_save_IFS
28550 test -z "$as_dir" && as_dir=.
28551 for ac_exec_ext in '' $ac_executable_extensions; do
28552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28553 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext"
28554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28555 break 2
28556 fi
28557 done
28558 done
28559 IFS=$as_save_IFS
28560
28561 ;;
28562 esac
28563 fi
28564 LIPO=$ac_cv_path_LIPO
28565 if test -n "$LIPO"; then
28566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
28567 $as_echo "$LIPO" >&6; }
28568 else
28569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28570 $as_echo "no" >&6; }
28571 fi
28572
28573
28574
28575 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28576
28577 # First separate the path from the arguments. This will split at the first
28578 # space.
28579 complete="$LIPO"
28580 path="${complete%% *}"
28581 tmp="$complete EOL"
28582 arguments="${tmp#* }"
28583
28584 # Input might be given as Windows format, start by converting to
28585 # unix format.
28586 new_path=`$CYGPATH -u "$path"`
28587
28588 # Now try to locate executable using which
28589 new_path=`$WHICH "$new_path" 2> /dev/null`
28590 # bat and cmd files are not always considered executable in cygwin causing which
28591 # to not find them
28592 if test "x$new_path" = x \
28593 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
28594 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
28595 new_path=`$CYGPATH -u "$path"`
28596 fi
28597 if test "x$new_path" = x; then
28598 # Oops. Which didn't find the executable.
28599 # The splitting of arguments from the executable at a space might have been incorrect,
28600 # since paths with space are more likely in Windows. Give it another try with the whole
28601 # argument.
28602 path="$complete"
28603 arguments="EOL"
28604 new_path=`$CYGPATH -u "$path"`
28605 new_path=`$WHICH "$new_path" 2> /dev/null`
28606 # bat and cmd files are not always considered executable in cygwin causing which
28607 # to not find them
28608 if test "x$new_path" = x \
28609 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
28610 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
28611 new_path=`$CYGPATH -u "$path"`
28612 fi
28613 if test "x$new_path" = x; then
28614 # It's still not found. Now this is an unrecoverable error.
28615 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5
28616 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;}
28617 has_space=`$ECHO "$complete" | $GREP " "`
28618 if test "x$has_space" != x; then
28619 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
28620 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
28621 fi
28622 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5
28623 fi
28624 fi
28625
28626 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
28627 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
28628 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
28629 # "foo.exe" is OK but "foo" is an error.
28630 #
28631 # This test is therefore slightly more accurate than "test -f" to check for file presence.
28632 # It is also a way to make sure we got the proper file name for the real test later on.
28633 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
28634 if test "x$test_shortpath" = x; then
28635 # Short path failed, file does not exist as specified.
28636 # Try adding .exe or .cmd
28637 if test -f "${new_path}.exe"; then
28638 input_to_shortpath="${new_path}.exe"
28639 elif test -f "${new_path}.cmd"; then
28640 input_to_shortpath="${new_path}.cmd"
28641 else
28642 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5
28643 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;}
28644 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
28645 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
28646 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5
28647 fi
28648 else
28649 input_to_shortpath="$new_path"
28650 fi
28651
28652 # Call helper function which possibly converts this using DOS-style short mode.
28653 # If so, the updated path is stored in $new_path.
28654 new_path="$input_to_shortpath"
28655
28656 input_path="$input_to_shortpath"
28657 # Check if we need to convert this using DOS-style short mode. If the path
28658 # contains just simple characters, use it. Otherwise (spaces, weird characters),
28659 # take no chances and rewrite it.
28660 # Note: m4 eats our [], so we need to use [ and ] instead.
28661 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
28662 if test "x$has_forbidden_chars" != x; then
28663 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
28664 shortmode_path=`$CYGPATH -s -m -a "$input_path"`
28665 path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
28666 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
28667 # Going to short mode and back again did indeed matter. Since short mode is
28668 # case insensitive, let's make it lowercase to improve readability.
28669 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
28670 # Now convert it back to Unix-stile (cygpath)
28671 input_path=`$CYGPATH -u "$shortmode_path"`
28672 new_path="$input_path"
28673 fi
28674 fi
28675
28676 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
28677 if test "x$test_cygdrive_prefix" = x; then
28678 # As a simple fix, exclude /usr/bin since it's not a real path.
28679 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
28680 # The path is in a Cygwin special directory (e.g. /home). We need this converted to
28681 # a path prefixed by /cygdrive for fixpath to work.
28682 new_path="$CYGWIN_ROOT_PATH$input_path"
28683 fi
28684 fi
28685
28686 # remove trailing .exe if any
28687 new_path="${new_path/%.exe/}"
28688
28689 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28690
28691 # First separate the path from the arguments. This will split at the first
28692 # space.
28693 complete="$LIPO"
28694 path="${complete%% *}"
28695 tmp="$complete EOL"
28696 arguments="${tmp#* }"
28697
28698 # Input might be given as Windows format, start by converting to
28699 # unix format.
28700 new_path="$path"
28701
28702 windows_path="$new_path"
28703 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28704 unix_path=`$CYGPATH -u "$windows_path"`
28705 new_path="$unix_path"
28706 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28707 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
28708 new_path="$unix_path"
28709 fi
28710
28711
28712 # Now try to locate executable using which
28713 new_path=`$WHICH "$new_path" 2> /dev/null`
28714
28715 if test "x$new_path" = x; then
28716 # Oops. Which didn't find the executable.
28717 # The splitting of arguments from the executable at a space might have been incorrect,
28718 # since paths with space are more likely in Windows. Give it another try with the whole
28719 # argument.
28720 path="$complete"
28721 arguments="EOL"
28722 new_path="$path"
28723
28724 windows_path="$new_path"
28725 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28726 unix_path=`$CYGPATH -u "$windows_path"`
28727 new_path="$unix_path"
28728 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28729 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
28730 new_path="$unix_path"
28731 fi
28732
28733
28734 new_path=`$WHICH "$new_path" 2> /dev/null`
28735
28736 if test "x$new_path" = x; then
28737 # It's still not found. Now this is an unrecoverable error.
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5
28739 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;}
28740 has_space=`$ECHO "$complete" | $GREP " "`
28741 if test "x$has_space" != x; then
28742 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
28743 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
28744 fi
28745 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5
28746 fi
28747 fi
28748
28749 # Now new_path has a complete unix path to the binary
28750 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
28751 # Keep paths in /bin as-is, but remove trailing .exe if any
28752 new_path="${new_path/%.exe/}"
28753 # Do not save /bin paths to all_fixpath_prefixes!
28754 else
28755 # Not in mixed or Windows style, start by that.
28756 new_path=`cmd //c echo $new_path`
28757
28758 input_path="$new_path"
28759 # Check if we need to convert this using DOS-style short mode. If the path
28760 # contains just simple characters, use it. Otherwise (spaces, weird characters),
28761 # take no chances and rewrite it.
28762 # Note: m4 eats our [], so we need to use [ and ] instead.
28763 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
28764 if test "x$has_forbidden_chars" != x; then
28765 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
28766 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
28767 fi
28768
28769 # Output is in $new_path
28770
28771 windows_path="$new_path"
28772 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28773 unix_path=`$CYGPATH -u "$windows_path"`
28774 new_path="$unix_path"
28775 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28776 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
28777 new_path="$unix_path"
28778 fi
28779
28780 # remove trailing .exe if any
28781 new_path="${new_path/%.exe/}"
28782
28783 # Save the first 10 bytes of this path to the storage, so fixpath can work.
28784 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
28785 fi
28786
28787 else
28788 # We're on a posix platform. Hooray! :)
28789 # First separate the path from the arguments. This will split at the first
28790 # space.
28791 complete="$LIPO"
28792 path="${complete%% *}"
28793 tmp="$complete EOL"
28794 arguments="${tmp#* }"
28795
28796 # Cannot rely on the command "which" here since it doesn't always work.
28797 is_absolute_path=`$ECHO "$path" | $GREP ^/`
28798 if test -z "$is_absolute_path"; then
28799 # Path to executable is not absolute. Find it.
28800 IFS_save="$IFS"
28801 IFS=:
28802 for p in $PATH; do
28803 if test -f "$p/$path" && test -x "$p/$path"; then
28804 new_path="$p/$path"
28805 break
28806 fi
28807 done
28808 IFS="$IFS_save"
28809 else
28810 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving LIPO (as $path) failed, using $path directly." >&5
28811 $as_echo "$as_me: Resolving LIPO (as $path) failed, using $path directly." >&6;}
28812 new_path="$path"
28813 fi
28814
28815 if test "x$new_path" = x; then
28816 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5
28817 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;}
28818 has_space=`$ECHO "$complete" | $GREP " "`
28819 if test "x$has_space" != x; then
28820 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
28821 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
28822 fi
28823 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5
28824 fi
28825 fi
28826
28827 # Now join together the path and the arguments once again
28828 if test "x$arguments" != xEOL; then
28829 new_complete="$new_path ${arguments% *}"
28830 else
28831 new_complete="$new_path"
28832 fi
28833
28834 if test "x$complete" != "x$new_complete"; then
28835 LIPO="$new_complete"
28836 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5
28837 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;}
28838 fi
28839
28840 fi
28841
28842
28843
28844 # Restore old path without tools dir
28845 PATH="$OLD_PATH"
28846
28847
28848 # FIXME: Currently we must test this after paths but before flags. Fix!
28849
28850 # And we can test some aspects on the target using configure macros.
28851
28852
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
28854 $as_echo_n "checking for ANSI C header files... " >&6; }
28855 if ${ac_cv_header_stdc+:} false; then :
28856 $as_echo_n "(cached) " >&6
28857 else
28858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28859 /* end confdefs.h. */
28860 #include <stdlib.h>
28861 #include <stdarg.h>
30371 fi
30372
30373
30374 if test "x$OPENJDK_TARGET_OS" = xwindows; then
30375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5
30376 $as_echo_n "checking what is not needed on Windows?... " >&6; }
30377 CUPS_NOT_NEEDED=yes
30378 ALSA_NOT_NEEDED=yes
30379 PULSE_NOT_NEEDED=yes
30380 X11_NOT_NEEDED=yes
30381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5
30382 $as_echo "alsa cups pulse x11" >&6; }
30383 fi
30384
30385 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
30386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5
30387 $as_echo_n "checking what is not needed on MacOSX?... " >&6; }
30388 ALSA_NOT_NEEDED=yes
30389 PULSE_NOT_NEEDED=yes
30390 X11_NOT_NEEDED=yes
30391 # If the java runtime framework is disabled, then we need X11.
30392 # This will be adjusted below.
30393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5
30394 $as_echo "alsa pulse x11" >&6; }
30395 fi
30396
30397 if test "x$OPENJDK_TARGET_OS" = xbsd; then
30398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5
30399 $as_echo_n "checking what is not needed on bsd?... " >&6; }
30400 ALSA_NOT_NEEDED=yes
30401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5
30402 $as_echo "alsa" >&6; }
30403 fi
30404
30405 if test "x$OPENJDK" = "xfalse"; then
30406 FREETYPE_NOT_NEEDED=yes
30407 fi
30408
30409 if test "x$SUPPORT_HEADFUL" = xno; then
30410 X11_NOT_NEEDED=yes
30411 fi
30412
30413 ###############################################################################
30414 #
30415 # Check for MacOSX support for OpenJDK.
30416 #
30417
30418
30419 # Check whether --enable-macosx-runtime-support was given.
30420 if test "${enable_macosx_runtime_support+set}" = set; then :
30421 enableval=$enable_macosx_runtime_support;
30422 fi
30423
30424 if test "x$enable_macosx_runtime_support" != x; then
30425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&5
30426 $as_echo "$as_me: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&2;}
30427 fi
30428
30429
30430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X Java Framework" >&5
30431 $as_echo_n "checking for Mac OS X Java Framework... " >&6; }
30432 if test -f /System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Headers/JavaRuntimeSupport.h; then
30433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /System/Library/Frameworks/JavaVM.framework" >&5
30434 $as_echo "/System/Library/Frameworks/JavaVM.framework" >&6; }
30435 else
30436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30437 $as_echo "no" >&6; }
30438 fi
30439
30440
30441
30442 ###############################################################################
30443 #
30444 # Check for X Windows
30445 #
30446
30447 # Check if the user has specified sysroot, but not --x-includes or --x-libraries.
30448 # Make a simple check for the libraries at the sysroot, and setup --x-includes and
30449 # --x-libraries for the sysroot, if that seems to be correct.
30450 if test "x$SYS_ROOT" != "x/"; then
30451 if test "x$x_includes" = xNONE; then
30452 if test -f "$SYS_ROOT/usr/X11R6/include/X11/Xlib.h"; then
30453 x_includes="$SYS_ROOT/usr/X11R6/include"
30454 elif test -f "$SYS_ROOT/usr/include/X11/Xlib.h"; then
30455 x_includes="$SYS_ROOT/usr/include"
30456 fi
30457 fi
30458 if test "x$x_libraries" = xNONE; then
30459 if test -f "$SYS_ROOT/usr/X11R6/lib/libX11.so"; then
|
694 C_O_FLAG_HIGHEST
695 POST_MCS_CMD
696 POST_STRIP_CMD
697 SET_EXECUTABLE_ORIGIN
698 SET_SHARED_LIBRARY_ORIGIN
699 CXX_FLAG_REORDER
700 C_FLAG_REORDER
701 SET_SHARED_LIBRARY_MAPFILE
702 SET_SHARED_LIBRARY_NAME
703 SHARED_LIBRARY_FLAGS
704 EXE_SUFFIX
705 STATIC_LIBRARY_SUFFIX
706 SHARED_LIBRARY_SUFFIX
707 LIBRARY_PREFIX
708 STATIC_LIBRARY
709 SHARED_LIBRARY
710 OBJ_SUFFIX
711 COMPILER_NAME
712 JT_HOME
713 JTREGEXE
714 ac_ct_OBJDUMP
715 OBJDUMP
716 ac_ct_OBJCOPY
717 OBJCOPY
718 OTOOL
719 MCS
720 STRIP
721 GNM
722 NM
723 AS
724 CXXCPP
725 CPP
726 COMPILER_TYPE
727 RC_FLAGS
728 DUMPBIN
729 WINAR
730 HOTSPOT_RC
731 HOTSPOT_MT
732 RC
733 MT
734 WINLD
735 HOTSPOT_LD
736 HOTSPOT_CXX
737 ARFLAGS
738 AR
745 OBJC
746 ac_ct_CXX
747 CXXFLAGS
748 CXX
749 ac_ct_PROPER_COMPILER_CXX
750 PROPER_COMPILER_CXX
751 POTENTIAL_CXX
752 TOOLS_DIR_CXX
753 COMPILER_TARGET_BITS_FLAG
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 SDKPATH
766 XCODEBUILD
767 DEVELOPER_DIR
768 BUILD_LD
769 BUILD_CXX
770 BUILD_CC
771 MSVCR_DLL
772 VS_PATH
773 VS_LIB
774 VS_INCLUDE
775 CYGWIN_LINK
776 AR_OUT_OPTION
777 LD_OUT_OPTION
778 EXE_OUT_OPTION
779 CC_OUT_OPTION
780 BUILD_HOTSPOT
781 HOTSPOT_DIST
782 BUILD_OUTPUT
783 OVERRIDE_SRC_ROOT
784 ADD_SRC_ROOT
785 JDK_TOPDIR
786 NASHORN_TOPDIR
787 HOTSPOT_TOPDIR
820 UNLIMITED_CRYPTO
821 CACERTS_FILE
822 TEST_IN_BUILD
823 BUILD_HEADLESS
824 SUPPORT_HEADFUL
825 SUPPORT_HEADLESS
826 BDEPS_FTP
827 BDEPS_UNZIP
828 OS_VERSION_MICRO
829 OS_VERSION_MINOR
830 OS_VERSION_MAJOR
831 PKG_CONFIG
832 CODESIGN
833 XATTR
834 DSYMUTIL
835 IS_GNU_TIME
836 TIME
837 STAT
838 HG
839 READELF
840 LDD
841 ZIP
842 UNZIP
843 FIND_DELETE
844 MAKE
845 CHECK_TOOLSDIR_MAKE
846 CHECK_TOOLSDIR_GMAKE
847 CHECK_MAKE
848 CHECK_GMAKE
849 PKGHANDLER
850 OUTPUT_ROOT
851 CONF_NAME
852 SPEC
853 BUILD_VARIANT_RELEASE
854 DEBUG_CLASSFILES
855 FASTDEBUG
856 VARIANT
857 DEBUG_LEVEL
858 MACOSX_UNIVERSAL
859 INCLUDE_SA
991 sbindir
992 bindir
993 program_transform_name
994 prefix
995 exec_prefix
996 PACKAGE_URL
997 PACKAGE_BUGREPORT
998 PACKAGE_STRING
999 PACKAGE_VERSION
1000 PACKAGE_TARNAME
1001 PACKAGE_NAME
1002 PATH_SEPARATOR
1003 SHELL'
1004 ac_subst_files=''
1005 ac_user_opts='
1006 enable_option_checking
1007 with_custom_make_dir
1008 with_target_bits
1009 with_sys_root
1010 with_tools_dir
1011 with_xcode_path
1012 with_devkit
1013 enable_openjdk_only
1014 with_jdk_variant
1015 with_jvm_interpreter
1016 with_jvm_variants
1017 enable_debug
1018 with_debug_level
1019 with_conf_name
1020 with_builddeps_conf
1021 with_builddeps_server
1022 with_builddeps_dir
1023 with_builddeps_group
1024 enable_headful
1025 enable_hotspot_test_in_build
1026 with_cacerts_file
1027 enable_unlimited_crypto
1028 with_milestone
1029 with_update_version
1030 with_user_release_suffix
1031 with_build_number
1738 build result [enabled on Windows or when using
1739 --with-freetype, disabled otherwise]
1740 --enable-sjavac use sjavac to do fast incremental compiles
1741 [disabled]
1742 --disable-precompiled-headers
1743 disable using precompiled headers when compiling C++
1744 [enabled]
1745 --disable-ccache disable using ccache to speed up recompilations
1746 [enabled]
1747
1748 Optional Packages:
1749 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1750 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1751 --with-custom-make-dir use this directory for custom build/make files
1752 --with-target-bits build 32-bit or 64-bit binaries (for platforms that
1753 support it), e.g. --with-target-bits=32 [guessed]
1754 --with-sys-root pass this sys-root to the compilers and tools (for
1755 cross-compiling)
1756 --with-tools-dir search this directory for compilers and tools (for
1757 cross-compiling)
1758 --with-xcode-path explicit path to Xcode 4 (generally for building on
1759 10.9 and later)
1760 --with-devkit use this directory as base for tools-dir and
1761 sys-root (for cross-compiling)
1762 --with-jdk-variant JDK variant to build (normal) [normal]
1763 --with-jvm-interpreter JVM interpreter to build (template, cpp) [template]
1764 --with-jvm-variants JVM variants (separated by commas) to build (server,
1765 client, minimal1, kernel, zero, zeroshark, core)
1766 [server]
1767 --with-debug-level set the debug level (release, fastdebug, slowdebug)
1768 [release]
1769 --with-conf-name use this as the name of the configuration [generated
1770 from important configuration options]
1771 --with-builddeps-conf use this configuration file for the builddeps
1772 --with-builddeps-server download and use build dependencies from this server
1773 url
1774 --with-builddeps-dir store downloaded build dependencies here
1775 [/localhome/builddeps]
1776 --with-builddeps-group chgrp the downloaded build dependencies to this
1777 group
1778 --with-cacerts-file specify alternative cacerts file
1779 --with-milestone Set milestone value for build [internal]
3096 # _PKG_SHORT_ERRORS_SUPPORTED
3097 # -----------------------------
3098 # _PKG_SHORT_ERRORS_SUPPORTED
3099
3100
3101 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3102 # [ACTION-IF-NOT-FOUND])
3103 #
3104 #
3105 # Note that if there is a possibility the first call to
3106 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3107 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3108 #
3109 #
3110 # --------------------------------------------------------------
3111 # PKG_CHECK_MODULES
3112
3113
3114 # Include these first...
3115 #
3116 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3117 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3118 #
3119 # This code is free software; you can redistribute it and/or modify it
3120 # under the terms of the GNU General Public License version 2 only, as
3121 # published by the Free Software Foundation. Oracle designates this
3122 # particular file as subject to the "Classpath" exception as provided
3123 # by Oracle in the LICENSE file that accompanied this code.
3124 #
3125 # This code is distributed in the hope that it will be useful, but WITHOUT
3126 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3127 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3128 # version 2 for more details (a copy is included in the LICENSE file that
3129 # accompanied this code).
3130 #
3131 # You should have received a copy of the GNU General Public License version
3132 # 2 along with this work; if not, write to the Free Software Foundation,
3133 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3134 #
3135 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3136 # or visit www.oracle.com if you need additional information or have any
3612 #
3613
3614
3615
3616
3617
3618
3619 # Support for customization of the build process. Some build files
3620 # will include counterparts from this location, if they exist. This allows
3621 # for a degree of customization of the build targets and the rules/recipes
3622 # to create them
3623
3624 # Check whether --with-custom-make-dir was given.
3625 if test "${with_custom_make_dir+set}" = set; then :
3626 withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir
3627 fi
3628
3629
3630
3631 #
3632 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3633 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3634 #
3635 # This code is free software; you can redistribute it and/or modify it
3636 # under the terms of the GNU General Public License version 2 only, as
3637 # published by the Free Software Foundation. Oracle designates this
3638 # particular file as subject to the "Classpath" exception as provided
3639 # by Oracle in the LICENSE file that accompanied this code.
3640 #
3641 # This code is distributed in the hope that it will be useful, but WITHOUT
3642 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3643 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3644 # version 2 for more details (a copy is included in the LICENSE file that
3645 # accompanied this code).
3646 #
3647 # You should have received a copy of the GNU General Public License version
3648 # 2 along with this work; if not, write to the Free Software Foundation,
3649 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3650 #
3651 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3652 # or visit www.oracle.com if you need additional information or have any
3752 # version 2 for more details (a copy is included in the LICENSE file that
3753 # accompanied this code).
3754 #
3755 # You should have received a copy of the GNU General Public License version
3756 # 2 along with this work; if not, write to the Free Software Foundation,
3757 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3758 #
3759 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3760 # or visit www.oracle.com if you need additional information or have any
3761 # questions.
3762 #
3763
3764
3765
3766
3767
3768
3769
3770
3771 #
3772 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3773 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3774 #
3775 # This code is free software; you can redistribute it and/or modify it
3776 # under the terms of the GNU General Public License version 2 only, as
3777 # published by the Free Software Foundation. Oracle designates this
3778 # particular file as subject to the "Classpath" exception as provided
3779 # by Oracle in the LICENSE file that accompanied this code.
3780 #
3781 # This code is distributed in the hope that it will be useful, but WITHOUT
3782 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3783 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3784 # version 2 for more details (a copy is included in the LICENSE file that
3785 # accompanied this code).
3786 #
3787 # You should have received a copy of the GNU General Public License version
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
3860
3861 # Check if the VS env variables were setup prior to running configure.
3862 # If not, then find vcvarsall.bat and run it automatically, and integrate
3863 # the set env variables into the spec file.
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874 # This line needs to be here, verbatim, after all includes and the dummy hook
3875 # definitions. It is replaced with custom functionality when building
3876 # custom sources.
3877 #CUSTOM_AUTOCONF_INCLUDE
3878
3879 # Do not change or remove the following line, it is needed for consistency checks:
3880 DATE_WHEN_GENERATED=1420843749
3881
3882 ###############################################################################
3883 #
3884 # Initialization / Boot-strapping
3885 #
3886 # The bootstrapping process needs to solve the "chicken or the egg" problem,
3887 # thus it jumps back and forth, each time gaining something needed later on.
3888 #
3889 ###############################################################################
3890
3891 # Basic initialization that must happen first of all
3892
3893 # Save the original command line. This is passed to us by the wrapper configure script.
3894
3895 DATE_WHEN_CONFIGURED=`LANG=C date`
3896
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
3898 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
3900 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
7591 if test "${with_sys_root+set}" = set; then :
7592 withval=$with_sys_root;
7593 fi
7594
7595
7596 if test "x$with_sys_root" != x; then
7597 SYS_ROOT=$with_sys_root
7598 else
7599 SYS_ROOT=/
7600 fi
7601
7602
7603
7604 # Check whether --with-tools-dir was given.
7605 if test "${with_tools_dir+set}" = set; then :
7606 withval=$with_tools_dir; TOOLS_DIR=$with_tools_dir
7607
7608 fi
7609
7610
7611 # Xcode version will be validated later
7612
7613 # Check whether --with-xcode-path was given.
7614 if test "${with_xcode_path+set}" = set; then :
7615 withval=$with_xcode_path; XCODE_PATH=$with_xcode_path
7616
7617 fi
7618
7619
7620
7621 # Check whether --with-devkit was given.
7622 if test "${with_devkit+set}" = set; then :
7623 withval=$with_devkit;
7624 if test "x$with_sys_root" != x; then
7625 as_fn_error $? "Cannot specify both --with-devkit and --with-sys-root at the same time" "$LINENO" 5
7626 fi
7627
7628 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
7629
7630 # Input might be given as Windows format, start by converting to
7631 # unix format.
7632 path="$with_devkit"
7633 new_path=`$CYGPATH -u "$path"`
7634
7635 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
7636 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
7637 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
7638 # "foo.exe" is OK but "foo" is an error.
7639 #
7957
7958
7959
7960
7961
7962
7963
7964 INCLUDE_SA=true
7965 if test "x$JVM_VARIANT_ZERO" = xtrue ; then
7966 INCLUDE_SA=false
7967 fi
7968 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
7969 INCLUDE_SA=false
7970 fi
7971 if test "x$VAR_CPU" = xppc64 ; then
7972 INCLUDE_SA=false
7973 fi
7974
7975
7976 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
7977 MACOSX_UNIVERSAL="false"
7978 fi
7979
7980
7981
7982
7983 ###############################################################################
7984 #
7985 # Set the debug level
7986 # release: no debug information, all optimizations, no asserts.
7987 # fastdebug: debug information (-g), all optimizations, all asserts
7988 # slowdebug: debug information (-g), no optimizations, all asserts
7989 #
7990 DEBUG_LEVEL="release"
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
7992 $as_echo_n "checking which debug level to use... " >&6; }
7993 # Check whether --enable-debug was given.
7994 if test "${enable_debug+set}" = set; then :
7995 enableval=$enable_debug;
7996 ENABLE_DEBUG="${enableval}"
7997 DEBUG_LEVEL="fastdebug"
10318
10319 ;;
10320 esac
10321 fi
10322 LDD=$ac_cv_path_LDD
10323 if test -n "$LDD"; then
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
10325 $as_echo "$LDD" >&6; }
10326 else
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10328 $as_echo "no" >&6; }
10329 fi
10330
10331
10332 if test "x$LDD" = "x"; then
10333 # List shared lib dependencies is used for
10334 # debug output and checking for forbidden dependencies.
10335 # We can build without it.
10336 LDD="true"
10337 fi
10338 for ac_prog in readelf greadelf
10339 do
10340 # Extract the first word of "$ac_prog", so it can be a program name with args.
10341 set dummy $ac_prog; ac_word=$2
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10343 $as_echo_n "checking for $ac_word... " >&6; }
10344 if ${ac_cv_path_READELF+:} false; then :
10345 $as_echo_n "(cached) " >&6
10346 else
10347 case $READELF in
10348 [\\/]* | ?:[\\/]*)
10349 ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
10350 ;;
10351 *)
10352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10353 for as_dir in $PATH
10354 do
10355 IFS=$as_save_IFS
10356 test -z "$as_dir" && as_dir=.
10357 for ac_exec_ext in '' $ac_executable_extensions; do
19201 x_libraries="$SYS_ROOT/usr/lib"
19202 fi
19203
19204
19205 fi
19206
19207 fi
19208
19209
19210 # Store the CFLAGS etal passed to the configure script.
19211 ORG_CFLAGS="$CFLAGS"
19212 ORG_CXXFLAGS="$CXXFLAGS"
19213 ORG_OBJCFLAGS="$OBJCFLAGS"
19214
19215 # autoconf magic only relies on PATH, so update it if tools dir is specified
19216 OLD_PATH="$PATH"
19217 if test "x$TOOLS_DIR" != x; then
19218 PATH=$TOOLS_DIR:$PATH
19219 fi
19220
19221 # Before we locate the compilers, we need to sanitize the Xcode build environment
19222 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
19223 # determine path to Xcode, can be empty in which case all the tools will rely on a sane Xcode 4 installation
19224 DEVELOPER_DIR=
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Determining if we need to set DEVELOPER_DIR" >&5
19226 $as_echo_n "checking Determining if we need to set DEVELOPER_DIR... " >&6; }
19227 if test -n "$XCODE_PATH"; then
19228 DEVELOPER_DIR="$XCODE_PATH"/Contents/Developer
19229 if test ! -d "$DEVELOPER_DIR"; then
19230 as_fn_error $? "Xcode Developer path does not exist: $DEVELOPER_DIR" "$LINENO" 5
19231 fi
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEVELOPER_DIR)" >&5
19233 $as_echo "yes ($DEVELOPER_DIR)" >&6; }
19234 else
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19236 $as_echo "no" >&6; }
19237 fi
19238
19239 # make it visible to all the tools immediately
19240 if test -n "$DEVELOPER_DIR"; then
19241 export DEVELOPER_DIR
19242 fi
19243
19244
19245 # Extract the first word of "xcodebuild", so it can be a program name with args.
19246 set dummy xcodebuild; ac_word=$2
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19248 $as_echo_n "checking for $ac_word... " >&6; }
19249 if ${ac_cv_path_XCODEBUILD+:} false; then :
19250 $as_echo_n "(cached) " >&6
19251 else
19252 case $XCODEBUILD in
19253 [\\/]* | ?:[\\/]*)
19254 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
19255 ;;
19256 *)
19257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19258 for as_dir in $PATH
19259 do
19260 IFS=$as_save_IFS
19261 test -z "$as_dir" && as_dir=.
19262 for ac_exec_ext in '' $ac_executable_extensions; do
19263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19264 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
19265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19266 break 2
19267 fi
19268 done
19269 done
19270 IFS=$as_save_IFS
19271
19272 ;;
19273 esac
19274 fi
19275 XCODEBUILD=$ac_cv_path_XCODEBUILD
19276 if test -n "$XCODEBUILD"; then
19277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
19278 $as_echo "$XCODEBUILD" >&6; }
19279 else
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19281 $as_echo "no" >&6; }
19282 fi
19283
19284
19285 if test -z "$XCODEBUILD"; then
19286 as_fn_error $? "The xcodebuild tool was not found, the Xcode command line tools are required to build on Mac OS X" "$LINENO" 5
19287 fi
19288
19289 # Fail-fast: verify we're building on Xcode 4, we cannot build with Xcode 5 or later
19290 XCODE_VERSION=`$XCODEBUILD -version | grep '^Xcode ' | sed 's/Xcode //'`
19291 XC_VERSION_PARTS=( ${XCODE_VERSION//./ } )
19292 if test ! "${XC_VERSION_PARTS[0]}" = "4"; then
19293 as_fn_error $? "Xcode 4 is required to build JDK 8, the version found was $XCODE_VERSION. Use --with-xcode-path to specify the location of Xcode 4." "$LINENO" 5
19294 fi
19295
19296 # Some versions of Xcode 5 command line tools install gcc and g++ as symlinks to
19297 # clang and clang++, which will break the build. So handle that here if we need to.
19298 if test -L "/usr/bin/gcc" -o -L "/usr/bin/g++"; then
19299 # use xcrun to find the real gcc and add it's directory to PATH
19300 # then autoconf magic will find it
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: Found gcc symlinks to clang in /usr/bin, adding path to real gcc to PATH" >&5
19302 $as_echo "$as_me: Found gcc symlinks to clang in /usr/bin, adding path to real gcc to PATH" >&6;}
19303 XCODE_BIN_PATH=$(dirname `xcrun -find gcc`)
19304 PATH="$XCODE_BIN_PATH":$PATH
19305 fi
19306
19307 # Determine appropriate SDKPATH, don't use SDKROOT as it interferes with the stub tools
19308 # We need SDKPATH at least to find JavaVM.framework, if DEVELOPER_DIR is non-empty we
19309 # also need to use it to set -isysroot and -iframework
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Determining Xcode SDK path" >&5
19311 $as_echo_n "checking Determining Xcode SDK path... " >&6; }
19312 # allow SDKNAME to be set to override the default SDK selection
19313 SDKPATH=`"$XCODEBUILD" -sdk ${SDKNAME:-macosx} -version | grep '^Path: ' | sed 's/Path: //'`
19314 if test -n "$SDKPATH"; then
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKPATH" >&5
19316 $as_echo "$SDKPATH" >&6; }
19317 else
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none, will use system headers and frameworks)" >&5
19319 $as_echo "(none, will use system headers and frameworks)" >&6; }
19320 fi
19321
19322
19323 # Perform a basic sanity test
19324 if test ! -f "$SDKPATH/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
19325 as_fn_error $? "Unable to find required framework headers, provide a valid path to Xcode 4 using --with-xcode-path" "$LINENO" 5
19326 fi
19327
19328 if test -n "$DEVELOPER_DIR" -a -n "$SDKPATH"; then
19329 # We need -isysroot <path> and -iframework<path>/System/Library/Frameworks
19330 CFLAGS_JDK="${CFLAGS_JDK} -isysroot \"$SDKPATH\" -iframework\"$SDKPATH/System/Library/Frameworks\""
19331 CXXFLAGS_JDK="${CXXFLAGS_JDK} -isysroot \"$SDKPATH\" -iframework\"$SDKPATH/System/Library/Frameworks\""
19332 LDFLAGS_JDK="${LDFLAGS_JDK} -isysroot \"$SDKPATH\" -iframework\"$SDKPATH/System/Library/Frameworks\""
19333 fi
19334
19335 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework
19336 # set this here so it doesn't have to be peppered throughout the forest
19337 CFLAGS_JDK="$CFLAGS_JDK -F\"$SDKPATH/System/Library/Frameworks/JavaVM.framework/Frameworks\""
19338 CXXFLAGS_JDK="$CXXFLAGS_JDK -F\"$SDKPATH/System/Library/Frameworks/JavaVM.framework/Frameworks\""
19339 LDFLAGS_JDK="$LDFLAGS_JDK -F\"$SDKPATH/System/Library/Frameworks/JavaVM.framework/Frameworks\""
19340 fi
19341
19342 ### Locate C compiler (CC)
19343
19344 # On windows, only cl.exe is supported.
19345 # On Solaris, cc is preferred to gcc.
19346 # Elsewhere, gcc is preferred to cc.
19347
19348 if test "x$CC" != x; then
19349 COMPILER_CHECK_LIST="$CC"
19350 elif test "x$OPENJDK_TARGET_OS" = "xwindows"; then
19351 COMPILER_CHECK_LIST="cl"
19352 elif test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
19353 COMPILER_CHECK_LIST="cc gcc"
19354 elif test "x$OPENJDK_TARGET_OS" = "xaix"; then
19355 # Do not probe for cc on AIX.
19356 COMPILER_CHECK_LIST="xlc_r"
19357 else
19358 COMPILER_CHECK_LIST="gcc cc"
19359 fi
19360
27140 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
27141 fi
27142 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5
27143 fi
27144 fi
27145
27146 # Now join together the path and the arguments once again
27147 if test "x$arguments" != xEOL; then
27148 new_complete="$new_path ${arguments% *}"
27149 else
27150 new_complete="$new_path"
27151 fi
27152
27153 if test "x$complete" != "x$new_complete"; then
27154 MCS="$new_complete"
27155 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5
27156 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;}
27157 fi
27158
27159 elif test "x$OPENJDK_TARGET_OS" != xwindows; then
27160 # Extract the first word of "otool", so it can be a program name with args.
27161 set dummy otool; ac_word=$2
27162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27163 $as_echo_n "checking for $ac_word... " >&6; }
27164 if ${ac_cv_path_OTOOL+:} false; then :
27165 $as_echo_n "(cached) " >&6
27166 else
27167 case $OTOOL in
27168 [\\/]* | ?:[\\/]*)
27169 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
27170 ;;
27171 *)
27172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27173 for as_dir in $PATH
27174 do
27175 IFS=$as_save_IFS
27176 test -z "$as_dir" && as_dir=.
27177 for ac_exec_ext in '' $ac_executable_extensions; do
27178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27179 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
27180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27181 break 2
27182 fi
27183 done
27184 done
27185 IFS=$as_save_IFS
27186
27187 ;;
27188 esac
27189 fi
27190 OTOOL=$ac_cv_path_OTOOL
27191 if test -n "$OTOOL"; then
27192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
27193 $as_echo "$OTOOL" >&6; }
27194 else
27195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27196 $as_echo "no" >&6; }
27197 fi
27198
27199
27200 if test "x$OTOOL" = "x"; then
27201 OTOOL="true"
27202 fi
27203 if test -n "$ac_tool_prefix"; then
27204 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
27205 set dummy ${ac_tool_prefix}nm; ac_word=$2
27206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27207 $as_echo_n "checking for $ac_word... " >&6; }
27208 if ${ac_cv_prog_NM+:} false; then :
27209 $as_echo_n "(cached) " >&6
27210 else
27211 if test -n "$NM"; then
27212 ac_cv_prog_NM="$NM" # Let the user override the test.
27213 else
27214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27215 for as_dir in $PATH
27216 do
27217 IFS=$as_save_IFS
27218 test -z "$as_dir" && as_dir=.
27219 for ac_exec_ext in '' $ac_executable_extensions; do
27220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27221 ac_cv_prog_NM="${ac_tool_prefix}nm"
27222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28647 fi
28648 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5
28649 fi
28650 fi
28651
28652 # Now join together the path and the arguments once again
28653 if test "x$arguments" != xEOL; then
28654 new_complete="$new_path ${arguments% *}"
28655 else
28656 new_complete="$new_path"
28657 fi
28658
28659 if test "x$complete" != "x$new_complete"; then
28660 OBJDUMP="$new_complete"
28661 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5
28662 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;}
28663 fi
28664
28665 fi
28666
28667
28668
28669 # Restore old path without tools dir
28670 PATH="$OLD_PATH"
28671
28672
28673 # FIXME: Currently we must test this after paths but before flags. Fix!
28674
28675 # And we can test some aspects on the target using configure macros.
28676
28677
28678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
28679 $as_echo_n "checking for ANSI C header files... " >&6; }
28680 if ${ac_cv_header_stdc+:} false; then :
28681 $as_echo_n "(cached) " >&6
28682 else
28683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28684 /* end confdefs.h. */
28685 #include <stdlib.h>
28686 #include <stdarg.h>
30196 fi
30197
30198
30199 if test "x$OPENJDK_TARGET_OS" = xwindows; then
30200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5
30201 $as_echo_n "checking what is not needed on Windows?... " >&6; }
30202 CUPS_NOT_NEEDED=yes
30203 ALSA_NOT_NEEDED=yes
30204 PULSE_NOT_NEEDED=yes
30205 X11_NOT_NEEDED=yes
30206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5
30207 $as_echo "alsa cups pulse x11" >&6; }
30208 fi
30209
30210 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
30211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5
30212 $as_echo_n "checking what is not needed on MacOSX?... " >&6; }
30213 ALSA_NOT_NEEDED=yes
30214 PULSE_NOT_NEEDED=yes
30215 X11_NOT_NEEDED=yes
30216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5
30217 $as_echo "alsa pulse x11" >&6; }
30218 fi
30219
30220 if test "x$OPENJDK_TARGET_OS" = xbsd; then
30221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5
30222 $as_echo_n "checking what is not needed on bsd?... " >&6; }
30223 ALSA_NOT_NEEDED=yes
30224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5
30225 $as_echo "alsa" >&6; }
30226 fi
30227
30228 if test "x$OPENJDK" = "xfalse"; then
30229 FREETYPE_NOT_NEEDED=yes
30230 fi
30231
30232 if test "x$SUPPORT_HEADFUL" = xno; then
30233 X11_NOT_NEEDED=yes
30234 fi
30235
30236 # Leave this arg enabled but it's now a nop
30237
30238 # Check whether --enable-macosx-runtime-support was given.
30239 if test "${enable_macosx_runtime_support+set}" = set; then :
30240 enableval=$enable_macosx_runtime_support;
30241 fi
30242
30243 if test "x$enable_macosx_runtime_support" != x; then
30244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&5
30245 $as_echo "$as_me: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&2;}
30246 fi
30247
30248
30249
30250
30251 ###############################################################################
30252 #
30253 # Check for X Windows
30254 #
30255
30256 # Check if the user has specified sysroot, but not --x-includes or --x-libraries.
30257 # Make a simple check for the libraries at the sysroot, and setup --x-includes and
30258 # --x-libraries for the sysroot, if that seems to be correct.
30259 if test "x$SYS_ROOT" != "x/"; then
30260 if test "x$x_includes" = xNONE; then
30261 if test -f "$SYS_ROOT/usr/X11R6/include/X11/Xlib.h"; then
30262 x_includes="$SYS_ROOT/usr/X11R6/include"
30263 elif test -f "$SYS_ROOT/usr/include/X11/Xlib.h"; then
30264 x_includes="$SYS_ROOT/usr/include"
30265 fi
30266 fi
30267 if test "x$x_libraries" = xNONE; then
30268 if test -f "$SYS_ROOT/usr/X11R6/lib/libX11.so"; then
|