Add an exposed variable for which c++ compiler we're using for our
[oota-llvm.git] / autoconf / configure.ac
index 26f6ee468890dc18720614b2e07b0cfc0c43b44a..fb73e51df3f053cf65217a35fd293edfdc93e310 100644 (file)
@@ -133,6 +133,7 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#if ! __clang__
                                      llvm_cv_cxx_compiler=gcc, [])])
 AC_LANG_POP([C++])
 AC_MSG_RESULT([${llvm_cv_cxx_compiler}])
+AC_SUBST(CXX_COMPILER,$llvm_cv_cxx_compiler)
 
 dnl Configure all of the projects present in our source tree. While we could
 dnl just AC_CONFIG_SUBDIRS on the set of directories in projects that have a