From: Reid Spencer Date: Fri, 13 May 2005 18:30:13 +0000 (+0000) Subject: Fix the "stacker doesn't build without llvm-gcc" problem. The configure X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=15792b0259ecf494314716cb523be6cd2dd295bc;p=oota-llvm.git Fix the "stacker doesn't build without llvm-gcc" problem. The configure script was defaulting the LLVMGCC variable to "llvm-gcc" if it couldn't find llvm-gcc and --with-llvmgccdir was not specified. In this case, there is no llvm-gcc available on the system so we shouldn't assume that the user's path will find it any better than configure could. The fix is to default it to an empty string. If LLVMGCC is empty, the makefiles will avoid building things that depend on llvm-gcc and give a nice warning message to that effect. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21953 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/autoconf/configure.ac b/autoconf/configure.ac index bdfb76dd14d..093d9f1f47d 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -354,8 +354,8 @@ esac AC_SUBST(ETAGSFLAGS,$ETAGSFLAGS) if test "$WITH_LLVMGCCDIR" = "default" ; then - AC_PATH_PROG(LLVMGCC, [llvm-gcc], [llvm-gcc]) - AC_PATH_PROG(LLVMGXX, [llvm-g++], [llvm-g++]) + AC_PATH_PROG(LLVMGCC, [llvm-gcc], []) + AC_PATH_PROG(LLVMGXX, [llvm-g++], []) else LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++ diff --git a/configure b/configure index bbe4105cb5f..948517019d2 100755 --- a/configure +++ b/configure @@ -24648,7 +24648,6 @@ do done done - test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc" ;; esac fi @@ -24688,7 +24687,6 @@ do done done - test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++" ;; esac fi