common/autoconf/basics_windows.m4

changeset 2219
cb1203f48728
parent 2210
a05ed58d5ae0
child 2224
20daa32eec6f
equal deleted inserted replaced
2216:0c4c976612d3 2219:cb1203f48728
264 arguments="EOL" 264 arguments="EOL"
265 new_path="$path" 265 new_path="$path"
266 BASIC_WINDOWS_REWRITE_AS_UNIX_PATH(new_path) 266 BASIC_WINDOWS_REWRITE_AS_UNIX_PATH(new_path)
267 267
268 new_path=`$WHICH "$new_path" 2> /dev/null` 268 new_path=`$WHICH "$new_path" 2> /dev/null`
269 # bat and cmd files are not always considered executable in MSYS causing which
270 # to not find them
271 if test "x$new_path" = x \
272 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
273 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
274 new_path="$path"
275 BASIC_WINDOWS_REWRITE_AS_UNIX_PATH(new_path)
276 fi
269 277
270 if test "x$new_path" = x; then 278 if test "x$new_path" = x; then
271 # It's still not found. Now this is an unrecoverable error. 279 # It's still not found. Now this is an unrecoverable error.
272 AC_MSG_NOTICE([The path of $1, which resolves as "$complete", is not found.]) 280 AC_MSG_NOTICE([The path of $1, which resolves as "$complete", is not found.])
273 has_space=`$ECHO "$complete" | $GREP " "` 281 has_space=`$ECHO "$complete" | $GREP " "`

mercurial