From 7917d3af3f51a3584a87a44548d584a5ac253cfc Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Thu, 6 Apr 2006 22:00:36 +0000 Subject: For support of new GCC v4, obtain the full and major versions of the llvm-gcc command. This will help distinguish which version is being used so the makefiles can accommodate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27461 91177308-0d34-0410-b5e6-96231b3b80d8 --- autoconf/configure.ac | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'autoconf') diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 81dc0aa..ad34c88 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -592,6 +592,10 @@ if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then AC_SUBST(LLVMCC1PLUS,$llvmcc1pluspath) llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` AC_SUBST(LLVMGCCDIR,$llvmgccdir) + llvmgccversion=[`"$LLVMGCC" -v 2>&1 | grep '^gcc version' | sed 's/^gcc version \([0-9.]*\).*/\1/'`] + llvmgccmajvers=[`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`] + AC_SUBST(LLVMGCC_VERSION,$llvmgccversion) + AC_SUBST(LLVMGCC_MAJVERS,$llvmgccmajvers) fi dnl Propagate the shared library extension that the libltdl checks did to -- cgit v1.1