Skip to content

Commit

Permalink
Add PCRE Headers test in config.m4
Browse files Browse the repository at this point in the history
  • Loading branch information
juliens committed Dec 12, 2012
1 parent dac96c5 commit 281f750
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config.m4
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,16 @@
PHP_ARG_ENABLE(AOP, whether to enable AOP support, PHP_ARG_ENABLE(AOP, whether to enable AOP support,
[ --enable-AOP 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 if test "$PHP_AOP" = "yes"; then
AC_DEFINE(HAVE_AOP, 1, [aop]) AC_DEFINE(HAVE_AOP, 1, [aop])
PHP_NEW_EXTENSION(aop, aop.c Lexer.c aop_joinpoint.c, $ext_shared) PHP_NEW_EXTENSION(aop, aop.c Lexer.c aop_joinpoint.c, $ext_shared)
Expand Down

0 comments on commit 281f750

Please sign in to comment.