aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autoconf/configure.ac3
-rwxr-xr-xconfigure3
2 files changed, 6 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index b29ce31f96..f6bb7a5445 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -632,6 +632,9 @@ AC_SUBST(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";
diff --git a/configure b/configure
index b235fcd95c..9b0e36e973 100755
--- 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";