llvm.org GIT mirror llvm / db6caea
autoconf: restore old clang-srcdir behavior Keep the string empty when unspecified. Undoes part of r149563. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149568 91177308-0d34-0410-b5e6-96231b3b80d8 Dylan Noblesmith 7 years ago
1 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
812812 [Directory to the out-of-tree Clang source]),,
813813 withval="-")
814814 case "$withval" in
815 -) clang_src_root="$ac_pwd/tools/clang" ;;
815 -) clang_src_root="" ;;
816816 /* | [[A-Za-z]]:[[\\/]]*) clang_src_root="$withval" ;;
817817 *) clang_src_root="$ac_pwd/$withval" ;;
818818 esac
15871587 AC_CONFIG_FILES([docs/doxygen.cfg])
15881588
15891589 dnl Configure clang, if present
1590 if test ${clang_src_root} = ""; then
1591 clang_src_root="$ac_pwd/tools/clang"
1592 fi
15901593 if test -f ${clang_src_root}/README.txt; then
15911594 AC_CONFIG_HEADERS([${clang_src_root}/include/clang/Config/config.h])
15921595 AC_CONFIG_FILES([${clang_src_root}/docs/doxygen.cfg])