< prev index next >

make/autoconf/toolchain.m4

Print this page

        

*** 279,295 **** fi AC_SUBST(TOOLCHAIN_TYPE) TOOLCHAIN_CC_BINARY_clang="clang" TOOLCHAIN_CC_BINARY_gcc="gcc" ! TOOLCHAIN_CC_BINARY_microsoft="cl" TOOLCHAIN_CC_BINARY_solstudio="cc" TOOLCHAIN_CC_BINARY_xlc="xlc_r" TOOLCHAIN_CXX_BINARY_clang="clang++" TOOLCHAIN_CXX_BINARY_gcc="g++" ! TOOLCHAIN_CXX_BINARY_microsoft="cl" TOOLCHAIN_CXX_BINARY_solstudio="CC" TOOLCHAIN_CXX_BINARY_xlc="xlC_r" # Use indirect variable referencing toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE --- 279,295 ---- fi AC_SUBST(TOOLCHAIN_TYPE) TOOLCHAIN_CC_BINARY_clang="clang" TOOLCHAIN_CC_BINARY_gcc="gcc" ! TOOLCHAIN_CC_BINARY_microsoft="cl$EXECUTABLE_SUFFIX" TOOLCHAIN_CC_BINARY_solstudio="cc" TOOLCHAIN_CC_BINARY_xlc="xlc_r" TOOLCHAIN_CXX_BINARY_clang="clang++" TOOLCHAIN_CXX_BINARY_gcc="g++" ! TOOLCHAIN_CXX_BINARY_microsoft="cl$EXECUTABLE_SUFFIX" TOOLCHAIN_CXX_BINARY_solstudio="CC" TOOLCHAIN_CXX_BINARY_xlc="xlC_r" # Use indirect variable referencing toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE
*** 331,343 **** # after toolchain detection is done, since the compiler (on x86) uses # it for DLL resolution in runtime. if test "x$OPENJDK_BUILD_OS" = "xwindows" \ && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV # Reset path to VS_PATH. It will include everything that was on PATH at the time we # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. ! PATH="$VS_PATH" # The microsoft toolchain also requires INCLUDE and LIB to be set. export INCLUDE="$VS_INCLUDE" export LIB="$VS_LIB" else if test "x$XCODE_VERSION_OUTPUT" != x; then --- 331,351 ---- # after toolchain detection is done, since the compiler (on x86) uses # it for DLL resolution in runtime. if test "x$OPENJDK_BUILD_OS" = "xwindows" \ && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV + if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then + # Append VS_PATH + BASIC_APPEND_TO_PATH(PATH, $VS_PATH) + BASIC_APPEND_TO_PATH(WSLENV, "PATH/l:LIB:INCLUDE") + export WSLENV + else # Reset path to VS_PATH. It will include everything that was on PATH at the time we # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. ! BASIC_APPEND_TO_PATH(PATH, $VS_PATH) ! AC_MSG_NOTICE(PATH $PATH) ! fi # The microsoft toolchain also requires INCLUDE and LIB to be set. export INCLUDE="$VS_INCLUDE" export LIB="$VS_LIB" else if test "x$XCODE_VERSION_OUTPUT" != x; then
*** 428,438 **** $SED -e 's/^.*, V\(@<:@1-9@:>@@<:@0-9.@:>@*\).*$/\1/'` elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then # There is no specific version flag, but all output starts with a version string. # First line typically looks something like: # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 ! COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` # Check that this is likely to be Microsoft CL.EXE. $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null if test $? -ne 0; then AC_MSG_NOTICE([The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler.]) AC_MSG_NOTICE([The result from running it was: "$COMPILER_VERSION_OUTPUT"]) --- 436,446 ---- $SED -e 's/^.*, V\(@<:@1-9@:>@@<:@0-9.@:>@*\).*$/\1/'` elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then # There is no specific version flag, but all output starts with a version string. # First line typically looks something like: # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 ! COMPILER_VERSION_OUTPUT=`"$COMPILER" 2>&1 | $HEAD -n 1 | $TR -d '\r'` # Check that this is likely to be Microsoft CL.EXE. $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null if test $? -ne 0; then AC_MSG_NOTICE([The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler.]) AC_MSG_NOTICE([The result from running it was: "$COMPILER_VERSION_OUTPUT"])
*** 696,706 **** # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then # In the Microsoft toolchain we have a separate LD command "link". # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is # a cygwin program for something completely different. ! AC_CHECK_PROG([LD], [link],[link],,, [$CYGWIN_LINK]) BASIC_FIXUP_EXECUTABLE(LD) # Verify that we indeed succeeded with this trick. AC_MSG_CHECKING([if the found link.exe is actually the Visual Studio linker]) "$LD" --version > /dev/null if test $? -eq 0 ; then --- 704,714 ---- # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then # In the Microsoft toolchain we have a separate LD command "link". # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is # a cygwin program for something completely different. ! AC_CHECK_PROG([LD], [link.exe],[link.exe],,, [$CYGWIN_LINK]) BASIC_FIXUP_EXECUTABLE(LD) # Verify that we indeed succeeded with this trick. AC_MSG_CHECKING([if the found link.exe is actually the Visual Studio linker]) "$LD" --version > /dev/null if test $? -eq 0 ; then
*** 748,758 **** # # Setup the archiver (AR) # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then # The corresponding ar tool is lib.exe (used to create static libraries) ! AC_CHECK_PROG([AR], [lib],[lib],,,) elif test "x$TOOLCHAIN_TYPE" = xgcc; then BASIC_CHECK_TOOLS(AR, ar gcc-ar) else BASIC_CHECK_TOOLS(AR, ar) fi --- 756,766 ---- # # Setup the archiver (AR) # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then # The corresponding ar tool is lib.exe (used to create static libraries) ! AC_CHECK_PROG([AR], [lib.exe],[lib.exe],,,) elif test "x$TOOLCHAIN_TYPE" = xgcc; then BASIC_CHECK_TOOLS(AR, ar gcc-ar) else BASIC_CHECK_TOOLS(AR, ar) fi
*** 772,787 **** BASIC_REQUIRE_PROGS(INSTALL_NAME_TOOL, install_name_tool) BASIC_FIXUP_EXECUTABLE(INSTALL_NAME_TOOL) fi if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then ! AC_CHECK_PROG([MT], [mt], [mt],,, [/usr/bin/mt]) BASIC_FIXUP_EXECUTABLE(MT) # Setup the resource compiler (RC) ! AC_CHECK_PROG([RC], [rc], [rc],,, [/usr/bin/rc]) BASIC_FIXUP_EXECUTABLE(RC) ! AC_CHECK_PROG([DUMPBIN], [dumpbin], [dumpbin],,,) BASIC_FIXUP_EXECUTABLE(DUMPBIN) # We need to check for 'msbuild.exe' because at the place where we expect to # find 'msbuild.exe' there's also a directory called 'msbuild' and configure # won't find the 'msbuild.exe' executable in that case (and the # 'ac_executable_extensions' is unusable due to performance reasons). --- 780,795 ---- BASIC_REQUIRE_PROGS(INSTALL_NAME_TOOL, install_name_tool) BASIC_FIXUP_EXECUTABLE(INSTALL_NAME_TOOL) fi if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then ! AC_CHECK_PROG([MT], [mt.exe], [mt.exe],,, [/usr/bin/mt]) BASIC_FIXUP_EXECUTABLE(MT) # Setup the resource compiler (RC) ! AC_CHECK_PROG([RC], [rc.exe], [rc.exe],,, [/usr/bin/rc]) BASIC_FIXUP_EXECUTABLE(RC) ! AC_CHECK_PROG([DUMPBIN], [dumpbin.exe], [dumpbin.exe],,,) BASIC_FIXUP_EXECUTABLE(DUMPBIN) # We need to check for 'msbuild.exe' because at the place where we expect to # find 'msbuild.exe' there's also a directory called 'msbuild' and configure # won't find the 'msbuild.exe' executable in that case (and the # 'ac_executable_extensions' is unusable due to performance reasons).
< prev index next >