diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2008-06-12 09:43:28 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2008-06-12 09:43:28 +0000 |
commit | 80353190270f6b742aea1969cb1d1de899764fb1 (patch) | |
tree | 588593217d4f047d2c5ae209bac9545058a41ed3 /win32 | |
parent | 7d1f6c338ee0305c4b15323618cb4ff293f59227 (diff) | |
download | libxslt-80353190270f6b742aea1969cb1d1de899764fb1.tar.gz libxslt-80353190270f6b742aea1969cb1d1de899764fb1.tar.bz2 libxslt-80353190270f6b742aea1969cb1d1de899764fb1.zip |
patch from Nick Wellnhofer and Roumen Petrov to fix some portability
* libxslt/xsltconfig.h.in libxslt/xsltlocale.h configure.in
config.h.in win32/configure.js: patch from Nick Wellnhofer and
Roumen Petrov to fix some portability problems on the previous
xsl:sort locale patch
Daniel
svn path=/trunk/; revision=1478
Diffstat (limited to 'win32')
-rw-r--r-- | win32/configure.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/win32/configure.js b/win32/configure.js index f28e9da1..4feb4b27 100644 --- a/win32/configure.js +++ b/win32/configure.js @@ -47,6 +47,7 @@ var withIconv = true; var withZlib = false; var withCrypto = true; var withModules = false; +var withLocale = true; /* Win32 build options. */ var dirSep = "\\"; var compiler = "msvc"; @@ -106,6 +107,7 @@ function usage() txt += " zlib: Use zlib library (" + (withZlib? "yes" : "no") + ")\n"; txt += " crypto: Enable Crypto support (" + (withCrypto? "yes" : "no") + ")\n"; txt += " modules: Enable Module support (" + (withModules? "yes" : "no") + ")\n"; + txt += " locale: Enable Locale support, requires msvcr80.dll (" + (withLocale? "yes" : "no") + ")\n"; txt += "\nWin32 build options, default value given in parentheses:\n\n"; txt += " compiler: Compiler to be used [msvc|mingw] (" + compiler + ")\n"; txt += " cruntime: C-runtime compiler option (only msvc) (" + cruntime + ")\n"; @@ -240,6 +242,10 @@ function configureXslt() of.WriteLine(s.replace(/\@WITH_DEBUGGER\@/, withDebugger? "1" : "0")); } else if (s.search(/\@WITH_MODULES\@/) != -1) { of.WriteLine(s.replace(/\@WITH_MODULES\@/, withModules? "1" : "0")); + } else if (s.search(/\@XSLT_LOCALE_XLOCALE\@/) != -1) { + of.WriteLine(s.replace(/\@XSLT_LOCALE_XLOCALE\@/, "0")); + } else if (s.search(/\@XSLT_LOCALE_MSVCRT\@/) != -1) { + of.WriteLine(s.replace(/\@XSLT_LOCALE_MSVCRT\@/, withLocale? "1" : "0")); } else if (s.search(/\@LIBXSLT_DEFAULT_PLUGINS_PATH\@/) != -1) { of.WriteLine(s.replace(/\@LIBXSLT_DEFAULT_PLUGINS_PATH\@/, "NULL")); } else @@ -343,6 +349,8 @@ for (i = 0; (i < WScript.Arguments.length) && (error == 0); i++) { withCrypto = strToBool(arg.substring(opt.length + 1, arg.length)); else if (opt == "modules") withModules = strToBool(arg.substring(opt.length + 1, arg.length)); + else if (opt == "locale") + withLocale = strToBool(arg.substring(opt.length + 1, arg.length)); else if (opt == "compiler") compiler = arg.substring(opt.length + 1, arg.length); else if (opt == "cruntime") @@ -477,6 +485,7 @@ txtOut += " Use iconv: " + boolToStr(withIconv) + "\n"; txtOut += " With zlib: " + boolToStr(withZlib) + "\n"; txtOut += " Crypto: " + boolToStr(withCrypto) + "\n"; txtOut += " Modules: " + boolToStr(withModules) + "\n"; +txtOut += " Locale: " + boolToStr(withLocale) + "\n"; txtOut += "\n"; txtOut += "Win32 build configuration\n"; txtOut += "-------------------------\n"; |