Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions ext/curl/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,18 @@ if (PHP_CURL != "no") {
(ver_num <= parseInt("0x073b00") || ver_num > parseInt("0x073b00") &&
CHECK_LIB("normaliz.lib", "curl", PHP_CURL) &&
CHECK_LIB("libssh2.lib", "curl", PHP_CURL) &&
CHECK_LIB("nghttp2.lib", "curl", PHP_CURL) &&
CHECK_LIB("brotlidec.lib", "curl", PHP_CURL) &&
CHECK_LIB("brotlicommon.lib", "curl", PHP_CURL) &&
CHECK_LIB("libzstd.lib", "curl", PHP_CURL))
CHECK_LIB("nghttp2.lib", "curl", PHP_CURL))
) {
if (!(CHECK_HEADER_ADD_INCLUDE("brotli/decode.h", "CFLAGS_CURL") &&
CHECK_LIB("brotlidec.lib;brotlidec-static.lib", "curl", PHP_CURL) &&
CHECK_LIB("brotlicommon.lib;brotlicommon-static.lib", "curl", PHP_CURL)
)) {
WARNING("brotli in curl not enabled; libraries or headers not found");
}
if (!(CHECK_LIB("libzstd.lib;libzstd_a.lib", "curl", PHP_CURL)
)) {
WARNING("zstd in curl not enabled; library not found");
}
EXTENSION("curl", "interface.c multi.c share.c curl_file.c");
AC_DEFINE('HAVE_CURL', 1, 'Have cURL library');
ADD_FLAG("CFLAGS_CURL", "/D CURL_STATICLIB /D PHP_CURL_EXPORTS=1");
Expand Down
Loading