27620 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat |
27623 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat |
27621 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 |
27624 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 |
27622 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} |
27625 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} |
27623 |
27626 |
27624 # We need to create a couple of temporary files. |
27627 # We need to create a couple of temporary files. |
27625 VS_ENV_TMP_DIR="$OUTPUT_ROOT/vs-env" |
27628 VS_ENV_TMP_DIR="$CONFIGURESUPPORT_OUTPUTDIR/vs-env" |
27626 $MKDIR -p $VS_ENV_TMP_DIR |
27629 $MKDIR -p $VS_ENV_TMP_DIR |
27627 |
27630 |
27628 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). |
27631 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). |
27629 # Instead create a shell script which will set the relevant variables when run. |
27632 # Instead create a shell script which will set the relevant variables when run. |
27630 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" |
27633 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" |
43134 FIXPATH= |
43137 FIXPATH= |
43135 if test "x$OPENJDK_BUILD_OS" = xwindows; then |
43138 if test "x$OPENJDK_BUILD_OS" = xwindows; then |
43136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 |
43139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 |
43137 $as_echo_n "checking if fixpath can be created... " >&6; } |
43140 $as_echo_n "checking if fixpath can be created... " >&6; } |
43138 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" |
43141 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" |
43139 FIXPATH_BIN="$OUTPUT_ROOT/fixpath.exe" |
43142 FIXPATH_BIN="$CONFIGURESUPPORT_OUTPUTDIR/bin/fixpath.exe" |
|
43143 FIXPATH_DIR="$CONFIGURESUPPORT_OUTPUTDIR/fixpath" |
43140 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then |
43144 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then |
43141 FIXPATH_SRC=`$CYGPATH -m $FIXPATH_SRC` |
|
43142 FIXPATH_BIN=`$CYGPATH -m $FIXPATH_BIN` |
|
43143 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles |
43145 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles |
43144 FIXPATH="$OUTPUT_ROOT/fixpath.exe -c" |
43146 FIXPATH="$FIXPATH_BIN -c" |
43145 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then |
43147 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then |
43146 FIXPATH_SRC=`cmd //c echo $FIXPATH_SRC` |
|
43147 FIXPATH_BIN=`cmd //c echo $FIXPATH_BIN` |
|
43148 |
|
43149 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line |
43148 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line |
43150 # @ was chosen as separator to minimize risk of other tools messing around with it |
43149 # @ was chosen as separator to minimize risk of other tools messing around with it |
43151 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" | tr ' ' '\n' | grep '^/./' | sort | uniq` |
43150 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" \ |
|
43151 | tr ' ' '\n' | grep '^/./' | sort | uniq` |
43152 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` |
43152 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` |
43153 |
43153 FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list" |
43154 FIXPATH="$OUTPUT_ROOT/fixpath -m$fixpath_argument_list" |
43154 fi |
43155 fi |
43155 FIXPATH_SRC_W="$FIXPATH_SRC" |
43156 rm -f $OUTPUT_ROOT/fixpath* |
43156 FIXPATH_BIN_W="$FIXPATH_BIN" |
43157 cd $OUTPUT_ROOT |
43157 |
43158 $CC $FIXPATH_SRC -Fe$FIXPATH_BIN > $OUTPUT_ROOT/fixpath1.log 2>&1 |
43158 unix_path="$FIXPATH_SRC_W" |
|
43159 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then |
|
43160 windows_path=`$CYGPATH -m "$unix_path"` |
|
43161 FIXPATH_SRC_W="$windows_path" |
|
43162 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then |
|
43163 windows_path=`cmd //c echo $unix_path` |
|
43164 FIXPATH_SRC_W="$windows_path" |
|
43165 fi |
|
43166 |
|
43167 |
|
43168 unix_path="$FIXPATH_BIN_W" |
|
43169 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then |
|
43170 windows_path=`$CYGPATH -m "$unix_path"` |
|
43171 FIXPATH_BIN_W="$windows_path" |
|
43172 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then |
|
43173 windows_path=`cmd //c echo $unix_path` |
|
43174 FIXPATH_BIN_W="$windows_path" |
|
43175 fi |
|
43176 |
|
43177 $RM -rf $FIXPATH_BIN $FIXPATH_DIR |
|
43178 $MKDIR -p $FIXPATH_DIR $CONFIGURESUPPORT_OUTPUTDIR/bin |
|
43179 cd $FIXPATH_DIR |
|
43180 $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1 |
43159 cd $CURDIR |
43181 cd $CURDIR |
43160 |
43182 |
43161 if test ! -x $OUTPUT_ROOT/fixpath.exe; then |
43183 if test ! -x $FIXPATH_BIN; then |
43162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
43184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
43163 $as_echo "no" >&6; } |
43185 $as_echo "no" >&6; } |
43164 cat $OUTPUT_ROOT/fixpath1.log |
43186 cat $FIXPATH_DIR/fixpath1.log |
43165 as_fn_error $? "Could not create $OUTPUT_ROOT/fixpath.exe" "$LINENO" 5 |
43187 as_fn_error $? "Could not create $FIXPATH_BIN" "$LINENO" 5 |
43166 fi |
43188 fi |
43167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
43189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
43168 $as_echo "yes" >&6; } |
43190 $as_echo "yes" >&6; } |
43169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 |
43191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 |
43170 $as_echo_n "checking if fixpath.exe works... " >&6; } |
43192 $as_echo_n "checking if fixpath.exe works... " >&6; } |
43171 cd $OUTPUT_ROOT |
43193 cd $FIXPATH_DIR |
43172 $FIXPATH $CC $SRC_ROOT/common/src/fixpath.c -Fe$OUTPUT_ROOT/fixpath2.exe > $OUTPUT_ROOT/fixpath2.log 2>&1 |
43194 $FIXPATH $CC $FIXPATH_SRC -Fe$FIXPATH_DIR/fixpath2.exe \ |
|
43195 > $FIXPATH_DIR/fixpath2.log 2>&1 |
43173 cd $CURDIR |
43196 cd $CURDIR |
43174 if test ! -x $OUTPUT_ROOT/fixpath2.exe; then |
43197 if test ! -x $FIXPATH_DIR/fixpath2.exe; then |
43175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
43198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
43176 $as_echo "no" >&6; } |
43199 $as_echo "no" >&6; } |
43177 cat $OUTPUT_ROOT/fixpath2.log |
43200 cat $FIXPATH_DIR/fixpath2.log |
43178 as_fn_error $? "fixpath did not work!" "$LINENO" 5 |
43201 as_fn_error $? "fixpath did not work!" "$LINENO" 5 |
43179 fi |
43202 fi |
43180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
43203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
43181 $as_echo "yes" >&6; } |
43204 $as_echo "yes" >&6; } |
43182 rm -f $OUTPUT_ROOT/fixpath?.??? $OUTPUT_ROOT/fixpath.obj |
|
43183 fi |
43205 fi |
43184 |
43206 |
43185 |
43207 |
43186 |
43208 |
43187 |
43209 |