rem: if (nice.length + arg.length < 2045) { nice += ' "' + arg + '"'; } 
add: nice += ' "' + arg + '"'; 
context: function conf_process_args(){	var i, j;	var configure_help_mode = false;	var analyzed = false;	var nice = "cscript /nologo configure.js ";	var disable_all = false;		args = WScript.Arguments;	for (i = 0; i < args.length; i++) {		arg = args(i);		if (nice.length + arg.length < 2045) {	// The max string length for CONFIGURE_COMMAND is 2048 in VC6			nice += ' "' + arg + '"';		}		if (arg == "--help") {			configure_help_mode = true;			break;		}		if (arg == "--disable-all") {			disable_all = true;			continue;		}		// If it is --foo=bar, split on the equals sign		arg = arg.split("=", 2);		argname = arg[0];		if (arg.length > 1) {			argval = arg[1];		} else {			argval = null;		}		// Find the arg		found = false;		for (j = 0; j < configure_args.length; j++) {			if (argname == configure_args[j].imparg || argname == configure_args[j].arg) {				found = true;				arg = configure_args[j];				arg.seen = true;				analyzed = analyze_arg(argval);				shared = analyzed[0];				argval = analyzed[1];				if (argname == arg.imparg) {					/* we matched the implicit, or default arg */					if (argval == null) {						argval = arg.defval;					}				} else {					/* we matched the non-default arg */					if (argval == null) {						argval = arg.defval == "no" ? "yes" : "no";					}				}								arg.argval = argval;				eval("PHP_" + arg.symval + " = argval;");				eval("PHP_" + arg.symval + "_SHARED = shared;");				break;			}		}		if (!found) {			STDERR.WriteLine("Unknown option " + argname + "; please try configure.js --help for a list of valid options");			WScript.Quit(2);		}	}	if (configure_help_mode) {		STDOUT.WriteLine(word_wrap_and_indent(0,"Options that enable extensions and SAPI will accept \'yes' or 'no' as a parameter.  They also accept 'shared' \as a synonym for 'yes' and request a shared build of that \module.  Not all modules can be built as shared modules; \configure will display [shared] after the module name if \can be built that way. \"			));		STDOUT.WriteBlankLines(1);		// Measure width to pretty-print the output		max_width = 0;		for (i = 0; i < configure_args.length; i++) {			arg = configure_args[i];			if (arg.arg.length > max_width)				max_width = arg.arg.length;		}		for (i = 0; i < configure_args.length; i++) {			arg = configure_args[i];			n = max_width - arg.arg.length;			pad = "   ";			for (j = 0; j < n; j++) {				pad += " ";			}			STDOUT.WriteLine("  " + arg.arg + pad + word_wrap_and_indent(max_width + 5, arg.helptext));		}		WScript.Quit(1);	}	var snapshot_build_exclusions = new Array(		'debug', 'crt-debug', 'lzf-better-compression',		 'php-build', 'snapshot-template',		 'pcre-regex', 'fastcgi', 'force-cgi-redirect',		 'path-info-check', 'zts', 'ipv6', 'memory-limit'		);	var force;	// Now set any defaults we might have missed out earlier	for (i = 0; i < configure_args.length; i++) {		arg = configure_args[i];		if (arg.seen)			continue;		analyzed = analyze_arg(arg.defval);		shared = analyzed[0];		argval = analyzed[1];				// Don't trust a default "yes" answer for a non-core module		// in a snapshot build		if (PHP_SNAPSHOT_BUILD != "no" && argval == "yes" && !shared) {			force = true;			for (j = 0; j < snapshot_build_exclusions.length; j++) {				if (snapshot_build_exclusions[j] == arg.optname) {					force = false;					break;				}			}			if (force) {				/* now check if it is a core module */				force = false;				for (j = 0; j < core_module_list.length; j++) {					if (core_module_list[j] == arg.optname) {						force = true;						break;					}				}				if (!force) {					STDOUT.WriteLine("snapshot: forcing " + arg.arg + " shared");					shared = true;				}			}		}				if (PHP_SNAPSHOT_BUILD != "no" && argval == "no") {			force = true;			for (j = 0; j < snapshot_build_exclusions.length; j++) {				if (snapshot_build_exclusions[j] == arg.optname) {					force = false;					break;				}			}			if (force) {				STDOUT.WriteLine("snapshot: forcing " + arg.optname + " on");				argval = "yes";				shared = true;			}		}		if (disable_all) {			force = true;			for (j = 0; j < snapshot_build_exclusions.length; j++) {				if (snapshot_build_exclusions[j] == arg.optname) {					force = false;					break;				}			}			if (force) {				argval = "no";				shared = false;			}		}		eval("PHP_" + arg.symval + " = argval;");		eval("PHP_" + arg.symval + "_SHARED = shared;");	}	MFO = FSO.CreateTextFile("Makefile.objects", true);	STDOUT.WriteLine("Saving configure options to config.nice.bat");	var nicefile = FSO.CreateTextFile("config.nice.bat", true);	nicefile.WriteLine(nice);	nicefile.Close();	AC_DEFINE('CONFIGURE_COMMAND', nice);}
meta: 631	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/631/e7aeb7a4c8f8b8eedc990308a9cd6bdb17a55b38/confutils.js/clean/win32/build/confutils.js