summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-05-14 13:07:58 +0200
committerMichael Stahl <mstahl@redhat.com>2012-05-14 13:10:54 +0200
commit30ac6d2c7baadf79574ff10e831fa8632319025a (patch)
tree1ce6a6232c70cb250d73a2e6a4aa469d42db606c
parent64338258917cdfa8723231655c536edaa94a2c23 (diff)
configure.in: report errors in PathFormat
-rw-r--r--configure.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 0fb5b2febc66..543f65e8eb5d 100644
--- a/configure.in
+++ b/configure.in
@@ -28,14 +28,23 @@ PathFormat()
done
if test "$pf_conv_to_dos" = "yes"; then
formatted_path=`cygpath -d "$formatted_path"`
+ if test $? -ne 0; then
+ AC_MSG_ERROR([path conversion failed for "$1".])
+ fi
fi
fp_count_colon=`echo "$formatted_path" | $GREP -c "[:]"`
fp_count_slash=`echo "$formatted_path" | $GREP -c "[/]"`
if test "$fp_count_slash$fp_count_colon" != "00"; then
if test "$fp_count_colon" = "0"; then
formatted_path=`realpath "$formatted_path"`
+ if test $? -ne 0; then
+ AC_MSG_ERROR([realpath failed for "$1".])
+ fi
fi
formatted_path=`cygpath -m "$formatted_path"`
+ if test $? -ne 0; then
+ AC_MSG_ERROR([path conversion failed for "$1".])
+ fi
fi
fi
}