llvm.org GIT mirror llvm / 9798b27
[multilib] Add support to the autoconf build to substitute a CLANG_LIBDIR_SUFFIX variable. This is necessary before I can add support for using that variable to CMake and the C++ code in Clang, and the autoconf build system does all substitutions in the LLVM tree. As mentioned before, I'm not planning to add actual multilib support to the autoconf build, just enough stubs for it to keep playing nicely with the CMake build once that one has support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224922 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 4 years ago
3 changed file(s) with 14 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
20162016 clang_src_root="$srcdir/tools/clang"
20172017 fi
20182018 if test -f ${clang_src_root}/README.txt; then
2019 dnl Clang supports build systems which use the multilib libdir suffix.
2020 dnl The autoconf system doesn't support this so stub out that variable.
2021 AC_DEFINE_UNQUOTED(CLANG_LIBDIR_SUFFIX,"",
2022 [Multilib suffix for libdir.])
2023
20192024 dnl Use variables to stay under 80 columns.
20202025 configh="include/clang/Config/config.h"
20212026 doxy="docs/doxygen.cfg"
1845718457 clang_src_root="$srcdir/tools/clang"
1845818458 fi
1845918459 if test -f ${clang_src_root}/README.txt; then
18460
18461 cat >>confdefs.h <<_ACEOF
18462 #define CLANG_LIBDIR_SUFFIX ""
18463 _ACEOF
18464
18465
1846018466 configh="include/clang/Config/config.h"
1846118467 doxy="docs/doxygen.cfg"
1846218468 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
77
88 /* Define if we have libxml2 */
99 #undef CLANG_HAVE_LIBXML
10
11 /* Multilib suffix for libdir. */
12 #undef CLANG_LIBDIR_SUFFIX
1013
1114 /* Relative directory for resource files */
1215 #undef CLANG_RESOURCE_DIR