mirror of
https://github.com/php-win-ext/phpredis.git
synced 2026-03-24 00:52:16 +01:00
This brings the W32 compilation fixes done by @char101 up to date and allows building of php_redis.dll with VC11 on Win32 (allows for a php5.5 version).
22 lines
683 B
JavaScript
22 lines
683 B
JavaScript
// vim: ft=javascript:
|
|
|
|
ARG_ENABLE("redis", "whether to enable redis support", "yes");
|
|
ARG_ENABLE("redis-session", "whether to enable sessions", "yes");
|
|
ARG_ENABLE("redis-igbinary", "whether to enable igbinary serializer support", "no");
|
|
|
|
if (PHP_REDIS != "no") {
|
|
var sources = "redis.c library.c redis_array.c redis_array_impl.c";
|
|
if (PHP_REDIS_SESSION != "no") {
|
|
AC_DEFINE('PHP_SESSION', 1);
|
|
sources += " redis_session.c";
|
|
}
|
|
|
|
if (PHP_REDIS_IGBINARY != "no") {
|
|
CHECK_HEADER_ADD_INCLUDE("igbinary.h", "CFLAGS_REDIS", "ext\\igbinary");
|
|
AC_DEFINE('HAVE_REDIS_IGBINARY', 1);
|
|
ADD_EXTENSION_DEP('redis', 'igbinary');
|
|
}
|
|
|
|
EXTENSION("redis", sources);
|
|
}
|