add CURLOPT_HTTP09_ALLOWED
[m6w6/ext-http] / autoconf / pecl / libevent.m4
1
2 AC_DEFUN([PECL_CHECK_LIBEVENT], [
3 PECL_CHECK_PKGCONFIG(libevent, [$1])
4 if test -n "$PECL_CHECKED_VERSION(libevent)"; then
5 PECL_HAVE_VERSION(libevent, 2.0, [
6 PECL_DEFINE([HAVE_LIBEVENT2])
7 ], [ ])
8 ifelse([$2],,,[PECL_HAVE_VERSION(libevent, [$2])])
9 AC_CHECK_FUNC(event_base_new,,[
10 AC_DEFINE([event_base_new], [event_init], [missing event_base_new() in libevent1])
11 ])
12 AC_CHECK_FUNC(event_assign,,[
13 AC_DEFINE([event_assign(e, b, s, a, cb, d)], [do {\
14 event_set(e, s, a, cb, d); \
15 event_base_set(b, e);\
16 } while(0)], [missing event_assign() in libevent1])
17 ])
18 fi
19 ])