diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2005-02-24 18:25:24 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2005-02-24 18:25:24 +0000 |
commit | 018e77de67a51a3180a4253a9976d20040e78dd6 (patch) | |
tree | 66a2ae6a60d36b1725cdf5a42f22a6136925b763 | |
parent | aab1820816facf83d7bda8f01e3d85ced99601f3 (diff) |
Add a new macro for configuring projects, LLVM_CONFIG_PROJECT. This macro
takes care of the --with-llvmsrc and --with-llvmobj options for the project
It was moved here from the project's configure.ac file because there is
some tricky handling of the llvm_src variable to tell the project where the
llvm source tree is (for mkinstalldirs and install-sh commands).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20303 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | autoconf/m4/config_project.m4 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/autoconf/m4/config_project.m4 b/autoconf/m4/config_project.m4 new file mode 100644 index 0000000000..d369e4a08c --- /dev/null +++ b/autoconf/m4/config_project.m4 @@ -0,0 +1,14 @@ +# +# Provide the arguments and other processing needed for an LLVM project +# +AC_DEFUN([LLVM_CONFIG_PROJECT], + [AC_ARG_WITH([llvmsrc], + AS_HELP_STRING([--with-llvmsrc],[Location of LLVM Source Code]), + [llvm_src="$withval"],[llvm_src=`cd ${srcdir}/../..; pwd`]) + AC_SUBST(LLVM_SRC,$llvm_src) + AC_ARG_WITH([llvmobj], + AS_HELP_STRING([--with-llvmobj],[Location of LLVM Object Code]), + [llvm_obj="$withval"],[llvm_obj=`cd ../..; pwd`]) + AC_SUBST(LLVM_OBJ,$llvm_obj) + AC_CONFIG_COMMANDS([setup],,[llvm_src="${LLVM_SRC}"]) +]) |