aboutsummaryrefslogtreecommitdiffstats
path: root/autoconf
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-05-16 08:53:32 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-05-16 08:53:32 +0000
commit0582887de45f0196507ef356dcd5cb11bf7626ba (patch)
tree00dd9621f54a8c1a64f9ea0a01ff6ae5c68f8e20 /autoconf
parent069287d460321af43b7c88b816da5c778e5f46d1 (diff)
downloadexternal_llvm-0582887de45f0196507ef356dcd5cb11bf7626ba.zip
external_llvm-0582887de45f0196507ef356dcd5cb11bf7626ba.tar.gz
external_llvm-0582887de45f0196507ef356dcd5cb11bf7626ba.tar.bz2
Make sure to default ${prefix} to /usr/local if the user didn't specify it.
This assists with getting around configure's late binding values so that our LLVM variables don't end up with a "NONE" prefix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28325 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index b29ce31..f6bb7a5 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";