Permalink
Browse files

Add PCRE Headers test in config.m4

  • Loading branch information...
1 parent dac96c5 commit 281f750014f4a3fffb7f67956675f01bfa239ab2 @Juliens Juliens committed Dec 12, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 config.m4
View
@@ -1,6 +1,16 @@
PHP_ARG_ENABLE(AOP, whether to enable AOP support,
[ --enable-AOP Enable AOP support])
+ AC_MSG_CHECKING([for PCRE headers location])
+ for i in /usr/include /usr/include/pcre /usr/local/include; do
+ test -f $i/pcre.h && PCRE_INCDIR=$i
+ done
+
+ if test -z "$PCRE_INCDIR"; then
+ AC_MSG_ERROR([Could not find pcre.h in $PHP_PCRE_REGEX])
+ fi
+ AC_MSG_RESULT([$PCRE_INCDIR])
+
if test "$PHP_AOP" = "yes"; then
AC_DEFINE(HAVE_AOP, 1, [aop])
PHP_NEW_EXTENSION(aop, aop.c Lexer.c aop_joinpoint.c, $ext_shared)

0 comments on commit 281f750

Please sign in to comment.