Support Win32 platforms for llvm-gcc path. Patch by Anton Korobeynikov
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28426
91177308-0d34-0410-b5e6-
96231b3b80d8
withval=default)
case "$withval" in
default) WITH_LLVMGCCDIR=default ;;
- /*) WITH_LLVMGCCDIR=$withval ;;
+ /* | [[A-Za-z]]:[[\\/]]*) WITH_LLVMGCCDIR=$withval ;;
*) AC_MSG_ERROR([Invalid path for --with-llvmgccdir. Provide full path]) ;;
esac
fi;
case "$withval" in
default) WITH_LLVMGCCDIR=default ;;
- /*) WITH_LLVMGCCDIR=$withval ;;
+ /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
*) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
{ (exit 1); exit 1; }; } ;;