For PR784:
authorReid Spencer <rspencer@reidspencer.com>
Sun, 21 May 2006 10:40:20 +0000 (10:40 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 21 May 2006 10:40:20 +0000 (10:40 +0000)
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

autoconf/configure.ac
configure

index f6bb7a5445ee9458458b1a8b4d738102e58da7a3..954dd38b8fed207f990cf66a2bf81c361eb070f6 100644 (file)
@@ -320,7 +320,7 @@ AC_ARG_WITH(llvmgccdir,
     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
 
index 9b0e36e973f73b5a904cb147c8c2ef2b686468cd..ca2049f6fde61d3d6d4da5af9006e23a7e8e8adb 100755 (executable)
--- a/configure
+++ b/configure
@@ -3150,7 +3150,7 @@ else
 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; }; } ;;