336 AC_MSG_RESULT([$CYGWIN_ROOT_PATH])
337 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
338 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
339 if test "x$test_cygdrive_prefix" = x; then
340 AC_MSG_ERROR([Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c.])
341 fi
342 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
343 AC_MSG_CHECKING([msys release])
344 MSYS_VERSION=`$UNAME -r`
345 AC_MSG_RESULT([$MSYS_VERSION])
346
347 WINDOWS_ENV_VENDOR='msys'
348 WINDOWS_ENV_VERSION="$MSYS_VERSION"
349
350 AC_MSG_CHECKING([msys root directory as unix-style path])
351 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
352 MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"`
353 BASIC_WINDOWS_REWRITE_AS_UNIX_PATH(MSYS_ROOT_PATH)
354 AC_MSG_RESULT([$MSYS_ROOT_PATH])
355 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
356 else
357 AC_MSG_ERROR([Unknown Windows environment. Neither cygwin nor msys was detected.])
358 fi
359
360 # Test if windows or unix (cygwin/msys) find is first in path.
361 AC_MSG_CHECKING([what kind of 'find' is first on the PATH])
362 FIND_BINARY_OUTPUT=`find --version 2>&1`
363 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
364 AC_MSG_RESULT([unix style])
365 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
366 AC_MSG_RESULT([Windows])
367 AC_MSG_NOTICE([Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools.])
368 AC_MSG_NOTICE([This will not work. Please correct and make sure /usr/bin (or similar) is first in path.])
369 AC_MSG_ERROR([Cannot continue])
370 else
371 AC_MSG_RESULT([unknown])
372 AC_MSG_WARN([It seems that your find utility is non-standard.])
373 fi
374 ])
375
376 AC_DEFUN_ONCE([BASIC_COMPILE_FIXPATH],
377 [
|
336 AC_MSG_RESULT([$CYGWIN_ROOT_PATH])
337 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
338 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
339 if test "x$test_cygdrive_prefix" = x; then
340 AC_MSG_ERROR([Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c.])
341 fi
342 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
343 AC_MSG_CHECKING([msys release])
344 MSYS_VERSION=`$UNAME -r`
345 AC_MSG_RESULT([$MSYS_VERSION])
346
347 WINDOWS_ENV_VENDOR='msys'
348 WINDOWS_ENV_VERSION="$MSYS_VERSION"
349
350 AC_MSG_CHECKING([msys root directory as unix-style path])
351 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
352 MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"`
353 BASIC_WINDOWS_REWRITE_AS_UNIX_PATH(MSYS_ROOT_PATH)
354 AC_MSG_RESULT([$MSYS_ROOT_PATH])
355 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
356 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then
357 AC_MSG_CHECKING([wsl kernel])
358 WSL_KERNEL_VERSION=`$UNAME -r`
359 AC_MSG_RESULT([$WSL_KERNEL_VERSION])
360
361 WINDOWS_ENV_VENDOR='wsl'
362 WINDOWS_ENV_VERSION="$WSL_KERNEL_VERSION"
363
364 WINDOWS_ENV_ROOT_PATH="/mnt/c"
365 else
366 AC_MSG_ERROR([Unknown Windows environment: $OPENJDK_BUILD_OS_ENV ])
367 fi
368
369 # Test if windows or unix (cygwin/msys) find is first in path.
370 AC_MSG_CHECKING([what kind of 'find' is first on the PATH])
371 FIND_BINARY_OUTPUT=`find --version 2>&1`
372 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
373 AC_MSG_RESULT([unix style])
374 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
375 AC_MSG_RESULT([Windows])
376 AC_MSG_NOTICE([Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools.])
377 AC_MSG_NOTICE([This will not work. Please correct and make sure /usr/bin (or similar) is first in path.])
378 AC_MSG_ERROR([Cannot continue])
379 else
380 AC_MSG_RESULT([unknown])
381 AC_MSG_WARN([It seems that your find utility is non-standard.])
382 fi
383 ])
384
385 AC_DEFUN_ONCE([BASIC_COMPILE_FIXPATH],
386 [
|