OLD | NEW |
1 /* Configure script for libxml, specific for Windows with Scripting Host. | 1 /* Configure script for libxml, specific for Windows with Scripting Host. |
2 * | 2 * |
3 * This script will configure the libxml build process and create necessary file
s. | 3 * This script will configure the libxml build process and create necessary file
s. |
4 * Run it with an 'help', or an invalid option and it will tell you what options | 4 * Run it with an 'help', or an invalid option and it will tell you what options |
5 * it accepts. | 5 * it accepts. |
6 * | 6 * |
7 * March 2002, Igor Zlatkovic <igor@zlatkovic.com> | 7 * March 2002, Igor Zlatkovic <igor@zlatkovic.com> |
8 */ | 8 */ |
9 | 9 |
10 /* The source directory, relative to the one where this file resides. */ | 10 /* The source directory, relative to the one where this file resides. */ |
(...skipping 25 matching lines...) Expand all Loading... |
36 var withC14n = true; | 36 var withC14n = true; |
37 var withCatalog = true; | 37 var withCatalog = true; |
38 var withDocb = true; | 38 var withDocb = true; |
39 var withXpath = true; | 39 var withXpath = true; |
40 var withXptr = true; | 40 var withXptr = true; |
41 var withXinclude = true; | 41 var withXinclude = true; |
42 var withIconv = true; | 42 var withIconv = true; |
43 var withIcu = false; | 43 var withIcu = false; |
44 var withIso8859x = false; | 44 var withIso8859x = false; |
45 var withZlib = false; | 45 var withZlib = false; |
| 46 var withLzma = false; |
46 var withDebug = true; | 47 var withDebug = true; |
47 var withMemDebug = false; | 48 var withMemDebug = false; |
48 var withRunDebug = false; | 49 var withRunDebug = false; |
49 var withSchemas = true; | 50 var withSchemas = true; |
50 var withSchematron = true; | 51 var withSchematron = true; |
51 var withRegExps = true; | 52 var withRegExps = true; |
52 var withModules = true; | 53 var withModules = true; |
53 var withTree = true; | 54 var withTree = true; |
54 var withReader = true; | 55 var withReader = true; |
55 var withWriter = true; | 56 var withWriter = true; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 txt += " c14n: Enable C14N support (" + (withC14n? "yes" : "no")
+ ")\n"; | 122 txt += " c14n: Enable C14N support (" + (withC14n? "yes" : "no")
+ ")\n"; |
122 txt += " catalog: Enable catalog support (" + (withCatalog? "yes" :
"no") + ")\n"; | 123 txt += " catalog: Enable catalog support (" + (withCatalog? "yes" :
"no") + ")\n"; |
123 txt += " docb: Enable DocBook support (" + (withDocb? "yes" : "no
") + ")\n"; | 124 txt += " docb: Enable DocBook support (" + (withDocb? "yes" : "no
") + ")\n"; |
124 txt += " xpath: Enable XPath support (" + (withXpath? "yes" : "no"
) + ")\n"; | 125 txt += " xpath: Enable XPath support (" + (withXpath? "yes" : "no"
) + ")\n"; |
125 txt += " xptr: Enable XPointer support (" + (withXptr? "yes" : "n
o") + ")\n"; | 126 txt += " xptr: Enable XPointer support (" + (withXptr? "yes" : "n
o") + ")\n"; |
126 txt += " xinclude: Enable XInclude support (" + (withXinclude? "yes"
: "no") + ")\n"; | 127 txt += " xinclude: Enable XInclude support (" + (withXinclude? "yes"
: "no") + ")\n"; |
127 txt += " iconv: Enable iconv support (" + (withIconv? "yes" : "no"
) + ")\n"; | 128 txt += " iconv: Enable iconv support (" + (withIconv? "yes" : "no"
) + ")\n"; |
128 txt += " icu: Enable icu support (" + (withIcu? "yes" : "no") +
")\n"; | 129 txt += " icu: Enable icu support (" + (withIcu? "yes" : "no") +
")\n"; |
129 txt += " iso8859x: Enable ISO8859X support (" + (withIso8859x? "yes"
: "no") + ")\n"; | 130 txt += " iso8859x: Enable ISO8859X support (" + (withIso8859x? "yes"
: "no") + ")\n"; |
130 txt += " zlib: Enable zlib support (" + (withZlib? "yes" : "no")
+ ")\n"; | 131 txt += " zlib: Enable zlib support (" + (withZlib? "yes" : "no")
+ ")\n"; |
| 132 txt += " lzma: Enable lzma support (" + (withLzma? "yes" : "no")
+ ")\n"; |
131 txt += " xml_debug: Enable XML debbugging module (" + (withDebug? "yes
" : "no") + ")\n"; | 133 txt += " xml_debug: Enable XML debbugging module (" + (withDebug? "yes
" : "no") + ")\n"; |
132 txt += " mem_debug: Enable memory debugger (" + (withMemDebug? "yes" :
"no") + ")\n"; | 134 txt += " mem_debug: Enable memory debugger (" + (withMemDebug? "yes" :
"no") + ")\n"; |
133 txt += " run_debug: Enable memory debugger (" + (withRunDebug? "yes" :
"no") + ")\n"; | 135 txt += " run_debug: Enable memory debugger (" + (withRunDebug? "yes" :
"no") + ")\n"; |
134 txt += " regexps: Enable regular expressions (" + (withRegExps? "yes
" : "no") + ")\n"; | 136 txt += " regexps: Enable regular expressions (" + (withRegExps? "yes
" : "no") + ")\n"; |
135 txt += " modules: Enable module support (" + (withModules? "yes" : "
no") + ")\n"; | 137 txt += " modules: Enable module support (" + (withModules? "yes" : "
no") + ")\n"; |
136 txt += " tree: Enable tree api (" + (withTree? "yes" : "no") + ")
\n"; | 138 txt += " tree: Enable tree api (" + (withTree? "yes" : "no") + ")
\n"; |
137 txt += " reader: Enable xmlReader api (" + (withReader? "yes" : "no
") + ")\n"; | 139 txt += " reader: Enable xmlReader api (" + (withReader? "yes" : "no
") + ")\n"; |
138 txt += " writer: Enable xmlWriter api (" + (withWriter? "yes" : "no
") + ")\n"; | 140 txt += " writer: Enable xmlWriter api (" + (withWriter? "yes" : "no
") + ")\n"; |
139 txt += " walker: Enable xmlDocWalker api (" + (withWalker? "yes" :
"no") + ")\n"; | 141 txt += " walker: Enable xmlDocWalker api (" + (withWalker? "yes" :
"no") + ")\n"; |
140 txt += " pattern: Enable xmlPattern api (" + (withPattern? "yes" : "
no") + ")\n"; | 142 txt += " pattern: Enable xmlPattern api (" + (withPattern? "yes" : "
no") + ")\n"; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 vf.WriteLine("WITH_C14N=" + (withC14n? "1" : "0")); | 233 vf.WriteLine("WITH_C14N=" + (withC14n? "1" : "0")); |
232 vf.WriteLine("WITH_CATALOG=" + (withCatalog? "1" : "0")); | 234 vf.WriteLine("WITH_CATALOG=" + (withCatalog? "1" : "0")); |
233 vf.WriteLine("WITH_DOCB=" + (withDocb? "1" : "0")); | 235 vf.WriteLine("WITH_DOCB=" + (withDocb? "1" : "0")); |
234 vf.WriteLine("WITH_XPATH=" + (withXpath? "1" : "0")); | 236 vf.WriteLine("WITH_XPATH=" + (withXpath? "1" : "0")); |
235 vf.WriteLine("WITH_XPTR=" + (withXptr? "1" : "0")); | 237 vf.WriteLine("WITH_XPTR=" + (withXptr? "1" : "0")); |
236 vf.WriteLine("WITH_XINCLUDE=" + (withXinclude? "1" : "0")); | 238 vf.WriteLine("WITH_XINCLUDE=" + (withXinclude? "1" : "0")); |
237 vf.WriteLine("WITH_ICONV=" + (withIconv? "1" : "0")); | 239 vf.WriteLine("WITH_ICONV=" + (withIconv? "1" : "0")); |
238 vf.WriteLine("WITH_ICU=" + (withIcu? "1" : "0")); | 240 vf.WriteLine("WITH_ICU=" + (withIcu? "1" : "0")); |
239 vf.WriteLine("WITH_ISO8859X=" + (withIso8859x? "1" : "0")); | 241 vf.WriteLine("WITH_ISO8859X=" + (withIso8859x? "1" : "0")); |
240 vf.WriteLine("WITH_ZLIB=" + (withZlib? "1" : "0")); | 242 vf.WriteLine("WITH_ZLIB=" + (withZlib? "1" : "0")); |
| 243 vf.WriteLine("WITH_LZMA=" + (withLzma? "1" : "0")); |
241 vf.WriteLine("WITH_DEBUG=" + (withDebug? "1" : "0")); | 244 vf.WriteLine("WITH_DEBUG=" + (withDebug? "1" : "0")); |
242 vf.WriteLine("WITH_MEM_DEBUG=" + (withMemDebug? "1" : "0")); | 245 vf.WriteLine("WITH_MEM_DEBUG=" + (withMemDebug? "1" : "0")); |
243 vf.WriteLine("WITH_RUN_DEBUG=" + (withRunDebug? "1" : "0")); | 246 vf.WriteLine("WITH_RUN_DEBUG=" + (withRunDebug? "1" : "0")); |
244 vf.WriteLine("WITH_SCHEMAS=" + (withSchemas? "1" : "0")); | 247 vf.WriteLine("WITH_SCHEMAS=" + (withSchemas? "1" : "0")); |
245 vf.WriteLine("WITH_SCHEMATRON=" + (withSchematron? "1" : "0")); | 248 vf.WriteLine("WITH_SCHEMATRON=" + (withSchematron? "1" : "0")); |
246 vf.WriteLine("WITH_REGEXPS=" + (withRegExps? "1" : "0")); | 249 vf.WriteLine("WITH_REGEXPS=" + (withRegExps? "1" : "0")); |
247 vf.WriteLine("WITH_MODULES=" + (withModules? "1" : "0")); | 250 vf.WriteLine("WITH_MODULES=" + (withModules? "1" : "0")); |
248 vf.WriteLine("WITH_TREE=" + (withTree? "1" : "0")); | 251 vf.WriteLine("WITH_TREE=" + (withTree? "1" : "0")); |
249 vf.WriteLine("WITH_READER=" + (withReader? "1" : "0")); | 252 vf.WriteLine("WITH_READER=" + (withReader? "1" : "0")); |
250 vf.WriteLine("WITH_WRITER=" + (withWriter? "1" : "0")); | 253 vf.WriteLine("WITH_WRITER=" + (withWriter? "1" : "0")); |
(...skipping 11 matching lines...) Expand all Loading... |
262 vf.WriteLine("BINPREFIX=" + buildBinPrefix); | 265 vf.WriteLine("BINPREFIX=" + buildBinPrefix); |
263 vf.WriteLine("INCPREFIX=" + buildIncPrefix); | 266 vf.WriteLine("INCPREFIX=" + buildIncPrefix); |
264 vf.WriteLine("LIBPREFIX=" + buildLibPrefix); | 267 vf.WriteLine("LIBPREFIX=" + buildLibPrefix); |
265 vf.WriteLine("SOPREFIX=" + buildSoPrefix); | 268 vf.WriteLine("SOPREFIX=" + buildSoPrefix); |
266 if (compiler == "msvc") { | 269 if (compiler == "msvc") { |
267 vf.WriteLine("INCLUDE=$(INCLUDE);" + buildInclude); | 270 vf.WriteLine("INCLUDE=$(INCLUDE);" + buildInclude); |
268 vf.WriteLine("LIB=$(LIB);" + buildLib); | 271 vf.WriteLine("LIB=$(LIB);" + buildLib); |
269 vf.WriteLine("CRUNTIME=" + cruntime); | 272 vf.WriteLine("CRUNTIME=" + cruntime); |
270 vf.WriteLine("VCMANIFEST=" + (vcmanifest? "1" : "0")); | 273 vf.WriteLine("VCMANIFEST=" + (vcmanifest? "1" : "0")); |
271 } else if (compiler == "mingw") { | 274 } else if (compiler == "mingw") { |
272 » » vf.WriteLine("INCLUDE+=;" + buildInclude); | 275 » » vf.WriteLine("INCLUDE+= -I" + buildInclude); |
273 » » vf.WriteLine("LIB+=;" + buildLib); | 276 » » vf.WriteLine("LIB+= -L" + buildLib); |
274 } else if (compiler == "bcb") { | 277 } else if (compiler == "bcb") { |
275 vf.WriteLine("INCLUDE=" + buildInclude); | 278 vf.WriteLine("INCLUDE=" + buildInclude); |
276 vf.WriteLine("LIB=" + buildLib); | 279 vf.WriteLine("LIB=" + buildLib); |
277 vf.WriteLine("DYNRUNTIME=" + (dynruntime? "1" : "0")); | 280 vf.WriteLine("DYNRUNTIME=" + (dynruntime? "1" : "0")); |
278 } | 281 } |
279 vf.Close(); | 282 vf.Close(); |
280 } | 283 } |
281 | 284 |
282 /* Configures libxml. This one will generate xmlversion.h from xmlversion.h.in | 285 /* Configures libxml. This one will generate xmlversion.h from xmlversion.h.in |
283 taking what the user passed on the command line into account. */ | 286 taking what the user passed on the command line into account. */ |
(...skipping 11 matching lines...) Expand all Loading... |
295 verMajor + "." + verMinor + "." + verMicro + ver
MicroSuffix)); | 298 verMajor + "." + verMinor + "." + verMicro + ver
MicroSuffix)); |
296 } else if (s.search(/\@LIBXML_VERSION_NUMBER\@/) != -1) { | 299 } else if (s.search(/\@LIBXML_VERSION_NUMBER\@/) != -1) { |
297 of.WriteLine(s.replace(/\@LIBXML_VERSION_NUMBER\@/, | 300 of.WriteLine(s.replace(/\@LIBXML_VERSION_NUMBER\@/, |
298 verMajor*10000 + verMinor*100 + verMicro*1)); | 301 verMajor*10000 + verMinor*100 + verMicro*1)); |
299 } else if (s.search(/\@LIBXML_VERSION_EXTRA\@/) != -1) { | 302 } else if (s.search(/\@LIBXML_VERSION_EXTRA\@/) != -1) { |
300 of.WriteLine(s.replace(/\@LIBXML_VERSION_EXTRA\@/, verCv
s)); | 303 of.WriteLine(s.replace(/\@LIBXML_VERSION_EXTRA\@/, verCv
s)); |
301 } else if (s.search(/\@WITH_TRIO\@/) != -1) { | 304 } else if (s.search(/\@WITH_TRIO\@/) != -1) { |
302 of.WriteLine(s.replace(/\@WITH_TRIO\@/, withTrio? "1" :
"0")); | 305 of.WriteLine(s.replace(/\@WITH_TRIO\@/, withTrio? "1" :
"0")); |
303 } else if (s.search(/\@WITH_THREADS\@/) != -1) { | 306 } else if (s.search(/\@WITH_THREADS\@/) != -1) { |
304 of.WriteLine(s.replace(/\@WITH_THREADS\@/, withThreads =
= "no"? "0" : "1")); | 307 of.WriteLine(s.replace(/\@WITH_THREADS\@/, withThreads =
= "no"? "0" : "1")); |
| 308 } else if (s.search(/\@WITH_THREAD_ALLOC\@/) != -1) { |
| 309 of.WriteLine(s.replace(/\@WITH_THREAD_ALLOC\@/, "0")); |
305 } else if (s.search(/\@WITH_FTP\@/) != -1) { | 310 } else if (s.search(/\@WITH_FTP\@/) != -1) { |
306 of.WriteLine(s.replace(/\@WITH_FTP\@/, withFtp? "1" : "0
")); | 311 of.WriteLine(s.replace(/\@WITH_FTP\@/, withFtp? "1" : "0
")); |
307 } else if (s.search(/\@WITH_HTTP\@/) != -1) { | 312 } else if (s.search(/\@WITH_HTTP\@/) != -1) { |
308 of.WriteLine(s.replace(/\@WITH_HTTP\@/, withHttp? "1" :
"0")); | 313 of.WriteLine(s.replace(/\@WITH_HTTP\@/, withHttp? "1" :
"0")); |
309 } else if (s.search(/\@WITH_HTML\@/) != -1) { | 314 } else if (s.search(/\@WITH_HTML\@/) != -1) { |
310 of.WriteLine(s.replace(/\@WITH_HTML\@/, withHtml? "1" :
"0")); | 315 of.WriteLine(s.replace(/\@WITH_HTML\@/, withHtml? "1" :
"0")); |
311 } else if (s.search(/\@WITH_C14N\@/) != -1) { | 316 } else if (s.search(/\@WITH_C14N\@/) != -1) { |
312 of.WriteLine(s.replace(/\@WITH_C14N\@/, withC14n? "1" :
"0")); | 317 of.WriteLine(s.replace(/\@WITH_C14N\@/, withC14n? "1" :
"0")); |
313 } else if (s.search(/\@WITH_CATALOG\@/) != -1) { | 318 } else if (s.search(/\@WITH_CATALOG\@/) != -1) { |
314 of.WriteLine(s.replace(/\@WITH_CATALOG\@/, withCatalog?
"1" : "0")); | 319 of.WriteLine(s.replace(/\@WITH_CATALOG\@/, withCatalog?
"1" : "0")); |
315 } else if (s.search(/\@WITH_DOCB\@/) != -1) { | 320 } else if (s.search(/\@WITH_DOCB\@/) != -1) { |
316 of.WriteLine(s.replace(/\@WITH_DOCB\@/, withDocb? "1" :
"0")); | 321 of.WriteLine(s.replace(/\@WITH_DOCB\@/, withDocb? "1" :
"0")); |
317 } else if (s.search(/\@WITH_XPATH\@/) != -1) { | 322 } else if (s.search(/\@WITH_XPATH\@/) != -1) { |
318 of.WriteLine(s.replace(/\@WITH_XPATH\@/, withXpath? "1"
: "0")); | 323 of.WriteLine(s.replace(/\@WITH_XPATH\@/, withXpath? "1"
: "0")); |
319 } else if (s.search(/\@WITH_XPTR\@/) != -1) { | 324 } else if (s.search(/\@WITH_XPTR\@/) != -1) { |
320 of.WriteLine(s.replace(/\@WITH_XPTR\@/, withXptr? "1" :
"0")); | 325 of.WriteLine(s.replace(/\@WITH_XPTR\@/, withXptr? "1" :
"0")); |
321 } else if (s.search(/\@WITH_XINCLUDE\@/) != -1) { | 326 } else if (s.search(/\@WITH_XINCLUDE\@/) != -1) { |
322 of.WriteLine(s.replace(/\@WITH_XINCLUDE\@/, withXinclude
? "1" : "0")); | 327 of.WriteLine(s.replace(/\@WITH_XINCLUDE\@/, withXinclude
? "1" : "0")); |
323 } else if (s.search(/\@WITH_ICONV\@/) != -1) { | 328 } else if (s.search(/\@WITH_ICONV\@/) != -1) { |
324 of.WriteLine(s.replace(/\@WITH_ICONV\@/, withIconv? "1"
: "0")); | 329 of.WriteLine(s.replace(/\@WITH_ICONV\@/, withIconv? "1"
: "0")); |
325 } else if (s.search(/\@WITH_ICU\@/) != -1) { | 330 } else if (s.search(/\@WITH_ICU\@/) != -1) { |
326 of.WriteLine(s.replace(/\@WITH_ICU\@/, withIcu? "1" : "0
")); | 331 of.WriteLine(s.replace(/\@WITH_ICU\@/, withIcu? "1" : "0
")); |
327 } else if (s.search(/\@WITH_ISO8859X\@/) != -1) { | 332 } else if (s.search(/\@WITH_ISO8859X\@/) != -1) { |
328 of.WriteLine(s.replace(/\@WITH_ISO8859X\@/, withIso8859x
? "1" : "0")); | 333 of.WriteLine(s.replace(/\@WITH_ISO8859X\@/, withIso8859x
? "1" : "0")); |
329 } else if (s.search(/\@WITH_ZLIB\@/) != -1) { | 334 } else if (s.search(/\@WITH_ZLIB\@/) != -1) { |
330 of.WriteLine(s.replace(/\@WITH_ZLIB\@/, withZlib? "1" :
"0")); | 335 of.WriteLine(s.replace(/\@WITH_ZLIB\@/, withZlib? "1" :
"0")); |
| 336 } else if (s.search(/\@WITH_LZMA\@/) != -1) { |
| 337 of.WriteLine(s.replace(/\@WITH_LZMA\@/, withLzma? "1" :
"0")); |
331 } else if (s.search(/\@WITH_DEBUG\@/) != -1) { | 338 } else if (s.search(/\@WITH_DEBUG\@/) != -1) { |
332 of.WriteLine(s.replace(/\@WITH_DEBUG\@/, withDebug? "1"
: "0")); | 339 of.WriteLine(s.replace(/\@WITH_DEBUG\@/, withDebug? "1"
: "0")); |
333 } else if (s.search(/\@WITH_MEM_DEBUG\@/) != -1) { | 340 } else if (s.search(/\@WITH_MEM_DEBUG\@/) != -1) { |
334 of.WriteLine(s.replace(/\@WITH_MEM_DEBUG\@/, withMemDebu
g? "1" : "0")); | 341 of.WriteLine(s.replace(/\@WITH_MEM_DEBUG\@/, withMemDebu
g? "1" : "0")); |
335 } else if (s.search(/\@WITH_RUN_DEBUG\@/) != -1) { | 342 } else if (s.search(/\@WITH_RUN_DEBUG\@/) != -1) { |
336 of.WriteLine(s.replace(/\@WITH_RUN_DEBUG\@/, withRunDebu
g? "1" : "0")); | 343 of.WriteLine(s.replace(/\@WITH_RUN_DEBUG\@/, withRunDebu
g? "1" : "0")); |
337 } else if (s.search(/\@WITH_SCHEMAS\@/) != -1) { | 344 } else if (s.search(/\@WITH_SCHEMAS\@/) != -1) { |
338 of.WriteLine(s.replace(/\@WITH_SCHEMAS\@/, withSchemas?
"1" : "0")); | 345 of.WriteLine(s.replace(/\@WITH_SCHEMAS\@/, withSchemas?
"1" : "0")); |
339 } else if (s.search(/\@WITH_SCHEMATRON\@/) != -1) { | 346 } else if (s.search(/\@WITH_SCHEMATRON\@/) != -1) { |
340 of.WriteLine(s.replace(/\@WITH_SCHEMATRON\@/, withSchema
tron? "1" : "0")); | 347 of.WriteLine(s.replace(/\@WITH_SCHEMATRON\@/, withSchema
tron? "1" : "0")); |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 else if (opt == "xinclude") | 473 else if (opt == "xinclude") |
467 withXinclude = strToBool(arg.substring(opt.length + 1, a
rg.length)); | 474 withXinclude = strToBool(arg.substring(opt.length + 1, a
rg.length)); |
468 else if (opt == "iconv") | 475 else if (opt == "iconv") |
469 withIconv = strToBool(arg.substring(opt.length + 1, arg.
length)); | 476 withIconv = strToBool(arg.substring(opt.length + 1, arg.
length)); |
470 else if (opt == "icu") | 477 else if (opt == "icu") |
471 withIcu = strToBool(arg.substring(opt.length + 1, arg.le
ngth)); | 478 withIcu = strToBool(arg.substring(opt.length + 1, arg.le
ngth)); |
472 else if (opt == "iso8859x") | 479 else if (opt == "iso8859x") |
473 withIso8859x = strToBool(arg.substring(opt.length + 1, a
rg.length)); | 480 withIso8859x = strToBool(arg.substring(opt.length + 1, a
rg.length)); |
474 else if (opt == "zlib") | 481 else if (opt == "zlib") |
475 withZlib = strToBool(arg.substring(opt.length + 1, arg.l
ength)); | 482 withZlib = strToBool(arg.substring(opt.length + 1, arg.l
ength)); |
| 483 else if (opt == "lzma") |
| 484 withLzma = strToBool(arg.substring(opt.length + 1, arg.l
ength)); |
476 else if (opt == "xml_debug") | 485 else if (opt == "xml_debug") |
477 withDebug = strToBool(arg.substring(opt.length + 1, arg.
length)); | 486 withDebug = strToBool(arg.substring(opt.length + 1, arg.
length)); |
478 else if (opt == "mem_debug") | 487 else if (opt == "mem_debug") |
479 withMemDebug = strToBool(arg.substring(opt.length + 1, a
rg.length)); | 488 withMemDebug = strToBool(arg.substring(opt.length + 1, a
rg.length)); |
480 else if (opt == "run_debug") | 489 else if (opt == "run_debug") |
481 withRunDebug = strToBool(arg.substring(opt.length + 1, a
rg.length)); | 490 withRunDebug = strToBool(arg.substring(opt.length + 1, a
rg.length)); |
482 else if (opt == "schemas") | 491 else if (opt == "schemas") |
483 withSchemas = strToBool(arg.substring(opt.length + 1, ar
g.length)); | 492 withSchemas = strToBool(arg.substring(opt.length + 1, ar
g.length)); |
484 else if (opt == "schematron") | 493 else if (opt == "schematron") |
485 withSchematron = strToBool(arg.substring(opt.length + 1,
arg.length)); | 494 withSchematron = strToBool(arg.substring(opt.length + 1,
arg.length)); |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 } | 581 } |
573 | 582 |
574 dirSep = "\\"; | 583 dirSep = "\\"; |
575 if (buildBinPrefix == "") | 584 if (buildBinPrefix == "") |
576 buildBinPrefix = "$(PREFIX)" + dirSep + "bin"; | 585 buildBinPrefix = "$(PREFIX)" + dirSep + "bin"; |
577 if (buildIncPrefix == "") | 586 if (buildIncPrefix == "") |
578 buildIncPrefix = "$(PREFIX)" + dirSep + "include"; | 587 buildIncPrefix = "$(PREFIX)" + dirSep + "include"; |
579 if (buildLibPrefix == "") | 588 if (buildLibPrefix == "") |
580 buildLibPrefix = "$(PREFIX)" + dirSep + "lib"; | 589 buildLibPrefix = "$(PREFIX)" + dirSep + "lib"; |
581 if (buildSoPrefix == "") | 590 if (buildSoPrefix == "") |
582 » buildSoPrefix = "$(PREFIX)" + dirSep + "lib"; | 591 » buildSoPrefix = "$(PREFIX)" + dirSep + "bin"; |
583 | 592 |
584 // Discover the version. | 593 // Discover the version. |
585 discoverVersion(); | 594 discoverVersion(); |
586 if (error != 0) { | 595 if (error != 0) { |
587 WScript.Echo("Version discovery failed, aborting."); | 596 WScript.Echo("Version discovery failed, aborting."); |
588 WScript.Quit(error); | 597 WScript.Quit(error); |
589 } | 598 } |
590 | 599 |
591 var outVerString = baseName + " version: " + verMajor + "." + verMinor + "." + v
erMicro; | 600 var outVerString = baseName + " version: " + verMajor + "." + verMinor + "." + v
erMicro; |
592 if (verMicroSuffix && verMicroSuffix != "") | 601 if (verMicroSuffix && verMicroSuffix != "") |
(...skipping 22 matching lines...) Expand all Loading... |
615 var fso = new ActiveXObject("Scripting.FileSystemObject"); | 624 var fso = new ActiveXObject("Scripting.FileSystemObject"); |
616 var makefile = ".\\Makefile.msvc"; | 625 var makefile = ".\\Makefile.msvc"; |
617 if (compiler == "mingw") | 626 if (compiler == "mingw") |
618 makefile = ".\\Makefile.mingw"; | 627 makefile = ".\\Makefile.mingw"; |
619 else if (compiler == "bcb") | 628 else if (compiler == "bcb") |
620 makefile = ".\\Makefile.bcb"; | 629 makefile = ".\\Makefile.bcb"; |
621 var new_makefile = ".\\Makefile"; | 630 var new_makefile = ".\\Makefile"; |
622 var f = fso.FileExists(new_makefile); | 631 var f = fso.FileExists(new_makefile); |
623 if (f) { | 632 if (f) { |
624 var t = fso.GetFile(new_makefile); | 633 var t = fso.GetFile(new_makefile); |
625 t.Attributes = 0; | 634 t.Attributes =0; |
626 } | 635 } |
627 fso.CopyFile(makefile, new_makefile, true); | 636 fso.CopyFile(makefile, new_makefile, true); |
628 WScript.Echo("Created Makefile."); | 637 WScript.Echo("Created Makefile."); |
629 // Create the config.h. | 638 // Create the config.h. |
630 var confighsrc = "..\\include\\win32config.h"; | 639 var confighsrc = "..\\include\\win32config.h"; |
631 var configh = "..\\config.h"; | 640 var configh = "..\\config.h"; |
632 var f = fso.FileExists(configh); | 641 var f = fso.FileExists(configh); |
633 if (f) { | 642 if (f) { |
634 var t = fso.GetFile(configh); | 643 var t = fso.GetFile(configh); |
635 t.Attributes =0; | 644 t.Attributes =0; |
(...skipping 13 matching lines...) Expand all Loading... |
649 txtOut += " C14N support: " + boolToStr(withC14n) + "\n"; | 658 txtOut += " C14N support: " + boolToStr(withC14n) + "\n"; |
650 txtOut += " Catalog support: " + boolToStr(withCatalog) + "\n"; | 659 txtOut += " Catalog support: " + boolToStr(withCatalog) + "\n"; |
651 txtOut += " DocBook support: " + boolToStr(withDocb) + "\n"; | 660 txtOut += " DocBook support: " + boolToStr(withDocb) + "\n"; |
652 txtOut += " XPath support: " + boolToStr(withXpath) + "\n"; | 661 txtOut += " XPath support: " + boolToStr(withXpath) + "\n"; |
653 txtOut += " XPointer support: " + boolToStr(withXptr) + "\n"; | 662 txtOut += " XPointer support: " + boolToStr(withXptr) + "\n"; |
654 txtOut += " XInclude support: " + boolToStr(withXinclude) + "\n"; | 663 txtOut += " XInclude support: " + boolToStr(withXinclude) + "\n"; |
655 txtOut += " iconv support: " + boolToStr(withIconv) + "\n"; | 664 txtOut += " iconv support: " + boolToStr(withIconv) + "\n"; |
656 txtOut += " icu support: " + boolToStr(withIcu) + "\n"; | 665 txtOut += " icu support: " + boolToStr(withIcu) + "\n"; |
657 txtOut += " iso8859x support: " + boolToStr(withIso8859x) + "\n"; | 666 txtOut += " iso8859x support: " + boolToStr(withIso8859x) + "\n"; |
658 txtOut += " zlib support: " + boolToStr(withZlib) + "\n"; | 667 txtOut += " zlib support: " + boolToStr(withZlib) + "\n"; |
| 668 txtOut += " lzma support: " + boolToStr(withLzma) + "\n"; |
659 txtOut += " Debugging module: " + boolToStr(withDebug) + "\n"; | 669 txtOut += " Debugging module: " + boolToStr(withDebug) + "\n"; |
660 txtOut += " Memory debugging: " + boolToStr(withMemDebug) + "\n"; | 670 txtOut += " Memory debugging: " + boolToStr(withMemDebug) + "\n"; |
661 txtOut += " Runtime debugging: " + boolToStr(withRunDebug) + "\n"; | 671 txtOut += " Runtime debugging: " + boolToStr(withRunDebug) + "\n"; |
662 txtOut += " Regexp support: " + boolToStr(withRegExps) + "\n"; | 672 txtOut += " Regexp support: " + boolToStr(withRegExps) + "\n"; |
663 txtOut += " Module support: " + boolToStr(withModules) + "\n"; | 673 txtOut += " Module support: " + boolToStr(withModules) + "\n"; |
664 txtOut += " Tree support: " + boolToStr(withTree) + "\n"; | 674 txtOut += " Tree support: " + boolToStr(withTree) + "\n"; |
665 txtOut += " Reader support: " + boolToStr(withReader) + "\n"; | 675 txtOut += " Reader support: " + boolToStr(withReader) + "\n"; |
666 txtOut += " Writer support: " + boolToStr(withWriter) + "\n"; | 676 txtOut += " Writer support: " + boolToStr(withWriter) + "\n"; |
667 txtOut += " Walker support: " + boolToStr(withWalker) + "\n"; | 677 txtOut += " Walker support: " + boolToStr(withWalker) + "\n"; |
668 txtOut += " Pattern support: " + boolToStr(withPattern) + "\n"; | 678 txtOut += " Pattern support: " + boolToStr(withPattern) + "\n"; |
(...skipping 20 matching lines...) Expand all Loading... |
689 txtOut += " Put tools in: " + buildBinPrefix + "\n"; | 699 txtOut += " Put tools in: " + buildBinPrefix + "\n"; |
690 txtOut += " Put headers in: " + buildIncPrefix + "\n"; | 700 txtOut += " Put headers in: " + buildIncPrefix + "\n"; |
691 txtOut += "Put static libs in: " + buildLibPrefix + "\n"; | 701 txtOut += "Put static libs in: " + buildLibPrefix + "\n"; |
692 txtOut += "Put shared libs in: " + buildSoPrefix + "\n"; | 702 txtOut += "Put shared libs in: " + buildSoPrefix + "\n"; |
693 txtOut += " Include path: " + buildInclude + "\n"; | 703 txtOut += " Include path: " + buildInclude + "\n"; |
694 txtOut += " Lib path: " + buildLib + "\n"; | 704 txtOut += " Lib path: " + buildLib + "\n"; |
695 WScript.Echo(txtOut); | 705 WScript.Echo(txtOut); |
696 | 706 |
697 // | 707 // |
698 | 708 |
OLD | NEW |