Move the AC_PROG_CC checks earlier in the configure file. The lateness

of the original check meant that configure was caching the default
CC check and using that instead of the result of AC_PROG_CC in both
configure checks and during compilation.

This wasn't affecting C++ so it was hard to notice.

Regenerate configure.

llvm-svn: 139937
This commit is contained in:
Eric Christopher 2011-09-16 20:36:25 +00:00
parent 2266c007e3
commit 5883971d00
2 changed files with 932 additions and 1949 deletions

View File

@ -58,6 +58,12 @@ if test ${srcdir} != "." ; then
fi
fi
dnl We need to check for the compiler up here to avoid anything else
dnl starting with a different one.
AC_PROG_CC(clang llvm-gcc gcc)
AC_PROG_CXX(clang++ llvm-g++ g++)
AC_PROG_CPP
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
dnl configure script, that usage of the AC_CONFIG_SUBDIRS macro is deprecated.
@ -965,11 +971,6 @@ dnl=== SECTION 4: Check for programs we need and that they are the right version
dnl===
dnl===-----------------------------------------------------------------------===
dnl Check for compilation tools
AC_PROG_CPP
AC_PROG_CC(clang llvm-gcc gcc)
AC_PROG_CXX(clang++ llvm-g++ g++)
AC_PROG_NM
AC_SUBST(NM)

2870
llvm/configure vendored

File diff suppressed because it is too large Load Diff