diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2010-10-30 00:54:26 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2010-10-30 00:54:26 +0000 |
commit | baaadb2672e70916eb7e35b48b5ca34bec772fb8 (patch) | |
tree | 86cdaba77d5dcbba224ae9c59a2ad5f569f65a4d /autoconf | |
parent | 6b5252db2db5eeeadec4602329ac56beb6dea54a (diff) | |
download | external_llvm-baaadb2672e70916eb7e35b48b5ca34bec772fb8.zip external_llvm-baaadb2672e70916eb7e35b48b5ca34bec772fb8.tar.gz external_llvm-baaadb2672e70916eb7e35b48b5ca34bec772fb8.tar.bz2 |
Add polly support to the build system.
Update the cmake and autoconf build system to compile polly
as a shared library if it is checked out into tools/polly. In case
polly is not checked out, nothing changes.
This models the way clang can be added to llvm if checked out to tools/clang.
Also rebuild configure.
Patch contributed by ether.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117755 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/configure.ac | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index ec36052..5fa85d0 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -121,6 +121,26 @@ do fi done +dnl Disable the build of polly, even if it is checked out into tools/polly. +AC_ARG_ENABLE(polly, + AS_HELP_STRING([--enable-polly], + [Use polly if available (default is YES)]),, + enableval=default) +case "$enableval" in + yes) AC_SUBST(ENABLE_POLLY,[1]) ;; + no) AC_SUBST(ENABLE_POLLY,[0]) ;; + default) AC_SUBST(ENABLE_POLLY,[1]) ;; + *) AC_MSG_ERROR([Invalid setting for --enable-polly. Use "yes" or "no"]) ;; +esac + + +dnl Check if polly is checked out into tools/polly and configure it if +dnl available. +if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then + AC_SUBST(LLVM_HAS_POLLY,1) + AC_CONFIG_SUBDIRS([tools/polly]) +fi + dnl===-----------------------------------------------------------------------=== dnl=== dnl=== SECTION 2: Architecture, target, and host checks |