forked from johnj/pecl-oauth
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.w32
21 lines (19 loc) · 886 Bytes
/
config.w32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// $Id: config.w32,v 1.1 2009/04/19 13:18:58 pajoye Exp $
// vim:ft=javascript
ARG_WITH("oauth", "oAuth support", "no");
if (PHP_CURL != "no") {
if (CHECK_LIB("libcurl_a.lib;libcurl.lib", "oauth", PHP_OAUTH) &&
CHECK_HEADER_ADD_INCLUDE("curl/easy.h", "CFLAGS_OAUTH") &&
CHECK_LIB("ssleay32.lib", "oauth", PHP_OAUTH) &&
CHECK_LIB("libeay32.lib", "oauth", PHP_OAUTH)
&& CHECK_LIB("winmm.lib", "oauth", PHP_OAUTH)
&& CHECK_LIB("wldap32.lib", "oauth", PHP_OAUTH)
&& (((PHP_ZLIB=="no") && (CHECK_LIB("zlib_a.lib", "oauth", PHP_OAUTH) || CHECK_LIB("zlib.lib", "oauth", PHP_OAUTH))) ||
(PHP_ZLIB_SHARED && CHECK_LIB("zlib.lib", "oauth", PHP_OAUTH)) || (PHP_ZLIB == "yes" && (!PHP_ZLIB_SHARED)))
) {
EXTENSION("oauth", "oauth.c", true);
ADD_FLAG("CFLAGS_OAUTH", "/D CURL_STATICLIB");
} else {
WARNING("oauth not enabled; libraries and headers not found");
}
}