autoconf: fix clang detection
authorDylan Noblesmith <nobled@dreamwidth.org>
Sat, 4 Feb 2012 02:41:36 +0000 (02:41 +0000)
committerDylan Noblesmith <nobled@dreamwidth.org>
Sat, 4 Feb 2012 02:41:36 +0000 (02:41 +0000)
Now this works with and without --with-clang-srcdir, with and
without an out-of-tree build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149749 91177308-0d34-0410-b5e6-96231b3b80d8

autoconf/configure.ac
configure

index f6d6d9f36d1d4e14b1f231da08a8328f8b33f576..96bb990049a1402906f6b729518e1d7d0191ca47 100644 (file)
@@ -1570,7 +1570,7 @@ dnl Configure doxygen's configuration file
 AC_CONFIG_FILES([docs/doxygen.cfg])
 
 dnl Configure clang, if present
-if test ${clang_src_root} = ""; then
+if test "${clang_src_root}" = ""; then
   clang_src_root="$srcdir/tools/clang"
 fi
 if test -f ${clang_src_root}/README.txt; then
index 2c99b4f2216a575dd08eb39dd27cc8cb0455790c..0c166389e1e3dc79a01c3ce11a79b806673c4f16 100755 (executable)
--- a/configure
+++ b/configure
@@ -21051,7 +21051,7 @@ ac_config_files="$ac_config_files llvm.spec"
 ac_config_files="$ac_config_files docs/doxygen.cfg"
 
 
-if test ${clang_src_root} = ""; then
+if test "${clang_src_root}" = ""; then
   clang_src_root="$srcdir/tools/clang"
 fi
 if test -f ${clang_src_root}/README.txt; then