Revision: 1728
http://vcs.pcre.org/viewvc?view=rev&revision=1728
Author: ph10
Date: 2018-02-25 16:57:00 +0000 (Sun, 25 Feb 2018)
Log Message:
-----------
Add --enable-jit=auto support.
Modified Paths:
--------------
code/trunk/ChangeLog
code/trunk/configure.ac
Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog 2018-02-25 12:23:55 UTC (rev 1727)
+++ code/trunk/ChangeLog 2018-02-25 16:57:00 UTC (rev 1728)
@@ -51,7 +51,9 @@
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
-------------------------
Modified: code/trunk/configure.ac
===================================================================
--- code/trunk/configure.ac 2018-02-25 12:23:55 UTC (rev 1727)
+++ code/trunk/configure.ac 2018-02-25 16:57:00 UTC (rev 1728)
@@ -155,6 +155,18 @@
[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],