< prev index next >

make/autoconf/basic_windows.m4

Print this page


   1 #
   2 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


 131   # called fixpath.
 132   FIXPATH=
 133   if test "x$OPENJDK_BUILD_OS" = xwindows; then
 134     AC_MSG_CHECKING([if fixpath can be created])
 135     FIXPATH_SRC="$TOPDIR/make/src/native/fixpath.c"
 136     FIXPATH_BIN="$CONFIGURESUPPORT_OUTPUTDIR/bin/fixpath.exe"
 137     FIXPATH_DIR="$CONFIGURESUPPORT_OUTPUTDIR/fixpath"
 138     if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then
 139       # Important to keep the .exe suffix on Cygwin for Hotspot makefiles
 140       FIXPATH="$FIXPATH_BIN -c"
 141     elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then
 142       # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line
 143       # @ was chosen as separator to minimize risk of other tools messing around with it
 144       all_unique_prefixes=`echo "${all_fixpath_prefixes@<:@@@:>@}" \
 145           | tr ' ' '\n' | $GREP '^/./' | $SORT | $UNIQ`
 146       fixpath_argument_list=`echo $all_unique_prefixes  | tr ' ' '@'`
 147       FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list"
 148     elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.wsl; then
 149       FIXPATH="$FIXPATH_BIN -w"
 150     fi


 151     FIXPATH_SRC_W="$FIXPATH_SRC"
 152     FIXPATH_BIN_W="$FIXPATH_BIN"
 153     UTIL_REWRITE_AS_WINDOWS_MIXED_PATH([FIXPATH_SRC_W])
 154     UTIL_REWRITE_AS_WINDOWS_MIXED_PATH([FIXPATH_BIN_W])
 155     $RM -rf $FIXPATH_BIN $FIXPATH_DIR
 156     $MKDIR -p $FIXPATH_DIR $CONFIGURESUPPORT_OUTPUTDIR/bin
 157     cd $FIXPATH_DIR
 158     $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1
 159     cd $CONFIGURE_START_DIR
 160 
 161     if test ! -x $FIXPATH_BIN; then
 162       AC_MSG_RESULT([no])
 163       cat $FIXPATH_DIR/fixpath1.log
 164       AC_MSG_ERROR([Could not create $FIXPATH_BIN])
 165     fi
 166     AC_MSG_RESULT([yes])
 167 
 168     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then
 169       OLD_WSLENV="$WSLENV"
 170       WSLENV=`$ECHO $WSLENV | $SED 's/PATH\/l://'`
 171       UTIL_APPEND_TO_PATH(WSLENV, "FIXPATH_PATH")
 172       export WSLENV
 173       export FIXPATH_PATH=$VS_PATH_WINDOWS
 174       AC_MSG_NOTICE([FIXPATH_PATH is $FIXPATH_PATH])
 175       AC_MSG_NOTICE([Rewriting WSLENV from $OLD_WSLENV to $WSLENV])
 176     fi
   1 #
   2 # Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


 131   # called fixpath.
 132   FIXPATH=
 133   if test "x$OPENJDK_BUILD_OS" = xwindows; then
 134     AC_MSG_CHECKING([if fixpath can be created])
 135     FIXPATH_SRC="$TOPDIR/make/src/native/fixpath.c"
 136     FIXPATH_BIN="$CONFIGURESUPPORT_OUTPUTDIR/bin/fixpath.exe"
 137     FIXPATH_DIR="$CONFIGURESUPPORT_OUTPUTDIR/fixpath"
 138     if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then
 139       # Important to keep the .exe suffix on Cygwin for Hotspot makefiles
 140       FIXPATH="$FIXPATH_BIN -c"
 141     elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then
 142       # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line
 143       # @ was chosen as separator to minimize risk of other tools messing around with it
 144       all_unique_prefixes=`echo "${all_fixpath_prefixes@<:@@@:>@}" \
 145           | tr ' ' '\n' | $GREP '^/./' | $SORT | $UNIQ`
 146       fixpath_argument_list=`echo $all_unique_prefixes  | tr ' ' '@'`
 147       FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list"
 148     elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.wsl; then
 149       FIXPATH="$FIXPATH_BIN -w"
 150     fi
 151     $RM -rf $FIXPATH_BIN $FIXPATH_DIR
 152     $MKDIR -p $FIXPATH_DIR $CONFIGURESUPPORT_OUTPUTDIR/bin
 153     FIXPATH_SRC_W="$FIXPATH_SRC"
 154     FIXPATH_BIN_W="$FIXPATH_BIN"
 155     UTIL_REWRITE_AS_WINDOWS_MIXED_PATH([FIXPATH_SRC_W])
 156     UTIL_REWRITE_AS_WINDOWS_MIXED_PATH([FIXPATH_BIN_W])


 157     cd $FIXPATH_DIR
 158     $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1
 159     cd $CONFIGURE_START_DIR
 160 
 161     if test ! -x $FIXPATH_BIN; then
 162       AC_MSG_RESULT([no])
 163       cat $FIXPATH_DIR/fixpath1.log
 164       AC_MSG_ERROR([Could not create $FIXPATH_BIN])
 165     fi
 166     AC_MSG_RESULT([yes])
 167 
 168     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then
 169       OLD_WSLENV="$WSLENV"
 170       WSLENV=`$ECHO $WSLENV | $SED 's/PATH\/l://'`
 171       UTIL_APPEND_TO_PATH(WSLENV, "FIXPATH_PATH")
 172       export WSLENV
 173       export FIXPATH_PATH=$VS_PATH_WINDOWS
 174       AC_MSG_NOTICE([FIXPATH_PATH is $FIXPATH_PATH])
 175       AC_MSG_NOTICE([Rewriting WSLENV from $OLD_WSLENV to $WSLENV])
 176     fi
< prev index next >