< prev index next >

common/autoconf/generated-configure.sh

Print this page




4312 # Check if the VS env variables were setup prior to running configure.
4313 # If not, then find vcvarsall.bat and run it automatically, and integrate
4314 # the set env variables into the spec file.
4315 
4316 
4317 
4318 
4319 
4320 
4321 
4322 
4323 
4324 
4325 
4326 # This line needs to be here, verbatim, after all includes and the dummy hook
4327 # definitions. It is replaced with custom functionality when building
4328 # custom sources.
4329 #CUSTOM_AUTOCONF_INCLUDE
4330 
4331 # Do not change or remove the following line, it is needed for consistency checks:
4332 DATE_WHEN_GENERATED=1418395009
4333 
4334 ###############################################################################
4335 #
4336 # Initialization / Boot-strapping
4337 #
4338 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4339 # thus it jumps back and forth, each time gaining something needed later on.
4340 #
4341 ###############################################################################
4342 
4343 # If we are requested to print additional help, do that and then exit.
4344 # This must be the very first call.
4345 
4346   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4347     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4348     $PRINTF "Which are valid to use depends on the build platform.\n"
4349     for toolchain in $VALID_TOOLCHAINS_all; do
4350       # Use indirect variable referencing
4351       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4352       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}


27391     windows_path=`$CYGPATH -m "$unix_path"`
27392     WINPATH_BASH="$windows_path"
27393   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27394     windows_path=`cmd //c echo $unix_path`
27395     WINPATH_BASH="$windows_path"
27396   fi
27397 
27398 
27399     # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell
27400     # script (executable by bash) that will setup the important variables.
27401     EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat"
27402     $ECHO "@echo off" >  $EXTRACT_VC_ENV_BAT_FILE
27403     # This will end up something like:
27404     # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat
27405     $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE
27406     # These will end up something like:
27407     # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh
27408     # The trailing space for everyone except PATH is no typo, but is needed due
27409     # to trailing \ in the Windows paths. These will be stripped later.
27410     $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE
27411     $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE
27412     $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE
27413     $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE
27414     $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE
27415     $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE
27416 
27417     # Now execute the newly created bat file.
27418     # The | cat is to stop SetEnv.Cmd to mess with system colors on msys.
27419     # Change directory so we don't need to mess with Windows paths in redirects.
27420     cd $VS_ENV_TMP_DIR
27421     cmd /c extract-vs-env.bat | $CAT
27422     cd $CURDIR
27423 
27424     if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then
27425       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5
27426 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;}
27427       { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5
27428 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;}
27429       { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5
27430 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;}
27431       as_fn_error $? "Cannot continue" "$LINENO" 5
27432     fi




4312 # Check if the VS env variables were setup prior to running configure.
4313 # If not, then find vcvarsall.bat and run it automatically, and integrate
4314 # the set env variables into the spec file.
4315 
4316 
4317 
4318 
4319 
4320 
4321 
4322 
4323 
4324 
4325 
4326 # This line needs to be here, verbatim, after all includes and the dummy hook
4327 # definitions. It is replaced with custom functionality when building
4328 # custom sources.
4329 #CUSTOM_AUTOCONF_INCLUDE
4330 
4331 # Do not change or remove the following line, it is needed for consistency checks:
4332 DATE_WHEN_GENERATED=1420811523
4333 
4334 ###############################################################################
4335 #
4336 # Initialization / Boot-strapping
4337 #
4338 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4339 # thus it jumps back and forth, each time gaining something needed later on.
4340 #
4341 ###############################################################################
4342 
4343 # If we are requested to print additional help, do that and then exit.
4344 # This must be the very first call.
4345 
4346   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4347     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4348     $PRINTF "Which are valid to use depends on the build platform.\n"
4349     for toolchain in $VALID_TOOLCHAINS_all; do
4350       # Use indirect variable referencing
4351       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4352       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}


27391     windows_path=`$CYGPATH -m "$unix_path"`
27392     WINPATH_BASH="$windows_path"
27393   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27394     windows_path=`cmd //c echo $unix_path`
27395     WINPATH_BASH="$windows_path"
27396   fi
27397 
27398 
27399     # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell
27400     # script (executable by bash) that will setup the important variables.
27401     EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat"
27402     $ECHO "@echo off" >  $EXTRACT_VC_ENV_BAT_FILE
27403     # This will end up something like:
27404     # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat
27405     $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE
27406     # These will end up something like:
27407     # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh
27408     # The trailing space for everyone except PATH is no typo, but is needed due
27409     # to trailing \ in the Windows paths. These will be stripped later.
27410     $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE
27411     $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE
27412     $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE
27413     $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE
27414     $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE
27415     $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE
27416 
27417     # Now execute the newly created bat file.
27418     # The | cat is to stop SetEnv.Cmd to mess with system colors on msys.
27419     # Change directory so we don't need to mess with Windows paths in redirects.
27420     cd $VS_ENV_TMP_DIR
27421     cmd /c extract-vs-env.bat | $CAT
27422     cd $CURDIR
27423 
27424     if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then
27425       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5
27426 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;}
27427       { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5
27428 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;}
27429       { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5
27430 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;}
27431       as_fn_error $? "Cannot continue" "$LINENO" 5
27432     fi


< prev index next >