4901 # particular file as subject to the "Classpath" exception as provided
4902 # by Oracle in the LICENSE file that accompanied this code.
4903 #
4904 # This code is distributed in the hope that it will be useful, but WITHOUT
4905 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4906 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4907 # version 2 for more details (a copy is included in the LICENSE file that
4908 # accompanied this code).
4909 #
4910 # You should have received a copy of the GNU General Public License version
4911 # 2 along with this work; if not, write to the Free Software Foundation,
4912 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4913 #
4914 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4915 # or visit www.oracle.com if you need additional information or have any
4916 # questions.
4917 #
4918
4919 ################################################################################
4920 # The order of these defines the priority by which we try to find them.
4921 VALID_VS_VERSIONS="2013 2012 2010"
4922
4923 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
4924 VS_VERSION_INTERNAL_2010=100
4925 VS_MSVCR_2010=msvcr100.dll
4926 # We don't use msvcp on Visual Studio 2010
4927 #VS_MSVCP_2010=msvcp100.dll
4928 VS_ENVVAR_2010="VS100COMNTOOLS"
4929 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
4930 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
4931 VS_VS_PLATFORM_NAME_2010="v100"
4932 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
4933
4934 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
4935 VS_VERSION_INTERNAL_2012=110
4936 VS_MSVCR_2012=msvcr110.dll
4937 VS_MSVCP_2012=msvcp110.dll
4938 VS_ENVVAR_2012="VS110COMNTOOLS"
4939 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
4940 VS_SDK_INSTALLDIR_2012=
4941 VS_VS_PLATFORM_NAME_2012="v110"
4942 VS_SDK_PLATFORM_NAME_2012=
4943
4944 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
4945 VS_VERSION_INTERNAL_2013=120
4946 VS_MSVCR_2013=msvcr120.dll
4947 VS_MSVCP_2013=msvcp120.dll
4948 VS_ENVVAR_2013="VS120COMNTOOLS"
4949 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
4950 VS_SDK_INSTALLDIR_2013=
4951 VS_VS_PLATFORM_NAME_2013="v120"
4952 VS_SDK_PLATFORM_NAME_2013=
4953
4954 ################################################################################
4955
4956
4957
4958 ################################################################################
4959
4960
4961
4962 ################################################################################
4963 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
4964 # build environment and assigns it to VS_ENV_CMD
4965
4966
4967 ################################################################################
4968
4969
4970
4971 ################################################################################
4972 # Check if the VS env variables were setup prior to running configure.
4973 # If not, then find vcvarsall.bat and run it automatically, and integrate
5179
5180 ###############################################################################
5181 #
5182 # Code to execute after AC_OUTPUT is run. This means that config.status, and
5183 # other files setup by AC_CONFIG_FILES has been generated to their output places,
5184 # and config.status has been run by autoconf.
5185
5186
5187 ###############################################################################
5188 #
5189 # Status and warnings for the custom bits of the configuration.
5190 #
5191
5192
5193
5194
5195
5196
5197
5198 # Do not change or remove the following line, it is needed for consistency checks:
5199 DATE_WHEN_GENERATED=1450277321
5200
5201 ###############################################################################
5202 #
5203 # Initialization / Boot-strapping
5204 #
5205 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5206 # thus it jumps back and forth, each time gaining something needed later on.
5207 #
5208 ###############################################################################
5209
5210 # If we are requested to print additional help, do that and then exit.
5211 # This must be the very first call.
5212
5213 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
5214 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5215 $PRINTF "Which are valid to use depends on the build platform.\n"
5216 for toolchain in $VALID_TOOLCHAINS_all; do
5217 # Use indirect variable referencing
5218 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
5219 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
31005 else
31006 VCVARSFILE="vc/bin/amd64/vcvars64.bat"
31007 fi
31008
31009
31010 windows_path="$VS_BASE"
31011 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31012 unix_path=`$CYGPATH -u "$windows_path"`
31013 VS_BASE="$unix_path"
31014 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31015 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31016 VS_BASE="$unix_path"
31017 fi
31018
31019 if test -d "$VS_BASE"; then
31020 if test -f "$VS_BASE/$VCVARSFILE"; then
31021 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31022 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31023 VS_ENV_CMD="$VS_BASE/$VCVARSFILE"
31024 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see
31025 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013
31026 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}"
31027 else
31028 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31029 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31030 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
31031 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
31032 fi
31033 fi
31034 fi
31035
31036
31037 if test "x$VS_ENV_CMD" = x; then
31038 VS_VERSION="${VS_VERSION}"
31039 VS_BASE="$with_tools_dir/../../.."
31040 METHOD="--with-tools-dir"
31041
31042 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
31043 VCVARSFILE="vc/bin/vcvars32.bat"
31044 else
31045 VCVARSFILE="vc/bin/amd64/vcvars64.bat"
31046 fi
31047
31048
31049 windows_path="$VS_BASE"
31050 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31051 unix_path=`$CYGPATH -u "$windows_path"`
31052 VS_BASE="$unix_path"
31053 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31054 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31055 VS_BASE="$unix_path"
31056 fi
31057
31058 if test -d "$VS_BASE"; then
31059 if test -f "$VS_BASE/$VCVARSFILE"; then
31060 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31061 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31062 VS_ENV_CMD="$VS_BASE/$VCVARSFILE"
31063 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see
31064 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013
31065 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}"
31066 else
31067 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31068 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31069 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
31070 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
31071 fi
31072 fi
31073 fi
31074
31075 if test "x$VS_ENV_CMD" = x; then
31076 # Having specified an argument which is incorrect will produce an instant failure;
31077 # we should not go on looking
31078 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5
31079 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;}
31080 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5
31081 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;}
31082 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5
31083 $as_echo "$as_me: directory within the Visual Studio installation" >&6;}
31084 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5
31100 else
31101 VCVARSFILE="vc/bin/amd64/vcvars64.bat"
31102 fi
31103
31104
31105 windows_path="$VS_BASE"
31106 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31107 unix_path=`$CYGPATH -u "$windows_path"`
31108 VS_BASE="$unix_path"
31109 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31110 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31111 VS_BASE="$unix_path"
31112 fi
31113
31114 if test -d "$VS_BASE"; then
31115 if test -f "$VS_BASE/$VCVARSFILE"; then
31116 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31117 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31118 VS_ENV_CMD="$VS_BASE/$VCVARSFILE"
31119 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see
31120 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013
31121 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}"
31122 else
31123 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31124 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31125 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
31126 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
31127 fi
31128 fi
31129 fi
31130
31131 fi
31132 if test "x$PROGRAMFILES" != x; then
31133
31134 if test "x$VS_ENV_CMD" = x; then
31135 VS_VERSION="${VS_VERSION}"
31136 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR"
31137 METHOD="well-known name"
31138
31139 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
31140 VCVARSFILE="vc/bin/vcvars32.bat"
31141 else
31142 VCVARSFILE="vc/bin/amd64/vcvars64.bat"
31143 fi
31144
31145
31146 windows_path="$VS_BASE"
31147 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31148 unix_path=`$CYGPATH -u "$windows_path"`
31149 VS_BASE="$unix_path"
31150 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31151 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31152 VS_BASE="$unix_path"
31153 fi
31154
31155 if test -d "$VS_BASE"; then
31156 if test -f "$VS_BASE/$VCVARSFILE"; then
31157 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31158 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31159 VS_ENV_CMD="$VS_BASE/$VCVARSFILE"
31160 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see
31161 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013
31162 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}"
31163 else
31164 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31165 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31166 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
31167 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
31168 fi
31169 fi
31170 fi
31171
31172 fi
31173 # Work around the insanely named ProgramFiles(x86) env variable
31174 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`"
31175 if test "x$PROGRAMFILES_X86" != x; then
31176
31177 if test "x$VS_ENV_CMD" = x; then
31178 VS_VERSION="${VS_VERSION}"
31179 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR"
31180 METHOD="well-known name"
31181
31184 else
31185 VCVARSFILE="vc/bin/amd64/vcvars64.bat"
31186 fi
31187
31188
31189 windows_path="$VS_BASE"
31190 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31191 unix_path=`$CYGPATH -u "$windows_path"`
31192 VS_BASE="$unix_path"
31193 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31194 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31195 VS_BASE="$unix_path"
31196 fi
31197
31198 if test -d "$VS_BASE"; then
31199 if test -f "$VS_BASE/$VCVARSFILE"; then
31200 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31201 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31202 VS_ENV_CMD="$VS_BASE/$VCVARSFILE"
31203 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see
31204 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013
31205 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}"
31206 else
31207 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31208 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31209 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
31210 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
31211 fi
31212 fi
31213 fi
31214
31215 fi
31216
31217 if test "x$VS_ENV_CMD" = x; then
31218 VS_VERSION="${VS_VERSION}"
31219 VS_BASE="C:/Program Files/$VS_INSTALL_DIR"
31220 METHOD="well-known name"
31221
31222 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
31223 VCVARSFILE="vc/bin/vcvars32.bat"
31224 else
31225 VCVARSFILE="vc/bin/amd64/vcvars64.bat"
31226 fi
31227
31228
31229 windows_path="$VS_BASE"
31230 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31231 unix_path=`$CYGPATH -u "$windows_path"`
31232 VS_BASE="$unix_path"
31233 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31234 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31235 VS_BASE="$unix_path"
31236 fi
31237
31238 if test -d "$VS_BASE"; then
31239 if test -f "$VS_BASE/$VCVARSFILE"; then
31240 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31241 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31242 VS_ENV_CMD="$VS_BASE/$VCVARSFILE"
31243 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see
31244 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013
31245 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}"
31246 else
31247 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31248 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31249 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
31250 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
31251 fi
31252 fi
31253 fi
31254
31255
31256 if test "x$VS_ENV_CMD" = x; then
31257 VS_VERSION="${VS_VERSION}"
31258 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR"
31259 METHOD="well-known name"
31260
31261 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
31262 VCVARSFILE="vc/bin/vcvars32.bat"
31263 else
31264 VCVARSFILE="vc/bin/amd64/vcvars64.bat"
31265 fi
31266
31267
31268 windows_path="$VS_BASE"
31269 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31270 unix_path=`$CYGPATH -u "$windows_path"`
31271 VS_BASE="$unix_path"
31272 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31273 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31274 VS_BASE="$unix_path"
31275 fi
31276
31277 if test -d "$VS_BASE"; then
31278 if test -f "$VS_BASE/$VCVARSFILE"; then
31279 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31280 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31281 VS_ENV_CMD="$VS_BASE/$VCVARSFILE"
31282 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see
31283 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013
31284 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}"
31285 else
31286 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31287 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31288 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
31289 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
31290 fi
31291 fi
31292 fi
31293
31294
31295 if test "x$SDK_INSTALL_DIR" != x; then
31296 if test "x$ProgramW6432" != x; then
31297
31298 if test "x$VS_ENV_CMD" = x; then
31299 VS_VERSION="${VS_VERSION}"
31300 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR"
31301 METHOD="well-known name"
31302
31303 windows_path="$WIN_SDK_BASE"
|
4901 # particular file as subject to the "Classpath" exception as provided
4902 # by Oracle in the LICENSE file that accompanied this code.
4903 #
4904 # This code is distributed in the hope that it will be useful, but WITHOUT
4905 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4906 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4907 # version 2 for more details (a copy is included in the LICENSE file that
4908 # accompanied this code).
4909 #
4910 # You should have received a copy of the GNU General Public License version
4911 # 2 along with this work; if not, write to the Free Software Foundation,
4912 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4913 #
4914 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4915 # or visit www.oracle.com if you need additional information or have any
4916 # questions.
4917 #
4918
4919 ################################################################################
4920 # The order of these defines the priority by which we try to find them.
4921 VALID_VS_VERSIONS="2015 2013 2012 2010"
4922
4923 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
4924 VS_VERSION_INTERNAL_2010=100
4925 VS_MSVCR_2010=msvcr100.dll
4926 # We don't use msvcp on Visual Studio 2010
4927 #VS_MSVCP_2010=msvcp100.dll
4928 VS_ENVVAR_2010="VS100COMNTOOLS"
4929 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
4930 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
4931 VS_VS_PLATFORM_NAME_2010="v100"
4932 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
4933
4934 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
4935 VS_VERSION_INTERNAL_2012=110
4936 VS_MSVCR_2012=msvcr110.dll
4937 VS_MSVCP_2012=msvcp110.dll
4938 VS_ENVVAR_2012="VS110COMNTOOLS"
4939 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
4940 VS_SDK_INSTALLDIR_2012=
4941 VS_VS_PLATFORM_NAME_2012="v110"
4942 VS_SDK_PLATFORM_NAME_2012=
4943
4944 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
4945 VS_VERSION_INTERNAL_2013=120
4946 VS_MSVCR_2013=msvcr120.dll
4947 VS_MSVCP_2013=msvcp120.dll
4948 VS_ENVVAR_2013="VS120COMNTOOLS"
4949 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
4950 VS_SDK_INSTALLDIR_2013=
4951 VS_VS_PLATFORM_NAME_2013="v120"
4952 VS_SDK_PLATFORM_NAME_2013=
4953
4954 VS_DESCRIPTION_2015="Microsoft Visual Studio 2015"
4955 VS_VERSION_INTERNAL_2015=140
4956 VS_MSVCR_2015=vcruntime140.dll
4957 VS_MSVCP_2015=msvcp140.dll
4958 VS_ENVVAR_2015="VS140COMNTOOLS"
4959 VS_VS_INSTALLDIR_2015="Microsoft Visual Studio 14.0"
4960 VS_SDK_INSTALLDIR_2015=
4961 VS_VS_PLATFORM_NAME_2015="v140"
4962 VS_SDK_PLATFORM_NAME_2015=
4963
4964 ################################################################################
4965
4966
4967
4968 ################################################################################
4969
4970
4971
4972 ################################################################################
4973 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
4974 # build environment and assigns it to VS_ENV_CMD
4975
4976
4977 ################################################################################
4978
4979
4980
4981 ################################################################################
4982 # Check if the VS env variables were setup prior to running configure.
4983 # If not, then find vcvarsall.bat and run it automatically, and integrate
5189
5190 ###############################################################################
5191 #
5192 # Code to execute after AC_OUTPUT is run. This means that config.status, and
5193 # other files setup by AC_CONFIG_FILES has been generated to their output places,
5194 # and config.status has been run by autoconf.
5195
5196
5197 ###############################################################################
5198 #
5199 # Status and warnings for the custom bits of the configuration.
5200 #
5201
5202
5203
5204
5205
5206
5207
5208 # Do not change or remove the following line, it is needed for consistency checks:
5209 DATE_WHEN_GENERATED=1450296077
5210
5211 ###############################################################################
5212 #
5213 # Initialization / Boot-strapping
5214 #
5215 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5216 # thus it jumps back and forth, each time gaining something needed later on.
5217 #
5218 ###############################################################################
5219
5220 # If we are requested to print additional help, do that and then exit.
5221 # This must be the very first call.
5222
5223 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
5224 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5225 $PRINTF "Which are valid to use depends on the build platform.\n"
5226 for toolchain in $VALID_TOOLCHAINS_all; do
5227 # Use indirect variable referencing
5228 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
5229 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
31015 else
31016 VCVARSFILE="vc/bin/amd64/vcvars64.bat"
31017 fi
31018
31019
31020 windows_path="$VS_BASE"
31021 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31022 unix_path=`$CYGPATH -u "$windows_path"`
31023 VS_BASE="$unix_path"
31024 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31025 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31026 VS_BASE="$unix_path"
31027 fi
31028
31029 if test -d "$VS_BASE"; then
31030 if test -f "$VS_BASE/$VCVARSFILE"; then
31031 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31032 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31033 VS_ENV_CMD="$VS_BASE/$VCVARSFILE"
31034 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see
31035 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110', 'v120' or 'v140' for VS 2010, 2012, 2013 or VS2015
31036 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}"
31037 else
31038 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31039 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31040 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
31041 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
31042 fi
31043 fi
31044 fi
31045
31046
31047 if test "x$VS_ENV_CMD" = x; then
31048 VS_VERSION="${VS_VERSION}"
31049 VS_BASE="$with_tools_dir/../../.."
31050 METHOD="--with-tools-dir"
31051
31052 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
31053 VCVARSFILE="vc/bin/vcvars32.bat"
31054 else
31055 VCVARSFILE="vc/bin/amd64/vcvars64.bat"
31056 fi
31057
31058
31059 windows_path="$VS_BASE"
31060 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31061 unix_path=`$CYGPATH -u "$windows_path"`
31062 VS_BASE="$unix_path"
31063 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31064 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31065 VS_BASE="$unix_path"
31066 fi
31067
31068 if test -d "$VS_BASE"; then
31069 if test -f "$VS_BASE/$VCVARSFILE"; then
31070 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31071 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31072 VS_ENV_CMD="$VS_BASE/$VCVARSFILE"
31073 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see
31074 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110', 'v120' or 'v140' for VS 2010, 2012, 2013 or VS2015
31075 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}"
31076 else
31077 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31078 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31079 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
31080 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
31081 fi
31082 fi
31083 fi
31084
31085 if test "x$VS_ENV_CMD" = x; then
31086 # Having specified an argument which is incorrect will produce an instant failure;
31087 # we should not go on looking
31088 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5
31089 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;}
31090 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5
31091 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;}
31092 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5
31093 $as_echo "$as_me: directory within the Visual Studio installation" >&6;}
31094 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5
31110 else
31111 VCVARSFILE="vc/bin/amd64/vcvars64.bat"
31112 fi
31113
31114
31115 windows_path="$VS_BASE"
31116 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31117 unix_path=`$CYGPATH -u "$windows_path"`
31118 VS_BASE="$unix_path"
31119 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31120 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31121 VS_BASE="$unix_path"
31122 fi
31123
31124 if test -d "$VS_BASE"; then
31125 if test -f "$VS_BASE/$VCVARSFILE"; then
31126 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31127 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31128 VS_ENV_CMD="$VS_BASE/$VCVARSFILE"
31129 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see
31130 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110', 'v120' or 'v140' for VS 2010, 2012, 2013 or VS2015
31131 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}"
31132 else
31133 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31134 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31135 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
31136 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
31137 fi
31138 fi
31139 fi
31140
31141 fi
31142 if test "x$PROGRAMFILES" != x; then
31143
31144 if test "x$VS_ENV_CMD" = x; then
31145 VS_VERSION="${VS_VERSION}"
31146 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR"
31147 METHOD="well-known name"
31148
31149 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
31150 VCVARSFILE="vc/bin/vcvars32.bat"
31151 else
31152 VCVARSFILE="vc/bin/amd64/vcvars64.bat"
31153 fi
31154
31155
31156 windows_path="$VS_BASE"
31157 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31158 unix_path=`$CYGPATH -u "$windows_path"`
31159 VS_BASE="$unix_path"
31160 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31161 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31162 VS_BASE="$unix_path"
31163 fi
31164
31165 if test -d "$VS_BASE"; then
31166 if test -f "$VS_BASE/$VCVARSFILE"; then
31167 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31168 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31169 VS_ENV_CMD="$VS_BASE/$VCVARSFILE"
31170 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see
31171 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110', 'v120' or 'v140' for VS 2010, 2012, 2013 or VS2015
31172 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}"
31173 else
31174 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31175 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31176 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
31177 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
31178 fi
31179 fi
31180 fi
31181
31182 fi
31183 # Work around the insanely named ProgramFiles(x86) env variable
31184 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`"
31185 if test "x$PROGRAMFILES_X86" != x; then
31186
31187 if test "x$VS_ENV_CMD" = x; then
31188 VS_VERSION="${VS_VERSION}"
31189 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR"
31190 METHOD="well-known name"
31191
31194 else
31195 VCVARSFILE="vc/bin/amd64/vcvars64.bat"
31196 fi
31197
31198
31199 windows_path="$VS_BASE"
31200 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31201 unix_path=`$CYGPATH -u "$windows_path"`
31202 VS_BASE="$unix_path"
31203 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31204 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31205 VS_BASE="$unix_path"
31206 fi
31207
31208 if test -d "$VS_BASE"; then
31209 if test -f "$VS_BASE/$VCVARSFILE"; then
31210 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31211 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31212 VS_ENV_CMD="$VS_BASE/$VCVARSFILE"
31213 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see
31214 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110', 'v120' or 'v140' for VS 2010, 2012, 2013 or VS2015
31215 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}"
31216 else
31217 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31218 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31219 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
31220 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
31221 fi
31222 fi
31223 fi
31224
31225 fi
31226
31227 if test "x$VS_ENV_CMD" = x; then
31228 VS_VERSION="${VS_VERSION}"
31229 VS_BASE="C:/Program Files/$VS_INSTALL_DIR"
31230 METHOD="well-known name"
31231
31232 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
31233 VCVARSFILE="vc/bin/vcvars32.bat"
31234 else
31235 VCVARSFILE="vc/bin/amd64/vcvars64.bat"
31236 fi
31237
31238
31239 windows_path="$VS_BASE"
31240 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31241 unix_path=`$CYGPATH -u "$windows_path"`
31242 VS_BASE="$unix_path"
31243 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31244 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31245 VS_BASE="$unix_path"
31246 fi
31247
31248 if test -d "$VS_BASE"; then
31249 if test -f "$VS_BASE/$VCVARSFILE"; then
31250 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31251 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31252 VS_ENV_CMD="$VS_BASE/$VCVARSFILE"
31253 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see
31254 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110', 'v120' or 'v140' for VS 2010, 2012, 2013 or VS2015
31255 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}"
31256 else
31257 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31258 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31259 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
31260 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
31261 fi
31262 fi
31263 fi
31264
31265
31266 if test "x$VS_ENV_CMD" = x; then
31267 VS_VERSION="${VS_VERSION}"
31268 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR"
31269 METHOD="well-known name"
31270
31271 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
31272 VCVARSFILE="vc/bin/vcvars32.bat"
31273 else
31274 VCVARSFILE="vc/bin/amd64/vcvars64.bat"
31275 fi
31276
31277
31278 windows_path="$VS_BASE"
31279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31280 unix_path=`$CYGPATH -u "$windows_path"`
31281 VS_BASE="$unix_path"
31282 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31283 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31284 VS_BASE="$unix_path"
31285 fi
31286
31287 if test -d "$VS_BASE"; then
31288 if test -f "$VS_BASE/$VCVARSFILE"; then
31289 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31290 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31291 VS_ENV_CMD="$VS_BASE/$VCVARSFILE"
31292 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see
31293 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110', 'v120' or 'v140' for VS 2010, 2012, 2013 or VS2015
31294 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}"
31295 else
31296 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5
31297 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;}
31298 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
31299 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
31300 fi
31301 fi
31302 fi
31303
31304
31305 if test "x$SDK_INSTALL_DIR" != x; then
31306 if test "x$ProgramW6432" != x; then
31307
31308 if test "x$VS_ENV_CMD" = x; then
31309 VS_VERSION="${VS_VERSION}"
31310 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR"
31311 METHOD="well-known name"
31312
31313 windows_path="$WIN_SDK_BASE"
|