Exchange the Mongrel parser with the Mongrel2 parser because of licensing issues
[mistral.git] / config.m4
blob158d3be159a7fe4b6d53b109bc327512edec41de
1 dnl $Id$
2 dnl config.m4 for extension mistral
3 dnl Comments in this file start with the string 'dnl'.
5 PHP_ARG_WITH(libev, for libev support,
6 dnl Make sure that the comment is aligned:
7     [  --with-libev[=DIR]   Include libev support])
9 dnl if test "$PHP_LIBEV" != "no"; then
10         AC_MSG_CHECKING(for libev install directory)
11         for i in $PHP_LIBEV /usr /usr/local; do
12                 if test -r $i/include/libev/ev.h; then
13                         LIBEV_INC_DIR=$i/include/libev
14                 elif test -r $i/include/ev.h; then
15                         LIBEV_INC_DIR=$i/include
16                 fi
18                 if test -r $i/lib64/libev.so; then
19                         LIBEV_DIR=$i/lib64
20                 elif test -r $i/lib/libev.so; then
21                         LIBEV_DIR=$i/lib
22                 fi
23         done
24         
25         AC_MSG_RESULT($LIBEV_DIR)
26         PHP_ADD_INCLUDE($LIBEV_INC_DIR)
28         PHP_SUBST(MISTRAL_SHARED_LIBADD)
29         PHP_ADD_LIBRARY_WITH_PATH(ev, $LIBEV_DIR, MISTRAL_SHARED_LIBADD)
31         AC_DEFINE(HAVE_LIBEV,1,[Whether you have libev])
32         
33         PHP_NEW_EXTENSION(mistral, mistral.c http11_parser.c, $ext_shared)
34 dnl fi