Debian Codegraph @

texk/web2c/pdftexdir/regex/README

raw
1 This is the regex functionality from glibc 2.5 extracted into a
2 separate library, for Win32. It may be built, from the sources
3 provided, using the command sequence:--
4
5 ./configure [--options...] && make
6
7 For a list of available configuration options, run:--
8
9 ./configure --help
10
11 After building, as above, the resultant DLL, and optionally the
12 associated development kit, may be installed by:--
13
14 make install
15
16 while redistributable binary DLL and development library kits may
17 be created by:--
18
19 make dist
20
21
22 The original sources, on which this port is based, remain
23 copyright of their respective authors, or of the Free Software
24 Foundation Inc., as indicated in individual file headers; all are
25 redistributed with permission, as granted by the GNU Lesser
26 General Public License.
27
28 This is free software. It is provided AS IS, in the hope that
29 it may be useful, but WITHOUT WARRANTY OF ANY KIND, not even an
30 IMPLIED WARRANTY of MERCHANTABILITY, nor of FITNESS FOR ANY
31 PARTICULAR PURPOSE.
32
33 Permission is granted to redistribute this software, either
34 "as is" or in modified form, under the terms of the GNU Lesser
35 General Public License, as published by the Free Software
36 Foundation; either version 2.1, or (at your option) any later
37 version.
38
39 You should have received a copy of the GNU Lesser General Public
40 License along with this software; see the file COPYING.LIB. If
41 not, write to the Free Software Foundation, 51 Franklin St -
42 Fifth Floor, Boston, MA 02110-1301, USA.
43
44 The original port of this functionality was implemented by Tor
45 Lillqvist; I've adapted his work, to make it somewhat more MinGW
46 friendly. I have *not* modified any of the `C' sources provided
47 by Tor; nor have I changed the naming conventions he adopted for
48 generated distributables. I *have*:--
49
50 1) Replaced Tor's original `Makefile' with an autoconf generated
51 configure script, and a backwardly compatible `Makefile.in';
52 this provides a more flexible build procedure, which I find
53 more convenient, when cross-compiling on a GNU/Linux host.
54
55 2) Added VPATH support, for `out of tree' builds.
56
57 3) Adapted the build procedure, to avoid a dependency on the `lib'
58 program from Microsoft's MSVC tool chain. This is achieved by
59 providing an option to configure, which is disabled by default;
60 it may by activated by specifying `--enable-msvc-implib' on the
61 configure command line. If this option is not activated, or if
62 the MSVC `lib' tool is not present, the Makefile is configured
63 without binding the rule for building an MSVC compatible import
64 library, to the default target, (although the rule is left in
65 place for explicit use).
66
67 If the `--enable-msvc-implib' option is specified, but `lib' is
68 not present, then configure will issue a warning message, and
69 will again configure the Makefile without binding this rule to
70 the default target.
71
72 Only if the `--enable-msvc-implib' option is specified, *and*
73 the `lib' tool is present, will building of an MSVC compatible
74 import library be configured as a default deliverable.
75
76 4) Added `install', `install-dll' and `install-dev' targets, to
77 support direct installation of the DLL, and its associated
78 development kit.
79
80 5) Changed the default packaging format for distributables, from
81 Tor's exclusive choice of `zip', to my own preferred `tar.gz';
82 `zip' format remains available, as an option, by configuring
83 with `--enable-dist=zip'.
84
85 6) Added `bindist', `devdist' and `srcdist' targets, for greater
86 flexibility in building distribution kits.
87
88 The original text of Tor's README file will be found below.
89
90 --Keith Marshall <[email protected]>
91
92 I call the DLL libgnurx-0.dll which hopefully should be unique. At
93 least it isn't "regex.dll" which has been used by the
94 gnuwin32.sourceforge.net site for *two* incompatible DLLs. (That mess,
95 and the mess with their build of Henry Spencer's regex library, was
96 what lead me to build my own GNU regex library. See the
97 gnuwin32-users mailing list archives from December 2006.)
98
99 The "-0" is so that if at some point I build a release that isn't
100 binary compatible, I can then increment that and use a different name.
101
102 The import library for gcc is called libgnurx.dll.a, but I also
103 distribute a copy of it called libregex.a so that configure scripts
104 that look for -lregex will work.
105
106 Note that none of the wide-character and i18n functionality which is
107 built when this is part of glibc gets compiled. Thus things like
108 character classes most probably work only for single-byte codepages.
109
110 Compiling that stuff would drag in lots of glibc's locale handling
111 stuff which is completely incompatible with Microsoft's C library's
112 locale handling anyway. Also, I am not sure whether the GNU regex code
113 is prepared to handle a two-byte wchar_t, or does it assume that
114 wchar_t is int as it is on Linux? Hmm, actually there is lots of
115 sizeof(wchar_t) in glibc, so maybe it *is* prepared? Maybe
116 later... But anyway, it would presumably mean we should have not just
117 the regex functionality but a larger subset of glibc that would
118 include all locale, ctype, wchar, mbs, etc stuff, presumably ending up
119 with a very large part of glibc (not the system calls,
120 obviously). Indeed, something to save for later, or never...
121
122 --Tor Lillqvist <[email protected]>, <[email protected]>