1/* Configure script for libxslt, specific for Windows with Scripting Host.
2 *
3 * This script will configure the libxslt build process and create necessary files.
4 * Run it with an 'help', or an invalid option and it will tell you what options
5 * it accepts.
6 *
7 * March 2002, Igor Zlatkovic <igor@zlatkovic.com>
8 */
9
10/* The source directory, relative to the one where this file resides. */
11var baseDir = "..";
12var srcDirXslt = baseDir + "\\libxslt";
13var srcDirExslt = baseDir + "\\libexslt";
14var srcDirUtils = baseDir + "\\xsltproc";
15/* The directory where we put the binaries after compilation. */
16var binDir = "binaries";
17/* Base name of what we are building. */
18var baseNameXslt = "libxslt";
19var baseNameExslt = "libexslt";
20/* Configure file which contains the version and the output file where
21   we can store our build configuration. */
22var configFile = baseDir + "\\configure.in";
23var versionFile = ".\\config.msvc";
24/* Input and output files regarding the lib(e)xml features. The second
25   output file is there for the compatibility reasons, otherwise it
26   is identical to the first. */
27var optsFileInXslt = srcDirXslt + "\\xsltconfig.h.in";
28var optsFileXslt = srcDirXslt + "\\xsltconfig.h";
29var optsFileInExslt = srcDirExslt + "\\exsltconfig.h.in";
30var optsFileExslt = srcDirExslt + "\\exsltconfig.h";
31/* Version strings for the binary distribution. Will be filled later
32   in the code. */
33var verMajorXslt;
34var verMinorXslt;
35var verMicroXslt;
36var verMajorExslt;
37var verMinorExslt;
38var verMicroExslt;
39var verCvs;
40var useCvsVer = true;
41/* Libxslt features. */
42var withTrio = false;
43var withXsltDebug = true;
44var withMemDebug = false;
45var withDebugger = true;
46var withIconv = true;
47var withZlib = false;
48var withCrypto = true;
49var withModules = false;
50var withLocale = true;
51/* Win32 build options. */
52var dirSep = "\\";
53var compiler = "msvc";
54var cruntime = "/MD";
55var vcmanifest = false;
56var buildDebug = 0;
57var buildStatic = 0;
58var buildPrefix = ".";
59var buildBinPrefix = "";
60var buildIncPrefix = "";
61var buildLibPrefix = "";
62var buildSoPrefix = "";
63var buildInclude = ".";
64var buildLib = ".";
65/* Local stuff */
66var error = 0;
67
68/* Helper function, transforms the option variable into the 'Enabled'
69   or 'Disabled' string. */
70function boolToStr(opt)
71{
72	if (opt == false)
73		return "no";
74	else if (opt == true)
75		return "yes";
76	error = 1;
77	return "*** undefined ***";
78}
79
80/* Helper function, transforms the argument string into the boolean
81   value. */
82function strToBool(opt)
83{
84	if (opt == "0" || opt == "no")
85		return false;
86	else if (opt == "1" || opt == "yes")
87		return true;
88	error = 1;
89	return false;
90}
91
92/* Displays the details about how to use this script. */
93function usage()
94{
95	var txt;
96	txt = "Usage:\n";
97	txt += "  cscript " + WScript.ScriptName + " <options>\n";
98	txt += "  cscript " + WScript.ScriptName + " help\n\n";
99	txt += "Options can be specified in the form <option>=<value>, where the value is\n";
100	txt += "either 'yes' or 'no'.\n\n";
101	txt += "XSLT processor options, default value given in parentheses:\n\n";
102	txt += "  trio:       Enable TRIO string manipulator (" + (withTrio? "yes" : "no")  + ")\n";
103	txt += "  xslt_debug: Enable XSLT debbugging module (" + (withXsltDebug? "yes" : "no")  + ")\n";
104	txt += "  mem_debug:  Enable memory debugger (" + (withMemDebug? "yes" : "no")  + ")\n";
105	txt += "  debugger:   Enable external debugger support (" + (withDebugger? "yes" : "no")  + ")\n";
106	txt += "  iconv:      Use iconv library (" + (withIconv? "yes" : "no")  + ")\n";
107	txt += "  zlib:       Use zlib library (" + (withZlib? "yes" : "no") + ")\n";
108	txt += "  crypto:     Enable Crypto support (" + (withCrypto? "yes" : "no") + ")\n";
109	txt += "  modules:    Enable Module support (" + (withModules? "yes" : "no") + ")\n";
110	txt += "  locale:     Enable Locale support, requires unicode OS support (" + (withLocale? "yes" : "no") + ")\n";
111	txt += "\nWin32 build options, default value given in parentheses:\n\n";
112	txt += "  compiler:   Compiler to be used [msvc|mingw] (" + compiler + ")\n";
113	txt += "  cruntime:   C-runtime compiler option (only msvc) (" + cruntime + ")\n";
114	txt += "  vcmanifest: Embed VC manifest (only msvc) (" + (vcmanifest? "yes" : "no") + ")\n";
115	txt += "  debug:      Build unoptimised debug executables (" + (buildDebug? "yes" : "no")  + ")\n";
116	txt += "  static:     Link xsltproc statically to libxslt (" + (buildStatic? "yes" : "no")  + ")\n";
117	txt += "              Note: automatically enabled if cruntime is not /MD or /MDd\n";
118	txt += "  prefix:     Base directory for the installation (" + buildPrefix + ")\n";
119	txt += "  bindir:     Directory where xsltproc and friends should be installed\n";
120	txt += "              (" + buildBinPrefix + ")\n";
121	txt += "  incdir:     Directory where headers should be installed\n";
122	txt += "              (" + buildIncPrefix + ")\n";
123	txt += "  libdir:     Directory where static and import libraries should be\n";
124	txt += "              installed (" + buildLibPrefix + ")\n";
125	txt += "  sodir:      Directory where shared libraries should be installed\n";
126	txt += "              (" + buildSoPrefix + ")\n";
127	txt += "  include:    Additional search path for the compiler, particularily\n";
128	txt += "              where libxml headers can be found (" + buildInclude + ")\n";
129	txt += "  rinclude:   Additional search path for the resource compiler\n";
130	txt += "  lib:        Additional search path for the linker, particularily\n";
131	txt += "              where libxml library can be found (" + buildLib + ")\n";
132	WScript.Echo(txt);
133}
134
135/* Discovers the version we are working with by reading the apropriate
136   configuration file. Despite its name, this also writes the configuration
137   file included by our makefile. */
138function discoverVersion()
139{
140	var fso, cf, vf, ln, s;
141	fso = new ActiveXObject("Scripting.FileSystemObject");
142	verCvs = "";
143	if (useCvsVer && fso.FileExists("..\\CVS\\Entries")) {
144		cf = fso.OpenTextFile("..\\CVS\\Entries", 1);
145		while (cf.AtEndOfStream != true) {
146			ln = cf.ReadLine();
147			s = new String(ln);
148			if (s.search(/^\/ChangeLog\//) != -1) {
149				iDot = s.indexOf(".");
150				iSlash = s.indexOf("/", iDot);
151				verCvs = "CVS" + s.substring(iDot + 1, iSlash);
152				break;
153			}
154		}
155		cf.Close();
156	}
157	cf = fso.OpenTextFile(configFile, 1);
158	if (compiler == "msvc")
159		versionFile = ".\\config.msvc";
160	else if (compiler == "mingw")
161		versionFile = ".\\config.mingw";
162	vf = fso.CreateTextFile(versionFile, true);
163	vf.WriteLine("# " + versionFile);
164	vf.WriteLine("# This file is generated automatically by " + WScript.ScriptName + ".");
165	vf.WriteBlankLines(1);
166	while (cf.AtEndOfStream != true) {
167		ln = cf.ReadLine();
168		s = new String(ln);
169		if (s.search(/^LIBXSLT_MAJOR_VERSION=/) != -1) {
170			vf.WriteLine(s);
171			verMajorXslt = s.substring(s.indexOf("=") + 1, s.length)
172		} else if(s.search(/^LIBXSLT_MINOR_VERSION=/) != -1) {
173			vf.WriteLine(s);
174			verMinorXslt = s.substring(s.indexOf("=") + 1, s.length)
175		} else if(s.search(/^LIBXSLT_MICRO_VERSION=/) != -1) {
176			vf.WriteLine(s);
177			verMicroXslt = s.substring(s.indexOf("=") + 1, s.length)
178		} else if (s.search(/^LIBEXSLT_MAJOR_VERSION=/) != -1) {
179			vf.WriteLine(s);
180			verMajorExslt = s.substring(s.indexOf("=") + 1, s.length)
181		} else if(s.search(/^LIBEXSLT_MINOR_VERSION=/) != -1) {
182			vf.WriteLine(s);
183			verMinorExslt = s.substring(s.indexOf("=") + 1, s.length)
184		} else if(s.search(/^LIBEXSLT_MICRO_VERSION=/) != -1) {
185			vf.WriteLine(s);
186			verMicroExslt = s.substring(s.indexOf("=") + 1, s.length)
187		}
188	}
189	cf.Close();
190	vf.WriteLine("WITH_TRIO=" + (withTrio? "1" : "0"));
191	vf.WriteLine("WITH_DEBUG=" + (withXsltDebug? "1" : "0"));
192	vf.WriteLine("WITH_MEM_DEBUG=" + (withMemDebug? "1" : "0"));
193	vf.WriteLine("WITH_DEBUGGER=" + (withDebugger? "1" : "0"));
194	vf.WriteLine("WITH_ICONV=" + (withIconv? "1" : "0"));
195	vf.WriteLine("WITH_ZLIB=" + (withZlib? "1" : "0"));
196	vf.WriteLine("WITH_CRYPTO=" + (withCrypto? "1" : "0"));
197	vf.WriteLine("WITH_MODULES=" + (withModules? "1" : "0"));
198	vf.WriteLine("DEBUG=" + (buildDebug? "1" : "0"));
199	vf.WriteLine("STATIC=" + (buildStatic? "1" : "0"));
200	vf.WriteLine("PREFIX=" + buildPrefix);
201	vf.WriteLine("BINPREFIX=" + buildBinPrefix);
202	vf.WriteLine("INCPREFIX=" + buildIncPrefix);
203	vf.WriteLine("LIBPREFIX=" + buildLibPrefix);
204	vf.WriteLine("SOPREFIX=" + buildSoPrefix);
205	if (compiler == "msvc") {
206		vf.WriteLine("INCLUDE=$(INCLUDE);" + buildInclude);
207		vf.WriteLine("LIB=$(LIB);" + buildLib);
208		vf.WriteLine("CRUNTIME=" + cruntime);
209		vf.WriteLine("VCMANIFEST=" + (vcmanifest? "1" : "0"));
210	} else if (compiler == "mingw") {
211		vf.WriteLine("INCLUDE+=;" + buildInclude);
212		vf.WriteLine("LIB+=;" + buildLib);
213	}
214	vf.WriteLine("RINCLUDE=" + resourceInclude);
215	vf.Close();
216}
217
218/* Configures libxslt. This one will generate xsltconfig.h from xsltconfig.h.in
219   taking what the user passed on the command line into account. */
220function configureXslt()
221{
222	var fso, ofi, of, ln, s;
223	fso = new ActiveXObject("Scripting.FileSystemObject");
224	ofi = fso.OpenTextFile(optsFileInXslt, 1);
225	of = fso.CreateTextFile(optsFileXslt, true);
226	while (ofi.AtEndOfStream != true) {
227		ln = ofi.ReadLine();
228		s = new String(ln);
229		if (s.search(/\@VERSION\@/) != -1) {
230			of.WriteLine(s.replace(/\@VERSION\@/,
231				verMajorXslt + "." + verMinorXslt + "." + verMicroXslt));
232		} else if (s.search(/\@LIBXSLT_VERSION_NUMBER\@/) != -1) {
233			of.WriteLine(s.replace(/\@LIBXSLT_VERSION_NUMBER\@/,
234				verMajorXslt*10000 + verMinorXslt*100 + verMicroXslt*1));
235		} else if (s.search(/\@LIBXSLT_VERSION_EXTRA\@/) != -1) {
236			of.WriteLine(s.replace(/\@LIBXSLT_VERSION_EXTRA\@/, verCvs));
237		} else if (s.search(/\@WITH_TRIO\@/) != -1) {
238			of.WriteLine(s.replace(/\@WITH_TRIO\@/, withTrio? "1" : "0"));
239		} else if (s.search(/\@WITH_XSLT_DEBUG\@/) != -1) {
240			of.WriteLine(s.replace(/\@WITH_XSLT_DEBUG\@/, withXsltDebug? "1" : "0"));
241		} else if (s.search(/\@WITH_MEM_DEBUG\@/) != -1) {
242			of.WriteLine(s.replace(/\@WITH_MEM_DEBUG\@/, withMemDebug? "1" : "0"));
243		} else if (s.search(/\@WITH_DEBUGGER\@/) != -1) {
244			of.WriteLine(s.replace(/\@WITH_DEBUGGER\@/, withDebugger? "1" : "0"));
245		} else if (s.search(/\@WITH_MODULES\@/) != -1) {
246			of.WriteLine(s.replace(/\@WITH_MODULES\@/, withModules? "1" : "0"));
247		} else if (s.search(/\@XSLT_LOCALE_XLOCALE\@/) != -1) {
248			of.WriteLine(s.replace(/\@XSLT_LOCALE_XLOCALE\@/, "0"));
249		} else if (s.search(/\@XSLT_LOCALE_WINAPI\@/) != -1) {
250			of.WriteLine(s.replace(/\@XSLT_LOCALE_WINAPI\@/, withLocale? "1" : "0"));
251		} else if (s.search(/\@LIBXSLT_DEFAULT_PLUGINS_PATH\@/) != -1) {
252			of.WriteLine(s.replace(/\@LIBXSLT_DEFAULT_PLUGINS_PATH\@/, "NULL"));
253		} else
254			of.WriteLine(ln);
255	}
256	ofi.Close();
257	of.Close();
258}
259
260/* Configures libexslt. This one will generate exsltconfig.h from exsltconfig.h.in
261   taking what the user passed on the command line into account. */
262function configureExslt()
263{
264	var fso, ofi, of, ln, s;
265	fso = new ActiveXObject("Scripting.FileSystemObject");
266	ofi = fso.OpenTextFile(optsFileInExslt, 1);
267	of = fso.CreateTextFile(optsFileExslt, true);
268	while (ofi.AtEndOfStream != true) {
269		ln = ofi.ReadLine();
270		s = new String(ln);
271		if (s.search(/\@VERSION\@/) != -1) {
272			of.WriteLine(s.replace(/\@VERSION\@/,
273				verMajorExslt + "." + verMinorExslt + "." + verMicroExslt));
274		} else if (s.search(/\@LIBEXSLT_VERSION_NUMBER\@/) != -1) {
275			of.WriteLine(s.replace(/\@LIBEXSLT_VERSION_NUMBER\@/,
276				verMajorExslt*10000 + verMinorExslt*100 + verMicroExslt*1));
277		} else if (s.search(/\@LIBEXSLT_VERSION_EXTRA\@/) != -1) {
278			of.WriteLine(s.replace(/\@LIBEXSLT_VERSION_EXTRA\@/, verCvs));
279		} else if (s.search(/\@WITH_CRYPTO\@/) != -1) {
280			of.WriteLine(s.replace(/\@WITH_CRYPTO\@/, withCrypto? "1" : "0"));
281		} else if (s.search(/\@WITH_MODULES\@/) != -1) {
282			of.WriteLine(s.replace(/\@WITH_MODULES\@/, withModules? "1" : "0"));
283		} else
284			of.WriteLine(ln);
285	}
286	ofi.Close();
287	of.Close();
288}
289
290/* Creates the readme file for the binary distribution of 'bname', for the
291   version 'ver' in the file 'file'. This one is called from the Makefile when
292   generating a binary distribution. The parameters are passed by make. */
293function genReadme(bname, ver, file)
294{
295	var fso, f;
296	fso = new ActiveXObject("Scripting.FileSystemObject");
297	f = fso.CreateTextFile(file, true);
298	f.WriteLine("  " + bname + " " + ver);
299	f.WriteLine("  --------------");
300	f.WriteBlankLines(1);
301	f.WriteLine("  This is " + bname + ", version " + ver + ", binary package for the native Win32/IA32");
302	f.WriteLine("platform.");
303	f.WriteBlankLines(1);
304	f.WriteLine("  The files in this package do not require any special installation");
305	f.WriteLine("steps. Extract the contents of the archive whereever you wish and");
306	f.WriteLine("make sure that your tools which use " + bname + " can find it.");
307	f.WriteBlankLines(1);
308	f.WriteLine("  For example, if you want to run the supplied utilities from the command");
309	f.WriteLine("line, you can, if you wish, add the 'bin' subdirectory to the PATH");
310	f.WriteLine("environment variable.");
311	f.WriteLine("  If you want to make programmes in C which use " + bname + ", you'll");
312	f.WriteLine("likely know how to use the contents of this package. If you don't, please");
313	f.WriteLine("refer to your compiler's documentation.");
314	f.WriteBlankLines(1);
315	f.WriteLine("  If there is something you cannot keep for yourself, such as a problem,");
316	f.WriteLine("a cheer of joy, a comment or a suggestion, feel free to contact me using");
317	f.WriteLine("the address below.");
318	f.WriteBlankLines(1);
319	f.WriteLine("                              Igor Zlatkovic (igor@zlatkovic.com)");
320	f.Close();
321}
322
323/*
324 * main(),
325 * Execution begins here.
326 */
327
328/* Parse the command-line arguments. */
329for (i = 0; (i < WScript.Arguments.length) && (error == 0); i++) {
330	var arg, opt;
331	arg = WScript.Arguments(i);
332	opt = arg.substring(0, arg.indexOf("="));
333	if (opt.length == 0)
334		opt = arg.substring(0, arg.indexOf(":"));
335	if (opt.length > 0) {
336		if (opt == "xslt_debug")
337			withXsltDebug = strToBool(arg.substring(opt.length + 1, arg.length));
338		else if (opt == "trio")
339			withTrio = strToBool(arg.substring(opt.length + 1, arg.length));
340		else if (opt == "mem_debug")
341			withMemDebug = strToBool(arg.substring(opt.length + 1, arg.length));
342		else if (opt == "debugger")
343			withDebugger = strToBool(arg.substring(opt.length + 1, arg.length));
344		else if (opt == "debug")
345			buildDebug = strToBool(arg.substring(opt.length + 1, arg.length));
346		else if (opt == "iconv")
347			withIconv = strToBool(arg.substring(opt.length + 1, arg.length));
348		else if (opt == "zlib")
349			withZlib  = strToBool(arg.substring(opt.length + 1, arg.length));
350		else if (opt == "crypto")
351			withCrypto = strToBool(arg.substring(opt.length + 1, arg.length));
352		else if (opt == "modules")
353			withModules = strToBool(arg.substring(opt.length + 1, arg.length));
354		else if (opt == "locale")
355			withLocale = strToBool(arg.substring(opt.length + 1, arg.length));
356		else if (opt == "compiler")
357			compiler = arg.substring(opt.length + 1, arg.length);
358 		else if (opt == "cruntime")
359 			cruntime = arg.substring(opt.length + 1, arg.length);
360		else if (opt == "vcmanifest")
361			vcmanifest = strToBool(arg.substring(opt.length + 1, arg.length));
362		else if (opt == "static")
363			buildStatic = strToBool(arg.substring(opt.length + 1, arg.length));
364		else if (opt == "prefix")
365			buildPrefix = arg.substring(opt.length + 1, arg.length);
366		else if (opt == "incdir")
367			buildIncPrefix = arg.substring(opt.length + 1, arg.length);
368		else if (opt == "bindir")
369			buildBinPrefix = arg.substring(opt.length + 1, arg.length);
370		else if (opt == "libdir")
371			buildLibPrefix = arg.substring(opt.length + 1, arg.length);
372		else if (opt == "sodir")
373			buildSoPrefix = arg.substring(opt.length + 1, arg.length);
374		else if (opt == "incdir")
375			buildIncPrefix = arg.substring(opt.length + 1, arg.length);
376		else if (opt == "include")
377			buildInclude = arg.substring(opt.length + 1, arg.length);
378		else if (opt == "rinclude")
379			resourceInclude = arg.substring(opt.length + 1, arg.length);
380		else if (opt == "lib")
381			buildLib = arg.substring(opt.length + 1, arg.length);
382		else if (opt == "release")
383			useCvsVer = false;
384		else
385			error = 1;
386	} else if (i == 0) {
387		if (arg == "genreadme") {
388			// This command comes from the Makefile and will not be checked
389			// for errors, because Makefile will always supply right parameters.
390			genReadme(WScript.Arguments(1), WScript.Arguments(2), WScript.Arguments(3));
391			WScript.Quit(0);
392		} else if (arg == "help") {
393			usage();
394			WScript.Quit(0);
395		}
396	} else
397		error = 1;
398}
399// If we have an error here, it is because the user supplied bad parameters.
400if (error != 0) {
401	usage();
402	WScript.Quit(error);
403}
404
405// if user choses to link the c-runtime library statically into libxslt
406// with /MT and friends, then we need to enable static linking for xsltproc
407if (cruntime == "/MT" || cruntime == "/MTd" ||
408		cruntime == "/ML" || cruntime == "/MLd") {
409	buildStatic = 1;
410}
411
412if (buildStatic == 1 && withModules == 1) {
413	WScript.Echo("Warning: Disabling plugin support.");
414	WScript.Echo("");
415  WScript.Echo("Modules cannot be enabled when a statically linked cruntime has");
416	WScript.Echo("been selected, or when xsltproc.exe is linked statically to libxslt.");
417	WScript.Echo("");
418	withModules=0;
419}
420
421dirSep = "\\";
422//if (compiler == "mingw")
423//	dirSep = "/";
424if (buildBinPrefix == "")
425	buildBinPrefix = "$(PREFIX)" + dirSep + "bin";
426if (buildIncPrefix == "")
427	buildIncPrefix = "$(PREFIX)" + dirSep + "include";
428if (buildLibPrefix == "")
429	buildLibPrefix = "$(PREFIX)" + dirSep + "lib";
430if (buildSoPrefix == "")
431	buildSoPrefix = "$(PREFIX)" + dirSep + "lib";
432
433// Discover the version.
434discoverVersion();
435if (error != 0) {
436	WScript.Echo("Version discovery failed, aborting.");
437	WScript.Quit(error);
438}
439
440var outVerString = baseNameXslt + " version: " + verMajorXslt + "." + verMinorXslt + "." + verMicroXslt;
441if (verCvs && verCvs != "")
442	outVerString += "-" + verCvs;
443WScript.Echo(outVerString);
444outVerString = baseNameExslt + " version: " + verMajorExslt + "." + verMinorExslt + "." + verMicroExslt;
445if (verCvs && verCvs != "")
446	outVerString += "-" + verCvs;
447WScript.Echo(outVerString);
448
449// Configure libxslt.
450configureXslt();
451if (error != 0) {
452	WScript.Echo("Configuration failed, aborting.");
453	WScript.Quit(error);
454}
455
456// Configure libexslt.
457configureExslt();
458if (error != 0) {
459	WScript.Echo("Configuration failed, aborting.");
460	WScript.Quit(error);
461}
462
463// Create the Makefile.
464var fso = new ActiveXObject("Scripting.FileSystemObject");
465var makefile = ".\\Makefile.msvc";
466if (compiler == "mingw")
467	makefile = ".\\Makefile.mingw";
468fso.CopyFile(makefile, ".\\Makefile", true);
469WScript.Echo("Created Makefile.");
470// Create the config.h.
471var confighsrc = "..\\libxslt\\win32config.h";
472var configh = "..\\config.h";
473var f = fso.FileExists(configh);
474if (f) {
475	var t = fso.GetFile(configh);
476	t.Attributes =0;
477}
478fso.CopyFile(confighsrc, configh, true);
479WScript.Echo("Created config.h.");
480
481// Display the final configuration.
482var txtOut = "\nXSLT processor configuration\n";
483txtOut += "----------------------------\n";
484txtOut += "              Trio: " + boolToStr(withTrio) + "\n";
485txtOut += "  Debugging module: " + boolToStr(withXsltDebug) + "\n";
486txtOut += "  Memory debugging: " + boolToStr(withMemDebug) + "\n";
487txtOut += "  Debugger support: " + boolToStr(withDebugger) + "\n";
488txtOut += "         Use iconv: " + boolToStr(withIconv) + "\n";
489txtOut += "         With zlib: " + boolToStr(withZlib) + "\n";
490txtOut += "            Crypto: " + boolToStr(withCrypto) + "\n";
491txtOut += "           Modules: " + boolToStr(withModules) + "\n";
492txtOut += "            Locale: " + boolToStr(withLocale) + "\n";
493txtOut += "\n";
494txtOut += "Win32 build configuration\n";
495txtOut += "-------------------------\n";
496txtOut += "          Compiler: " + compiler + "\n";
497if (compiler == "msvc")
498	txtOut += "  C-Runtime option: " + cruntime + "\n";
499	txtOut += "    Embed Manifest: " + boolToStr(vcmanifest) + "\n";
500txtOut += "     Debug symbols: " + boolToStr(buildDebug) + "\n";
501txtOut += "   Static xsltproc: " + boolToStr(buildStatic) + "\n";
502txtOut += "    Install prefix: " + buildPrefix + "\n";
503txtOut += "      Put tools in: " + buildBinPrefix + "\n";
504txtOut += "    Put headers in: " + buildIncPrefix + "\n";
505txtOut += "Put static libs in: " + buildLibPrefix + "\n";
506txtOut += "Put shared libs in: " + buildSoPrefix + "\n";
507txtOut += "      Include path: " + buildInclude + "\n";
508txtOut += "     RInclude path: " + resourceInclude + "\n";
509txtOut += "          Lib path: " + buildLib + "\n";
510WScript.Echo(txtOut);
511
512// Done.
513