summaryrefslogtreecommitdiff
path: root/sapi/apache2handler/config.w32
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-12-19 18:28:56 +0000
committerWez Furlong <wez@php.net>2003-12-19 18:28:56 +0000
commit7930ddce0af10a22a180e9549049086c9ff6d8b4 (patch)
tree1ed26255b8fb1d353ca77a8926921c004a8a84c7 /sapi/apache2handler/config.w32
parent1402825b3da89552d13bc23a03afb80252a63992 (diff)
downloadphp-git-7930ddce0af10a22a180e9549049086c9ff6d8b4.tar.gz
Make apache2handler build with new build system.
Perhaps also make it build with .dsp system too...
Diffstat (limited to 'sapi/apache2handler/config.w32')
-rw-r--r--sapi/apache2handler/config.w3218
1 files changed, 18 insertions, 0 deletions
diff --git a/sapi/apache2handler/config.w32 b/sapi/apache2handler/config.w32
new file mode 100644
index 0000000000..a409841070
--- /dev/null
+++ b/sapi/apache2handler/config.w32
@@ -0,0 +1,18 @@
+// vim:ft=javascript
+// $Id$
+
+ARG_ENABLE('apache2handler', 'Build Apache 2.x handler', 'no');
+
+if (PHP_APACHE2HANDLER != "no") {
+ if (CHECK_HEADER_ADD_INCLUDE("httpd.h", "CFLAGS_APACHE2HANDLER", PHP_PHP_BUILD + "\\apache2\\include") &&
+ CHECK_LIB("libhttpd.lib", "apache2handler", PHP_PHP_BUILD + "\\apache2\\lib") &&
+ CHECK_LIB("libapr.lib", "apache2handler", PHP_PHP_BUILD + "\\apache2\\lib") &&
+ CHECK_LIB("libaprutil.lib", "apache2handler", PHP_PHP_BUILD + "\\apache2\\lib")
+ ) {
+ SAPI('apache2handler', 'mod_php5.c sapi_apache2.c apache_config.c php_functions.c',
+ 'php' + PHP_VERSION + 'apache2.dll',
+ '/D PHP_APACHE2_EXPORTS /I win32');
+ } else {
+ WARNING("Could not find apache2 libraries/headers");
+ }
+}