[Pcre-svn] [1077] code/trunk: Fix --enable-jit=auto for out-…

Páxina inicial
Borrar esta mensaxe
Autor: Subversion repository
Data:  
Para: pcre-svn
Asunto: [Pcre-svn] [1077] code/trunk: Fix --enable-jit=auto for out-of-tree builds.
Revision: 1077
          http://www.exim.org/viewvc/pcre2?view=rev&revision=1077
Author:   ph10
Date:     2019-03-01 16:19:49 +0000 (Fri, 01 Mar 2019)
Log Message:
-----------
Fix --enable-jit=auto for out-of-tree builds.


Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/configure.ac


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2019-02-16 11:58:37 UTC (rev 1076)
+++ code/trunk/ChangeLog    2019-03-01 16:19:49 UTC (rev 1077)
@@ -140,7 +140,11 @@
 I found on the Internet. The new code no longer needs the policy setting, and 
 it appears to work fine on Linux. 


+35. Setting --enable-jit=auto for an out-of-tree build failed because the
+source directory wasn't in the search path for AC_TRY_COMPILE always. Patch
+from Ross Burton.

+
Version 10.32 10-September-2018
-------------------------------


Modified: code/trunk/configure.ac
===================================================================
--- code/trunk/configure.ac    2019-02-16 11:58:37 UTC (rev 1076)
+++ code/trunk/configure.ac    2019-03-01 16:19:49 UTC (rev 1077)
@@ -146,6 +146,8 @@
 # This code enables JIT if the hardware supports it.
 if test "$enable_jit" = "auto"; then
   AC_LANG(C)
+  SAVE_CPPFLAGS=$CPPFLAGS
+  CPPFLAGS=-I$srcdir  
   AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
   #define SLJIT_CONFIG_AUTO 1
   #include "src/sljit/sljitConfigInternal.h"
@@ -152,6 +154,7 @@
   #if (defined SLJIT_CONFIG_UNSUPPORTED && SLJIT_CONFIG_UNSUPPORTED)
   #error unsupported
   #endif]])], enable_jit=yes, enable_jit=no)
+  CPPFLAGS=$SAVE_CPPFLAGS 
   echo checking for JIT support on this hardware... $enable_jit
 fi