autoconf: fix clang detection
Now this works with and without --with-clang-srcdir, with and without an out-of-tree build. llvm-svn: 149749
This commit is contained in:
parent
35952f82bd
commit
e21a3b20e5
|
@ -1570,7 +1570,7 @@ dnl Configure doxygen's configuration file
|
||||||
AC_CONFIG_FILES([docs/doxygen.cfg])
|
AC_CONFIG_FILES([docs/doxygen.cfg])
|
||||||
|
|
||||||
dnl Configure clang, if present
|
dnl Configure clang, if present
|
||||||
if test ${clang_src_root} = ""; then
|
if test "${clang_src_root}" = ""; then
|
||||||
clang_src_root="$srcdir/tools/clang"
|
clang_src_root="$srcdir/tools/clang"
|
||||||
fi
|
fi
|
||||||
if test -f ${clang_src_root}/README.txt; then
|
if test -f ${clang_src_root}/README.txt; then
|
||||||
|
|
|
@ -21051,7 +21051,7 @@ ac_config_files="$ac_config_files llvm.spec"
|
||||||
ac_config_files="$ac_config_files docs/doxygen.cfg"
|
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"
|
clang_src_root="$srcdir/tools/clang"
|
||||||
fi
|
fi
|
||||||
if test -f ${clang_src_root}/README.txt; then
|
if test -f ${clang_src_root}/README.txt; then
|
||||||
|
|
Loading…
Reference in New Issue