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
This commit is contained in:
Reid Spencer 2005-05-13 18:30:13 +00:00
parent 7dad18b788
commit 15792b0259
2 changed files with 2 additions and 4 deletions

View File

@ -354,8 +354,8 @@ esac
AC_SUBST(ETAGSFLAGS,$ETAGSFLAGS) AC_SUBST(ETAGSFLAGS,$ETAGSFLAGS)
if test "$WITH_LLVMGCCDIR" = "default" ; then if test "$WITH_LLVMGCCDIR" = "default" ; then
AC_PATH_PROG(LLVMGCC, [llvm-gcc], [llvm-gcc]) AC_PATH_PROG(LLVMGCC, [llvm-gcc], [])
AC_PATH_PROG(LLVMGXX, [llvm-g++], [llvm-g++]) AC_PATH_PROG(LLVMGXX, [llvm-g++], [])
else else
LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++ LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++

2
configure vendored
View File

@ -24648,7 +24648,6 @@ do
done done
done done
test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
;; ;;
esac esac
fi fi
@ -24688,7 +24687,6 @@ do
done done
done done
test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
;; ;;
esac esac
fi fi