mirror of
https://github.com/php/php-src.git
synced 2026-04-28 02:33:17 +02:00
8d3f8ca12a
The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore.
25 lines
1.0 KiB
JavaScript
25 lines
1.0 KiB
JavaScript
// vim:ft=javascript
|
|
|
|
ARG_WITH("curl", "cURL support", "no");
|
|
|
|
if (PHP_CURL != "no") {
|
|
if (CHECK_LIB("libcurl_a.lib;libcurl.lib", "curl", PHP_CURL) &&
|
|
CHECK_HEADER_ADD_INCLUDE("curl/easy.h", "CFLAGS_CURL") &&
|
|
SETUP_OPENSSL("curl", PHP_CURL) > 0 &&
|
|
CHECK_LIB("winmm.lib", "curl", PHP_CURL) &&
|
|
CHECK_LIB("wldap32.lib", "curl", PHP_CURL) &&
|
|
(((PHP_ZLIB=="no") && (CHECK_LIB("zlib_a.lib;zlib.lib", "curl", PHP_CURL))) ||
|
|
(PHP_ZLIB_SHARED && CHECK_LIB("zlib.lib", "curl", PHP_CURL)) || (PHP_ZLIB == "yes" && (!PHP_ZLIB_SHARED)))
|
|
) {
|
|
EXTENSION("curl", "interface.c multi.c share.c curl_file.c");
|
|
AC_DEFINE('HAVE_CURL', 1, 'Have cURL library');
|
|
AC_DEFINE('HAVE_CURL_SSL', 1, 'Have SSL suppurt in cURL');
|
|
AC_DEFINE('HAVE_CURL_EASY_STRERROR', 1, 'Have curl_easy_strerror in cURL');
|
|
AC_DEFINE('HAVE_CURL_MULTI_STRERROR', 1, 'Have curl_multi_strerror in cURL');
|
|
ADD_FLAG("CFLAGS_CURL", "/D CURL_STATICLIB");
|
|
// TODO: check for curl_version_info
|
|
} else {
|
|
WARNING("curl not enabled; libraries and headers not found");
|
|
}
|
|
}
|