xref: /php-src/sapi/apache2handler/config.w32 (revision 1bdf9aa3)
1// vim:ft=javascript
2
3ARG_ENABLE('apache2handler', 'Build Apache 2 handler', 'no');
4ARG_ENABLE('apache2-4handler', 'Build Apache 2 handler (alias for --enable--apache2handler)', 'no');
5
6if(PHP_APACHE2_4HANDLER != "no" && PHP_APACHE2HANDLER == "no") {
7	PHP_APACHE2HANDLER="yes";
8}
9
10if (PHP_APACHE2HANDLER != "no") {
11	if (PHP_ZTS == "no") {
12		WARNING("Apache module requires an --enable-zts build of PHP on windows");
13	} else if (CHECK_HEADER_ADD_INCLUDE("httpd.h", "CFLAGS_APACHE2HANDLER", PHP_PHP_BUILD + "\\include\\apache2_4") &&
14			CHECK_LIB("libhttpd.lib", "apache2handler", PHP_PHP_BUILD + "\\lib\\apache2_4") &&
15			CHECK_LIB("libapr-1.lib", "apache2handler", PHP_PHP_BUILD + "\\lib\\apache2_4") &&
16			CHECK_LIB("libaprutil-1.lib", "apache2handler", PHP_PHP_BUILD + "\\lib\\apache2_4")
17			) {
18		SAPI('apache2handler', 'mod_php.c sapi_apache2.c apache_config.c php_functions.c',
19				'php' + PHP_VERSION + 'apache2_4.dll',
20				'/D PHP_APACHE2_EXPORTS /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1');
21	} else {
22		WARNING("Could not find Apache libraries/headers");
23	}
24}
25