Make sure to default ${prefix} to /usr/local if the user didn't specify it.
[oota-llvm.git] / configure
index b235fcd95c07ec2a6448ded6c4f27e0897af5080..9b0e36e973f73b5a904cb147c8c2ef2b686468cd 100755 (executable)
--- a/configure
+++ b/configure
@@ -30739,6 +30739,9 @@ SHLIBEXT=$libltdl_cv_shlibext
 # Translate the various configuration directories and other basic
 # information into substitutions that will end up in Makefile.config.in
 # that these configured values can be used by the makefiles
+if test "${prefix}" == "NONE" ; then
+  prefix="/usr/local"
+fi
 eval LLVM_PREFIX="${prefix}";
 eval LLVM_BINDIR="${prefix}/bin";
 eval LLVM_LIBDIR="${prefix}/lib";