[master] b4902bf Use AC_COMPILE_IFELSE
Federico G. Schwindt
fgsch at lodoss.net
Thu Nov 12 02:52:43 CET 2015
commit b4902bfdf779da2d759d9e01ff15628af3659a85
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Thu Nov 12 01:22:18 2015 +0000
Use AC_COMPILE_IFELSE
AC_PREPROC_IFELSE is frowned upon. Take into account installations
outside the compiler's default search path.
diff --git a/configure.ac b/configure.ac
index c8c2064..d56169f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
More information about the varnish-commit
mailing list