diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-10-17 14:53:30 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-10-17 14:53:32 +0900 |
commit | 89d86b9956699671509e3758f2245ecf95571f15 (patch) | |
tree | 86e454ba57f3e8808b3bd927808214fbab211673 /win32 | |
parent | 6f69a8d1b2d2017bbb6d9b45ddef446ea8ef9c7d (diff) | |
download | libxslt-89d86b9956699671509e3758f2245ecf95571f15.tar.gz libxslt-89d86b9956699671509e3758f2245ecf95571f15.tar.bz2 libxslt-89d86b9956699671509e3758f2245ecf95571f15.zip |
Imported Upstream version 1.1.31upstream/1.1.31
Change-Id: I5c79882d43bcfea6c94944bed9bdddb76c516afd
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'win32')
-rw-r--r-- | win32/configure.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/win32/configure.js b/win32/configure.js index 39745911..a8098132 100644 --- a/win32/configure.js +++ b/win32/configure.js @@ -19,7 +19,7 @@ var baseNameXslt = "libxslt"; var baseNameExslt = "libexslt"; /* Configure file which contains the version and the output file where we can store our build configuration. */ -var configFile = baseDir + "\\configure.in"; +var configFile = baseDir + "\\configure.ac"; var versionFile = ".\\config.msvc"; /* Input and output files regarding the lib(e)xml features. The second output file is there for the compatibility reasons, otherwise it @@ -165,15 +165,15 @@ function discoverVersion() while (cf.AtEndOfStream != true) { ln = cf.ReadLine(); s = new String(ln); - if (s.search(/^LIBXSLT_MAJOR_VERSION=/) != -1) { - vf.WriteLine(s); - verMajorXslt = s.substring(s.indexOf("=") + 1, s.length) - } else if(s.search(/^LIBXSLT_MINOR_VERSION=/) != -1) { - vf.WriteLine(s); - verMinorXslt = s.substring(s.indexOf("=") + 1, s.length) - } else if(s.search(/^LIBXSLT_MICRO_VERSION=/) != -1) { - vf.WriteLine(s); - verMicroXslt = s.substring(s.indexOf("=") + 1, s.length) + if (m = s.match(/^m4_define\(\[MAJOR_VERSION\], \[(.*)\]\)/)) { + vf.WriteLine("LIBXSLT_MAJOR_VERSION=" + m[1]); + verMajorXslt = m[1]; + } else if(m = s.match(/^m4_define\(\[MINOR_VERSION\], \[(.*)\]\)/)) { + vf.WriteLine("LIBXSLT_MINOR_VERSION=" + m[1]); + verMinorXslt = m[1]; + } else if(m = s.match(/^m4_define\(\[MICRO_VERSION\], \[(.*)\]\)/)) { + vf.WriteLine("LIBXSLT_MICRO_VERSION=" + m[1]); + verMicroXslt = m[1]; } else if (s.search(/^LIBEXSLT_MAJOR_VERSION=/) != -1) { vf.WriteLine(s); verMajorExslt = s.substring(s.indexOf("=") + 1, s.length) |