autoconf: generate clang's private config.h header
authorDylan Noblesmith <nobled@dreamwidth.org>
Wed, 1 Feb 2012 14:06:21 +0000 (14:06 +0000)
committerDylan Noblesmith <nobled@dreamwidth.org>
Wed, 1 Feb 2012 14:06:21 +0000 (14:06 +0000)
The CMake build already generated one. Follows clang r149497.

This brings us one step closer to compiling and configuring clang
separately from LLVM using the autoconf build, too.

(I lack the right version of autoconf et al. to regen, but it
was a simple change, so I just updated configure manually.)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149498 91177308-0d34-0410-b5e6-96231b3b80d8

autoconf/configure.ac
configure

index d01cea48057508c38e2debade11210b526f0ac05..84a120b4f0914c5c8c228fdbe797d9d6512b7b74 100644 (file)
@@ -1586,7 +1586,10 @@ AC_CONFIG_FILES([llvm.spec])
 
 dnl Configure doxygen's configuration file
 AC_CONFIG_FILES([docs/doxygen.cfg])
+
+dnl Configure clang, if present
 if test -f ${srcdir}/tools/clang/README.txt; then
+  AC_CONFIG_HEADERS([tools/clang/include/clang/Config/config.h])
   AC_CONFIG_FILES([tools/clang/docs/doxygen.cfg])
 fi
 
index 402dc4eb6b48b98c29570f83c6f2a353b4a0d471..1c790c51b8f6374747d7e569a2923bbfae9fd403 100755 (executable)
--- a/configure
+++ b/configure
@@ -21095,6 +21095,7 @@ ac_config_files="$ac_config_files llvm.spec"
 ac_config_files="$ac_config_files docs/doxygen.cfg"
 
 if test -f ${srcdir}/tools/clang/README.txt; then
+  ac_config_headers="$ac_config_headers tools/clang/include/clang/Config/config.h"
   ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
 
 fi