From d05e39d6a64db0d2261b519642c193d61f1f9502 Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Fri, 16 Jan 2004 21:31:22 +0000 Subject: [PATCH] Get paths to cc1 and cc1plus by asking llvm-gcc, and AC_SUBST them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10901 91177308-0d34-0410-b5e6-96231b3b80d8 --- autoconf/configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoconf/configure.ac b/autoconf/configure.ac index d9177a4f0d2..369d26064fa 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -360,6 +360,10 @@ then LLVM_GCC_SANE=yes fi rm conftest.c + llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1` + AC_SUBST(LLVMCC1,$llvmcc1path) + llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus` + AC_SUBST(LLVMCC1PLUS,$llvmcc1pluspath) fi AC_MSG_RESULT($LLVM_GCC_SANE) if test "$LLVM_GCC_SANE" = "no"