1// vim:ft=javascript 2// $Id$ 3 4ARG_ENABLE('apache2filter', 'Build Apache 2.x filter', 'no'); 5 6if (PHP_APACHE2FILTER != "no") { 7 if (PHP_ZTS == "no") { 8 WARNING("Apache2 module requires an --enable-zts build of PHP on windows"); 9 } else if (CHECK_HEADER_ADD_INCLUDE("httpd.h", "CFLAGS_APACHE2FILTER", PHP_PHP_BUILD + "\\include\\apache2") && 10 CHECK_LIB("libhttpd.lib", "apache2filter", PHP_PHP_BUILD + "\\lib\\apache2") && 11 CHECK_LIB("libapr.lib", "apache2filter", PHP_PHP_BUILD + "\\lib\\apache2") && 12 CHECK_LIB("libaprutil.lib", "apache2filter", PHP_PHP_BUILD + "\\lib\\apache2") 13 ) { 14 SAPI('apache2filter', 'sapi_apache2.c apache_config.c php_functions.c', 15 'php' + PHP_VERSION + 'apache2_filter.dll', 16 '/D PHP_APACHE2_EXPORTS /I win32'); 17 } else { 18 WARNING("Could not find apache2 filter libraries/headers"); 19 } 20} 21 22ARG_ENABLE('apache2-2filter', 'Build Apache 2.2.x filter', 'no'); 23 24if (PHP_APACHE2_2FILTER != "no") { 25 if (PHP_ZTS == "no") { 26 WARNING("Apache2 module requires an --enable-zts build of PHP on windows"); 27 } else if (CHECK_HEADER_ADD_INCLUDE("httpd.h", "CFLAGS_APACHE2_2FILTER", PHP_PHP_BUILD + "\\include\\apache2_2") && 28 CHECK_LIB("libhttpd.lib", "apache2_2filter", PHP_PHP_BUILD + "\\lib\\apache2_2") && 29 CHECK_LIB("libapr-1.lib", "apache2_2filter", PHP_PHP_BUILD + "\\lib\\apache2_2") && 30 CHECK_LIB("libaprutil-1.lib", "apache2_2filter", PHP_PHP_BUILD + "\\lib\\apache2_2") 31 ) { 32 SAPI('apache2_2filter', 'sapi_apache2.c apache_config.c php_functions.c', 33 'php' + PHP_VERSION + 'apache2_2_filter.dll', 34 '/D PHP_APACHE2_EXPORTS /I win32', 35 'sapi\\apache2_2filter'); 36 } else { 37 WARNING("Could not find apache2.2 filter libraries/headers"); 38 } 39} 40