diff options
| author | Dylan Noblesmith <nobled@dreamwidth.org> | 2012-02-04 02:41:36 +0000 |
|---|---|---|
| committer | Dylan Noblesmith <nobled@dreamwidth.org> | 2012-02-04 02:41:36 +0000 |
| commit | e21a3b20e51b9ddd8c5165f46ae9c70773035593 (patch) | |
| tree | cf41942573c62a78d4bd4677da093263caaeb7ba | |
| parent | 35952f82bd6cae6bbec3c73604ceb03d2bc0ce4b (diff) | |
| download | bcm5719-llvm-e21a3b20e51b9ddd8c5165f46ae9c70773035593.tar.gz bcm5719-llvm-e21a3b20e51b9ddd8c5165f46ae9c70773035593.zip | |
autoconf: fix clang detection
Now this works with and without --with-clang-srcdir, with and
without an out-of-tree build.
llvm-svn: 149749
| -rw-r--r-- | llvm/autoconf/configure.ac | 2 | ||||
| -rwxr-xr-x | llvm/configure | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/autoconf/configure.ac b/llvm/autoconf/configure.ac index f6d6d9f36d1..96bb990049a 100644 --- a/llvm/autoconf/configure.ac +++ b/llvm/autoconf/configure.ac @@ -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 diff --git a/llvm/configure b/llvm/configure index 2c99b4f2216..0c166389e1e 100755 --- a/llvm/configure +++ b/llvm/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 |

