diff --git a/Makefile b/Makefile index f2ac3730f..68e2ff81c 100644 --- a/Makefile +++ b/Makefile @@ -562,6 +562,7 @@ endif # JIT PCRE ifneq ($(USE_PCRE_JIT),) OPTIONS_CFLAGS += -DUSE_PCRE_JIT +BUILD_OPTIONS += $(call ignore_implicit,USE_PCRE_JIT) endif endif diff --git a/src/haproxy.c b/src/haproxy.c index dd1adcd75..15c14e302 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -289,6 +289,20 @@ void display_build_opts() #else /* USE_OPENSSL */ printf("Built without OpenSSL support (USE_OPENSSL not set)\n"); #endif + +#ifdef USE_PCRE + printf("Built with PCRE version : %s", pcre_version()); + printf("\nPCRE library supports JIT : " +#ifndef USE_PCRE_JIT + "no (USE_PCRE_JIT not set)" +#else + "yes" +#endif + "\n"); +#else + printf("Built without PCRE support (using libc's regex instead)\n"); +#endif + putchar('\n'); list_pollers(stdout);