diff options
author | dos-reis <gdr@axiomatics.org> | 2014-11-16 20:32:55 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2014-11-16 20:32:55 +0000 |
commit | 452696064e43c23f2a44edcded311f3d7b466d7e (patch) | |
tree | 375ea3690ca7ea469675313cae728a670dd26b09 /config | |
parent | 564aff97f80abac84be64552f5238903cb126c33 (diff) | |
download | open-axiom-452696064e43c23f2a44edcded311f3d7b466d7e.tar.gz |
Check for LLVM framework
Diffstat (limited to 'config')
-rw-r--r-- | config/open-axiom.m4 | 21 | ||||
-rw-r--r-- | config/openaxiom-c-macros.h.in | 3 |
2 files changed, 24 insertions, 0 deletions
diff --git a/config/open-axiom.m4 b/config/open-axiom.m4 index d16ee27e..02dccbb9 100644 --- a/config/open-axiom.m4 +++ b/config/open-axiom.m4 @@ -254,6 +254,26 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], [AC_MSG_ERROR([OpenAxiom requires a C++11 compiler])]) ]) +dnl -------------------------- +dnl -- OPENAXIOM_CHECK_LLVM -- +dnl -------------------------- +dnl Do we have recent enough LLVM? +AC_DEFUN([OPENAXIOM_CHECK_LLVM],[ +oa_use_llvm=no +AC_CHECK_PROGS([LLVM_CONFIG],[llvm-config]) +if test -n "$LLVM_CONFIG"; then + case `$LLVM_CONFIG --version` in + 3.[[5-9]].*) + oa_use_llvm=yes + ;; + *) + ;; + esac + AC_DEFINE_UNQUOTED([OPENAXIOM_HOST_HAS_LLVM],[],[Host has LLVM.]) +fi +AC_SUBST(oa_use_llvm) +]) + dnl ------------------------------ dnl -- OPENAXIOM_HOST_COMPILERS -- dnl ------------------------------ @@ -284,6 +304,7 @@ OPENAXIOM_SATISFY_GCL_NEEDS AC_PROG_CPP AC_PROG_CXXCPP OPENAXIOM_CPPFLAGS_FOR_VENDOR_LOCK_INS +OPENAXIOM_CHECK_LLVM ]) dnl --------------------------------- diff --git a/config/openaxiom-c-macros.h.in b/config/openaxiom-c-macros.h.in index 26fb89f8..123648aa 100644 --- a/config/openaxiom-c-macros.h.in +++ b/config/openaxiom-c-macros.h.in @@ -152,6 +152,9 @@ /* Extension of executable file. */ #undef OPENAXIOM_EXEEXT +/* Host has LLVM. */ +#undef OPENAXIOM_HOST_HAS_LLVM + /* The width of the host Lisp and CPU registers. */ #undef OPENAXIOM_HOST_LISP_PRECISION |