]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: jit: don't rely on USE flag to detect support
authorLukas Tribus <luky-37@hotmail.com>
Sun, 14 Apr 2013 22:41:40 +0000 (00:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 14 Apr 2013 23:24:16 +0000 (01:24 +0200)
commitd9bdccda556d6139a06f0a1229e7f304a93ee0fe
tree880cfb679082dfffe7541edb671f998e0ac1797f
parent667c2a3d2ae7a651d162fe709a7290060bf82497
BUG/MINOR: jit: don't rely on USE flag to detect support

Since ea68d36 we show whether JIT is enabled, based on the USE-flag
(USE_PCRE_JIT). This is too naive; libpcre may be built without JIT
support (which is the default).

Fix this by calling pcre_config(), which has the accurate information
we are looking for.

Example of a libpcre without JIT support after this patch:
> ./haproxy -vv | grep PCRE
>   OPTIONS = USE_STATIC_PCRE=1 USE_PCRE_JIT=1
> Built with PCRE version : 8.32 2012-11-30
> PCRE library supports JIT : no (libpcre build without JIT?)
src/haproxy.c