Annotation of embedaddon/php/sapi/apache2handler/config.w32, revision 1.1.1.3
1.1 misho 1: // vim:ft=javascript
1.1.1.2 misho 2: // $Id$
1.1 misho 3:
4: ARG_ENABLE('apache2handler', 'Build Apache 2.x handler', 'no');
5:
6: if (PHP_APACHE2HANDLER != "no") {
7: if (PHP_ZTS == "no") {
1.1.1.2 misho 8: WARNING("Apache 2.0 module requires an --enable-zts build of PHP on windows");
1.1 misho 9: } else if (CHECK_HEADER_ADD_INCLUDE("httpd.h", "CFLAGS_APACHE2HANDLER", PHP_PHP_BUILD + "\\include\\apache2") &&
10: CHECK_LIB("libhttpd.lib", "apache2handler", PHP_PHP_BUILD + "\\lib\\apache2") &&
11: CHECK_LIB("libapr.lib", "apache2handler", PHP_PHP_BUILD + "\\lib\\apache2") &&
12: CHECK_LIB("libaprutil.lib", "apache2handler", PHP_PHP_BUILD + "\\lib\\apache2")
13: ) {
14: SAPI('apache2handler', 'mod_php5.c sapi_apache2.c apache_config.c php_functions.c',
15: 'php' + PHP_VERSION + 'apache2.dll',
16: '/D PHP_APACHE2_EXPORTS /I win32');
17: } else {
18: WARNING("Could not find apache2 libraries/headers");
19: }
20: }
21:
22: ARG_ENABLE('apache2-2handler', 'Build Apache 2.2.x handler', 'no');
23:
24: if (PHP_APACHE2_2HANDLER != "no") {
25: if (PHP_ZTS == "no") {
1.1.1.2 misho 26: WARNING("Apache 2.2 module requires an --enable-zts build of PHP on windows");
1.1 misho 27: } else if (CHECK_HEADER_ADD_INCLUDE("httpd.h", "CFLAGS_APACHE2_2HANDLER", PHP_PHP_BUILD + "\\include\\apache2_2") &&
28: CHECK_LIB("libhttpd.lib", "apache2_2handler", PHP_PHP_BUILD + "\\lib\\apache2_2") &&
29: CHECK_LIB("libapr-1.lib", "apache2_2handler", PHP_PHP_BUILD + "\\lib\\apache2_2") &&
30: CHECK_LIB("libaprutil-1.lib", "apache2_2handler", PHP_PHP_BUILD + "\\lib\\apache2_2")
31: ) {
32: SAPI('apache2_2handler', 'mod_php5.c sapi_apache2.c apache_config.c php_functions.c',
33: 'php' + PHP_VERSION + 'apache2_2.dll',
34: '/D PHP_APACHE2_EXPORTS /I win32',
35: 'sapi\\apache2_2handler');
36: } else {
37: WARNING("Could not find apache2.2 libraries/headers");
38: }
39: }
1.1.1.2 misho 40:
1.1.1.3 ! misho 41: ARG_ENABLE('apache2-4handler', 'Build Apache 2.4.x handler', 'no');
! 42: if (PHP_APACHE2_4HANDLER != "no") {
1.1.1.2 misho 43: if (PHP_ZTS == "no") {
1.1.1.3 ! misho 44: WARNING("Apache 2.4 module requires an --enable-zts build of PHP on windows");
! 45: } else if (CHECK_HEADER_ADD_INCLUDE("httpd.h", "CFLAGS_APACHE2_4HANDLER", PHP_PHP_BUILD + "\\include\\apache2_4") &&
! 46: CHECK_LIB("libhttpd.lib", "apache2_4handler", PHP_PHP_BUILD + "\\lib\\apache2_4") &&
! 47: CHECK_LIB("libapr-1.lib", "apache2_4handler", PHP_PHP_BUILD + "\\lib\\apache2_4") &&
! 48: CHECK_LIB("libaprutil-1.lib", "apache2_4handler", PHP_PHP_BUILD + "\\lib\\apache2_4")
1.1.1.2 misho 49: ) {
1.1.1.3 ! misho 50: SAPI('apache2_4handler', 'mod_php5.c sapi_apache2.c apache_config.c php_functions.c',
! 51: 'php' + PHP_VERSION + 'apache2_4.dll',
1.1.1.2 misho 52: '/D PHP_APACHE2_EXPORTS /I win32',
53: 'sapi\\apache2handler');
54: } else {
1.1.1.3 ! misho 55: WARNING("Could not find apache 2.4 libraries/headers");
1.1.1.2 misho 56: }
57: }
58:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>