From 331dc79254566ee777f6af7be9232f1f647c9474 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Fri, 19 Dec 2003 20:39:04 +0000 Subject: More things for the new build system. Pi3Web and aolserver build untested (no headers and libs for those here) --- sapi/nsapi/config.w32 | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'sapi/nsapi') diff --git a/sapi/nsapi/config.w32 b/sapi/nsapi/config.w32 index cb5357513c..0a04c4fef5 100644 --- a/sapi/nsapi/config.w32 +++ b/sapi/nsapi/config.w32 @@ -7,20 +7,14 @@ 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", + WARNING("NSAPI module requires an --enable-zts build of PHP"); + } else if (CHECK_HEADER_ADD_INCLUDE("nsapi.h", "CFLAGS_NSAPI", + PHP_NSAPI + ';' + PHP_NSAPI_INCLUDES) && + 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 '); + } else { + WARNING("Could not find NSAPI headers/libraries"); } - - SAPI('nsapi', 'nsapi.c', 'php' + PHP_VERSION + 'nsapi.dll', '/D XP_WIN32 '); } -- cgit v1.2.1