wingo pushed a commit to branch lightning
in repository guile.
commit 2d8480388463f4a520823533b3de65120a2ae413
Author: Andy Wingo <[email protected]>
Date: Mon Jul 2 10:47:15 2018 +0200
Wire JIT availability check into Guile configure
* acinclude.m4 (GUILE_ENABLE_JIT): Add missing AC_CANONICAL_TARGET.
* configure.ac: Add check if JIT is available.
---
acinclude.m4 | 1 +
configure.ac | 3 +++
2 files changed, 4 insertions(+)
diff --git a/acinclude.m4 b/acinclude.m4
index 0de1739..3b9a330 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -581,6 +581,7 @@ AC_DEFUN([GUILE_CONFIG_SCRIPT],[AC_CONFIG_FILES([$1],[chmod
+x $1])])
AC_DEFUN([GUILE_ENABLE_JIT], [
JIT_AVAILABLE=no
+ AC_CANONICAL_TARGET
AC_MSG_CHECKING([if JIT code generation supported for target CPU])
case "$target_cpu" in
i?86|x86_64|amd64) JIT_AVAILABLE=yes ;;
diff --git a/configure.ac b/configure.ac
index 082a621..72686e7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -141,6 +141,9 @@ AC_ARG_ENABLE(debug-malloc,
[Define this if you want to debug scm_must_malloc/realloc/free calls.])
fi)
+# Check if JIT is available.
+GUILE_ENABLE_JIT
+
SCM_I_GSC_GUILE_DEBUG=0
AC_ARG_ENABLE(guile-debug,
[AS_HELP_STRING([--enable-guile-debug],