common/autoconf/basics_windows.m4

changeset 2210
a05ed58d5ae0
parent 1395
ff2690c06dd8
child 2219
cb1203f48728
     1.1 --- a/common/autoconf/basics_windows.m4	Fri Apr 06 04:20:26 2018 -0700
     1.2 +++ b/common/autoconf/basics_windows.m4	Sat Apr 07 03:28:39 2018 -0700
     1.3 @@ -321,8 +321,8 @@
     1.4        AC_MSG_ERROR([Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path])
     1.5      fi
     1.6      AC_MSG_CHECKING([cygwin root directory as unix-style path])
     1.7 -    # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
     1.8 -    cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
     1.9 +    # The cmd output ends with Windows line endings (CR/LF)
    1.10 +    cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'`
    1.11      # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
    1.12      CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
    1.13      AC_MSG_RESULT([$CYGWIN_ROOT_PATH])

mercurial