summaryrefslogtreecommitdiff
path: root/sapi/cgi/config.w32
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-12-02 23:17:04 +0000
committerWez Furlong <wez@php.net>2003-12-02 23:17:04 +0000
commit05b9b20ed8e2f98b3fb71a227e49e11bdf7b9c6b (patch)
tree70b88eab212d192b86f10a5dedfcedb92785f840 /sapi/cgi/config.w32
parent30b631d9f613e1644123e9cea0285ff1f7278b08 (diff)
downloadphp-git-05b9b20ed8e2f98b3fb71a227e49e11bdf7b9c6b.tar.gz
Add new (optional!) win32 build infrastructure.
Will follow up to internals@ shortly.
Diffstat (limited to 'sapi/cgi/config.w32')
-rw-r--r--sapi/cgi/config.w3225
1 files changed, 25 insertions, 0 deletions
diff --git a/sapi/cgi/config.w32 b/sapi/cgi/config.w32
new file mode 100644
index 0000000000..d42537297f
--- /dev/null
+++ b/sapi/cgi/config.w32
@@ -0,0 +1,25 @@
+// vim:ft=javascript
+// $Id$
+
+ARG_ENABLE('cgi', 'Build CGI version of PHP', 'yes');
+ARG_ENABLE('fastcgi', 'Build FastCGI support into CGI binary', 'yes');
+ARG_ENABLE('path-info-check',
+ 'If this is disabled, paths such as /info.php/test?a=b will fail to work', 'yes');
+
+ARG_ENABLE("force-cgi-redirect", "Enable the security check for internal \
+server redirects. You should use this if you are running the CGI \
+version with Apache.", "yes");
+
+AC_DEFINE("FORCE_CGI_REDIRECT", PHP_FORCE_CGI_REDIRECT == "yes" ? 1 : 0, "CGI redirect mode");
+AC_DEFINE("ENABLE_PATHINFO_CHECK", PHP_PATH_INFO_CHECK == "yes" ? 1 : 0, "Pathinfo check");
+
+if (PHP_CGI == "yes") {
+ AC_DEFINE('PHP_FASTCGI', PHP_FASTCGI == "yes" ? 1 : 0);
+ if (PHP_FASTCGI == "yes") {
+ SAPI('cgi', 'cgi_main.c getopt.c', 'php-cgi.exe', '-Isapi/cgi/libfcgi/include /D FCGI_STATIC');
+ ADD_SOURCES('sapi/cgi/libfcgi', 'fcgi_stdio.c fcgiapp.c os_win32.c', 'cgi');
+ ADD_FLAG('LIBS_CGI', 'ws2_32.lib kernel32.lib advapi32.lib');
+ } else {
+ SAPI('cgi', 'cgi_main.c getopt.c', 'php-cgi.exe');
+ }
+}