mirror of
https://github.com/php-win-ext/phpredis.git
synced 2026-03-24 00:52:16 +01:00
reworked config.w32
This commit is contained in:
30
config.w32
30
config.w32
@@ -2,20 +2,30 @@
|
||||
|
||||
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 support", "no");
|
||||
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_IGBINARY != "no") {
|
||||
sources += " igbinary\\igbinary.c igbinary\\hash_si.c igbinary\\hash_function.c";
|
||||
}
|
||||
EXTENSION("redis", "redis.c library.c redis_array_impl.c redis_array.c");
|
||||
AC_DEFINE("HAVE_REDIS", 1);
|
||||
ADD_FLAG("CFLAGS_REDIS", ' /D PHP_EXPORTS=1 ');
|
||||
|
||||
if (PHP_REDIS_SESSION != "no") {
|
||||
AC_DEFINE('PHP_SESSION', 1);
|
||||
sources += " redis_session.c";
|
||||
ADD_SOURCES(configure_module_dirname, "redis_session.c", "redis");
|
||||
ADD_EXTENSION_DEP("redis", "session");
|
||||
ADD_FLAG("CFLAGS_REDIS", ' /D PHP_SESSION=1 ');
|
||||
AC_DEFINE("HAVE_REDIS_SESSION", 1);
|
||||
}
|
||||
|
||||
if (PHP_REDIS_IGBINARY != "no") {
|
||||
if (CHECK_HEADER_ADD_INCLUDE("igbinary.h", "CFLAGS_REDIS", configure_module_dirname + "\\..\\igbinary")) {
|
||||
|
||||
ADD_EXTENSION_DEP("redis", "igbinary");
|
||||
AC_DEFINE("HAVE_REDIS_IGBINARY", 1);
|
||||
} else {
|
||||
WARNING("redis igbinary support not enabled");
|
||||
}
|
||||
}
|
||||
|
||||
AC_DEFINE("PHP_EXPORTS", 1);
|
||||
EXTENSION("redis", sources);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user