-
Notifications
You must be signed in to change notification settings - Fork 323
/
config.w32
50 lines (41 loc) · 1.86 KB
/
config.w32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// vim:ft=javascript
ARG_ENABLE('memcached', 'libmemcached extension', 'no');
ARG_ENABLE('memcached-session', 'whether to enable memcached session handler support', 'no');
ARG_ENABLE('memcached-igbinary', 'whether to enable memcached igbinary serializer support', 'no');
ARG_ENABLE('memcached-json', 'whether to enable memcached json serializer support', 'no');
ARG_ENABLE('memcached-msgpack', 'whether to enable memcached msgpack serializer support', 'no');
if (PHP_MEMCACHED == "yes") {
if (!CHECK_LIB("memcached.lib;libmemcached.lib", "memcached", PHP_MEMCACHED)) {
ERROR("memcached: library 'memcached' not found");
}
if (!CHECK_HEADER_ADD_INCLUDE("libmemcached/memcached.h", "CFLAGS_MEMCACHED")) {
ERROR("memcached: header 'libmemcached/memcached.h' not found");
}
if (PHP_MEMCACHED_JSON != "no"){
AC_DEFINE("HAVE_JSON_API",1);
}
var memcached_extra_src = "";
if (PHP_MEMCACHED_SESSION != "no"){
AC_DEFINE("HAVE_MEMCACHED_SESSION",1);
ADD_EXTENSION_DEP("memcached", "session", true)
memcached_extra_src += " php_memcached_session.c";
}
if (PHP_MEMCACHED_IGBINARY != "no"){
AC_DEFINE("HAVE_MEMCACHED_IGBINARY",1);
ADD_EXTENSION_DEP("memcached", "igbinary", true);
if (!CHECK_HEADER_ADD_INCLUDE("igbinary.h", "CFLAGS_MEMCACHED")) {
ERROR("memcached: header 'igbinary.h' not found");
}
}
if (PHP_MEMCACHED_MSGPACK != "no"){
AC_DEFINE("HAVE_MEMCACHED_MSGPACK",1);
ADD_EXTENSION_DEP("memcached", "msgpack", true);
if (!CHECK_HEADER_ADD_INCLUDE("php_msgpack.h", "CFLAGS_MEMCACHED")) {
ERROR("memcached: header 'php_msgpack.h' not found");
}
}
EXTENSION("memcached", "php_memcached.c php_libmemcached_compat.c g_fmt.c"+memcached_extra_src, null, " /DHAVE_SSIZE_T");
ADD_SOURCES(configure_module_dirname+"\\fastlz", "fastlz.c", "memcached");
AC_DEFINE("HAVE_MEMCACHED", 1, "memcached support");
AC_DEFINE("MEMCACHED_EXPORTS", 1)
}