/* Configure script for libxml, specific for Windows with Scripting Host. * * This script will configure the libxml build process and create necessary files. * Run it with an 'help', or an invalid option and it will tell you what options * it accepts. * * March 2002, Igor Zlatkovic */ /* The source directory, relative to the one where this file resides. */ var srcDirXml = ".."; var srcDirUtils = ".."; /* Base name of what we are building. */ var baseName = "libxml2"; /* Configure file which contains the version and the output file where we can store our build configuration. */ var configFile = srcDirXml + "\\configure.ac"; var versionFile = ".\\config.msvc"; /* Input and output files regarding the libxml features. */ var optsFileIn = srcDirXml + "\\include\\libxml\\xmlversion.h.in"; var optsFile = srcDirXml + "\\include\\libxml\\xmlversion.h"; /* Version strings for the binary distribution. Will be filled later in the code. */ var verMajor; var verMinor; var verMicro; var verMicroSuffix; var verCvs; var useCvsVer = true; /* Libxml features. */ var withTrio = false; var withThreads = "native"; var withFtp = true; var withHttp = true; var withHtml = true; var withC14n = true; var withCatalog = true; var withDocb = true; var withXpath = true; var withXptr = true; var withXinclude = true; var withIconv = true; var withIcu = false; var withIso8859x = false; var withZlib = false; var withLzma = false; var withDebug = true; var withMemDebug = false; var withRunDebug = false; var withSchemas = true; var withSchematron = true; var withRegExps = true; var withModules = true; var withTree = true; var withReader = true; var withWriter = true; var withWalker = true; var withPattern = true; var withPush = true; var withValid = true; var withSax1 = true; var withLegacy = true; var withOutput = true; var withPython = false; /* Win32 build options. */ var dirSep = "\\"; var compiler = "msvc"; var cruntime = "/MD"; var dynruntime = true; var vcmanifest = false; var buildDebug = 0; var buildStatic = 0; var buildPrefix = "."; var buildBinPrefix = ""; var buildIncPrefix = ""; var buildLibPrefix = ""; var buildSoPrefix = ""; var buildInclude = "."; var buildLib = "."; /* Local stuff */ var error = 0; /* Helper function, transforms the option variable into the 'Enabled' or 'Disabled' string. */ function boolToStr(opt) { if (opt == false) return "no"; else if (opt == true) return "yes"; error = 1; return "*** undefined ***"; } /* Helper function, transforms the argument string into a boolean value. */ function strToBool(opt) { if (opt == 0 || opt == "no") return false; else if (opt == 1 || opt == "yes") return true; error = 1; return false; } /* Displays the details about how to use this script. */ function usage() { var txt; txt = "Usage:\n"; txt += " cscript " + WScript.ScriptName + " \n"; txt += " cscript " + WScript.ScriptName + " help\n\n"; txt += "Options can be specified in the form