2 dnl config.m4 for extension mistral
3 dnl Comments in this file start with the string 'dnl'.
4 dnl If your extension references something external, use with:
6 PHP_ARG_WITH(libev, for libev support,
7 Make sure that the comment is aligned:
8 [ --with-libev[=DIR] Include libev support])
10 dnl if test "$PHP_LIBEV" != "no"; then
11 AC_MSG_CHECKING(for libev install directory)
12 for i in $PHP_LIBEV /usr /usr/local; do
13 if test -r $i/include/libev/ev.h; then
14 LIBEV_INC_DIR=$i/include
17 if test -r $i/lib64/libev.so; then
19 elif test -r $i/lib/libev.so; then
24 AC_MSG_RESULT($LIBEV_DIR)
25 PHP_ADD_INCLUDE($LIBEV_INC_DIR)
27 PHP_SUBST(MISTRAL_SHARED_LIBADD)
28 PHP_ADD_LIBRARY_WITH_PATH(ev, $LIBEV_DIR, MISTRAL_SHARED_LIBADD)
30 AC_DEFINE(HAVE_LIBEV,1,[Whether you have libev])
32 PHP_NEW_EXTENSION(mistral, mistral.c, $ext_shared)