llvm.org GIT mirror llvm / 8d6dd0f
autoconf: honor --with-clang-srcdir configure was silently failing to produce anything in the case where clang wasn't at tools/clang/, resulting in compilation errors much later in the build when config.h didn't exist. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149563 91177308-0d34-0410-b5e6-96231b3b80d8 Dylan Noblesmith 7 years ago
1 changed file(s) with 4 addition(s) and 4 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="" ;;
815 -) clang_src_root="$ac_pwd/tools/clang" ;;
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 -f ${srcdir}/tools/clang/README.txt; then
1591 AC_CONFIG_HEADERS([tools/clang/include/clang/Config/config.h])
1592 AC_CONFIG_FILES([tools/clang/docs/doxygen.cfg])
1590 if test -f ${clang_src_root}/README.txt; then
1591 AC_CONFIG_HEADERS([${clang_src_root}/include/clang/Config/config.h])
1592 AC_CONFIG_FILES([${clang_src_root}/docs/doxygen.cfg])
15931593 fi
15941594
15951595 dnl OCaml findlib META file