// vim:ft=javascript
// $Id: config.w32 259731 2008-05-14 03:13:17Z auroraeosrose $

ARG_ENABLE('isapi', 'Build ISAPI version of PHP', 'no');

if (PHP_ISAPI == "yes") {
	if (PHP_ZTS == "no") {
		WARNING("ISAPI module requires an --enable-zts build of PHP");
	} else {
		SAPI('isapi', 'php5isapi.c', 'php' + PHP_VERSION + 'isapi.dll', '/D PHP5ISAPI_EXPORTS');
		if (X64) {
			ADD_FLAG('LDFLAGS_ISAPI', '/DEF:sapi\\isapi\\php5isapi.def sapi\\isapi\\x64\\movit.lib');
		} else {
			ADD_FLAG('LDFLAGS_ISAPI', '/DEF:sapi\\isapi\\php5isapi.def');
		}		
	}
}