forked from expressif/pecl-event-libevent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.w32
19 lines (18 loc) · 741 Bytes
/
config.w32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
ARG_WITH("libevent", "libevent support", "no");
if (PHP_LIBEVENT != "no") {
if (CHECK_HEADER_ADD_INCLUDE("event2/event.h", "CFLAGS_LIBEVENT", PHP_PHP_BUILD + "\\include;" + PHP_LIBEVENT)
&& CHECK_LIB("libevent.lib", "libevent", PHP_PHP_BUILD + "\\lib;" + PHP_LIBEVENT))
{
EXTENSION('libevent', 'libevent.c');
AC_DEFINE('HAVE_LIBEVENT', 1);
if (typeof(PHP_SOCKETS) != "undefined" && PHP_SOCKETS != "no") {
ADD_EXTENSION_DEP("libevent", "sockets");
ADD_FLAG("CFLAGS_LIBEVENT", ' /D HAVE_SOCKETS ');
MESSAGE("\tlibevent sockets support enabled");
} else {
MESSAGE("\tlibevent sockets support not enabled");
}
} else {
WARNING("libevent not enabled; libraries and headers not found");
}
}