mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-03 09:21:02 +00:00
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
This commit is contained in:
parent
63c0951999
commit
db6caea4f8
@ -813,7 +813,7 @@ AC_ARG_WITH(clang-srcdir,
|
|||||||
[Directory to the out-of-tree Clang source]),,
|
[Directory to the out-of-tree Clang source]),,
|
||||||
withval="-")
|
withval="-")
|
||||||
case "$withval" in
|
case "$withval" in
|
||||||
-) clang_src_root="$ac_pwd/tools/clang" ;;
|
-) clang_src_root="" ;;
|
||||||
/* | [[A-Za-z]]:[[\\/]]*) clang_src_root="$withval" ;;
|
/* | [[A-Za-z]]:[[\\/]]*) clang_src_root="$withval" ;;
|
||||||
*) clang_src_root="$ac_pwd/$withval" ;;
|
*) clang_src_root="$ac_pwd/$withval" ;;
|
||||||
esac
|
esac
|
||||||
@ -1588,6 +1588,9 @@ 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
|
||||||
|
clang_src_root="$ac_pwd/tools/clang"
|
||||||
|
fi
|
||||||
if test -f ${clang_src_root}/README.txt; then
|
if test -f ${clang_src_root}/README.txt; then
|
||||||
AC_CONFIG_HEADERS([${clang_src_root}/include/clang/Config/config.h])
|
AC_CONFIG_HEADERS([${clang_src_root}/include/clang/Config/config.h])
|
||||||
AC_CONFIG_FILES([${clang_src_root}/docs/doxygen.cfg])
|
AC_CONFIG_FILES([${clang_src_root}/docs/doxygen.cfg])
|
||||||
|
Loading…
Reference in New Issue
Block a user