forked from laruence/yar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.w32
27 lines (21 loc) · 990 Bytes
/
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
// If your extension references something external, use ARG_WITH
// ARG_WITH("yar", "for yar support", "no");
// Otherwise, use ARG_ENABLE
// ARG_ENABLE("yar", "enable yar support", "no");
ARG_ENABLE("yar", "enable yar support", "no");
if (PHP_YAR != "no") {
if (CHECK_LIB("libcurl_a.lib;libcurl.lib", "yar") &&
CHECK_HEADER_ADD_INCLUDE("curl/easy.h", "CFLAGS_YAR")) {
ADD_EXTENSION_DEP("yar", "json");
ADD_FLAG("CFLAGS_YAR", "/I " + configure_module_dirname);
ADD_FLAG("CFLAGS_YAR", "/D CURL_STATICLIB");
EXTENSION("yar", "yar.c yar_server.c yar_client.c yar_request.c yar_response.c yar_exception.c yar_packager.c yar_protocol.c yar_transport.c");
ADD_SOURCES(configure_module_dirname + "\\packagers", "php.c json.c msgpack.c", "yar");
ADD_SOURCES(configure_module_dirname + "\\transports", "curl.c socket.c", "yar");
AC_DEFINE("HAVE_YAR", 1, "Have Yar Support");
} else {
WARNING("yar not enabled, libs or headers not found");
}
}