diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | configure.ac | 12 |
2 files changed, 14 insertions, 0 deletions
@@ -51,6 +51,8 @@ crash. This issue was fixed for other kinds of repeat in release 8.37 by change 6. A small fix to pcregrep to avoid compiler warnings for -Wformat-overflow=2. +7. Added --enable-jit=auto support to configure.ac. + Version 8.41 05-July-2017 ------------------------- diff --git a/configure.ac b/configure.ac index 5838eb9..6268ec4 100644 --- a/configure.ac +++ b/configure.ac @@ -155,6 +155,18 @@ AC_ARG_ENABLE(jit, [enable Just-In-Time compiling support]), , enable_jit=no) +# This code enables JIT if the hardware supports it. + +if test "$enable_jit" = "auto"; then + AC_LANG(C) + AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ + #define SLJIT_CONFIG_AUTO 1 + #include "sljit/sljitConfigInternal.h" + #if (defined SLJIT_CONFIG_UNSUPPORTED && SLJIT_CONFIG_UNSUPPORTED) + #error unsupported + #endif]])], enable_jit=yes, enable_jit=no) +fi + # Handle --disable-pcregrep-jit (enabled by default) AC_ARG_ENABLE(pcregrep-jit, AS_HELP_STRING([--disable-pcregrep-jit], |