Commit b4902bfd authored by Federico G. Schwindt's avatar Federico G. Schwindt

Use AC_COMPILE_IFELSE

AC_PREPROC_IFELSE is frowned upon.  Take into account installations
outside the compiler's default search path.
parent f540a812
......@@ -159,7 +159,9 @@ AC_ARG_ENABLE(pcre-jit,
[enable_pcre_jit=yes])
if test "$enable_pcre_jit" = yes; then
AC_MSG_CHECKING(for PCRE JIT usability)
AC_PREPROC_IFELSE(
save_CFLAGS="${CFLAGS}"
CFLAGS="${PCRE_CFLAGS}"
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[#include "pcre.h"
#if PCRE_MAJOR != 8 || PCRE_MINOR < 32
#error no jit
......@@ -169,6 +171,7 @@ if test "$enable_pcre_jit" = yes; then
],
[AC_MSG_RESULT(no)]
)
CFLAGS="${save_CFLAGS}"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment