mirror of
https://github.com/php/php-src.git
synced 2026-03-27 17:52:16 +01:00
If no php_build dir is specified, then look for either of the two "standard" things in reasonable locations. Allow CHECK_LIB to search for the "same" library using a ; separated list of alternatives. Tweak nsapi config and remove redundant or unused flags. Add ZTS checks for both isapi and nsapi configs.
27 lines
764 B
JavaScript
27 lines
764 B
JavaScript
// vim:ft=javascript
|
|
// $Id$
|
|
|
|
ARG_ENABLE('nsapi', 'Build NSAPI for Netscape/iPlanet/SunONE webservers', 'no');
|
|
|
|
ARG_WITH('nsapi-includes', 'Where to find NSAPI headers', null);
|
|
ARG_WITH('nsapi-libs', 'Where to find NSAPI libraries', null);
|
|
|
|
if (PHP_NSAPI != "no") {
|
|
|
|
if (PHP_ZTS == "no") {
|
|
ERROR("NSAPI module requires an --enable-zts build of PHP");
|
|
}
|
|
|
|
if (!CHECK_HEADER_ADD_INCLUDE("nsapi.h", "CFLAGS_NSAPI",
|
|
PHP_NSAPI + ';' + PHP_NSAPI_INCLUDES)) {
|
|
ERROR("Could not find NSAPI headers");
|
|
}
|
|
|
|
if (!CHECK_LIB("ns-httpd40.lib;ns-httpd36.lib;ns-httpd35.lib;ns-httpd30.lib",
|
|
"nsapi", PHP_NSAPI + ";" + PHP_NSAPI_LIBS)) {
|
|
ERROR("Could not find NSAPI libraries");
|
|
}
|
|
|
|
SAPI('nsapi', 'nsapi.c', 'php' + PHP_VERSION + 'nsapi.dll', '/D XP_WIN32 ');
|
|
}
|