forked from laruence/yac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.w32
28 lines (20 loc) · 1.22 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
// $Id$
// vim:ft=javascript
ARG_ENABLE("yac", "enable yac support", "no");
if (PHP_YAC != "no") {
if( CHECK_HEADER_ADD_INCLUDE("fastlz.h", "CFLAGS_YAC", PHP_YAC + ";" + configure_module_dirname + "\\compressor\\fastlz") &&
CHECK_HEADER_ADD_INCLUDE("yac_serializer.h", "CFLAGS_YAC", PHP_YAC + ";" + configure_module_dirname + "\\serializer") &&
CHECK_HEADER_ADD_INCLUDE("yac_storage.h", "CFLAGS_YAC", PHP_YAC + ";" + configure_module_dirname + "\\storage") &&
CHECK_HEADER_ADD_INCLUDE("yac_allocator.h", "CFLAGS_YAC", PHP_YAC + ";" + configure_module_dirname + "\\storage\\allocator")) {
EXTENSION("yac", "yac.c");
ADD_SOURCES(configure_module_dirname + "\\compressor\\fastlz", "fastlz.c", "yac");
ADD_SOURCES(configure_module_dirname + "\\serializer", "php.c", "yac");
ADD_SOURCES(configure_module_dirname + "\\storage", "yac_storage.c", "yac");
ADD_SOURCES(configure_module_dirname + "\\storage\\allocator", "yac_allocator.c", "yac");
ADD_SOURCES(configure_module_dirname + "\\storage\\allocator\\allocators", "createfilemapping.c", "yac");
AC_DEFINE('HAVE_YAC', 1, 'Have yac library');
ADD_FLAG("CFLAGS_YAC", ' /I "' + configure_module_dirname + '" ');
} else {
WARNING("yac not enabled, headers not found");
}
}