summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-10-18 15:07:19 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-10-18 15:07:19 -0500
commite6fe8387788b98b4bae43b466075f3938f3fb50c (patch)
treed68508b7bb1de5c20dcad67c7abcb95b3cee0e55
parentebc9ca1d41e84a895a080933b94422d6bddb7ceb (diff)
we should convert to DOS path for other exotic things than spaces too
backslases and other 'special' characters can mess with later path handling Change-Id: Ic21b0eb82b60ffb2e286706be00148582ff9ad58
-rw-r--r--configure.ac13
1 files changed, 6 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac
index 05e8d55dc524..b763b963962a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,15 +29,14 @@ PathFormat()
{
formatted_path="$1"
if test "$build_os" = "cygwin"; then
- pf_part1=
pf_conv_to_dos=
- for pf_part in $formatted_path; do
- if test -z "$pf_part1"; then
- pf_part1="$pf_part"
- else
+ # spaces,parentheses,brackets,braces are problematic in pathname
+ # so are backslashes
+ case "$formatted_path" in
+ *\ * | *\)* | *\(* | *\{* | *\}* | *\[* | *\]* | *\\* )
pf_conv_to_dos="yes"
- fi
- done
+ ;;
+ esac
if test "$pf_conv_to_dos" = "yes"; then
if test "$GNUMAKE_WIN_NATIVE" = "TRUE" ; then
formatted_path=`cygpath -sm "$formatted_path"`