diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-04-06 22:00:36 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-04-06 22:00:36 +0000 |
commit | 7917d3af3f51a3584a87a44548d584a5ac253cfc (patch) | |
tree | 8e1aedf341c194ac255522846676a19ad1dabdbf /autoconf | |
parent | 253b9e775045e19b3ad9bc56a4ca656e2b21a46a (diff) | |
download | external_llvm-7917d3af3f51a3584a87a44548d584a5ac253cfc.zip external_llvm-7917d3af3f51a3584a87a44548d584a5ac253cfc.tar.gz external_llvm-7917d3af3f51a3584a87a44548d584a5ac253cfc.tar.bz2 |
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
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
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 |