/[pcre]/code/trunk/NON-UNIX-USE
ViewVC logotype

Contents of /code/trunk/NON-UNIX-USE

Parent Directory Parent Directory | Revision Log Revision Log


Revision 41 - (show annotations) (download)
Sat Feb 24 21:39:17 2007 UTC (7 years, 4 months ago) by nigel
File size: 1970 byte(s)
Load pcre-2.08a into code/trunk.

1 Compiling PCRE on non-Unix systems
2 ----------------------------------
3
4 If you want to compile PCRE for a non-Unix system, note that it consists
5 entirely of code written in Standard C, and so should compile successfully
6 on any machine with a Standard C compiler and library, using normal compiling
7 commands to do the following:
8
9 (1) Copy or rename the file config.in as config.h. You should not have to
10 change any settings inside it for a Standard C environment.
11
12 (2) Compile dftables.c as a stand-alone program, and then run it with
13 the standard output sent to chartables.c. This generates a set of standard
14 character tables.
15
16 (3) Compile maketables.c, get.c, study.c and pcre.c and link them all
17 together into an object library in whichever form your system keeps such
18 libraries. This is the pcre library (chartables.c gets included by means of an
19 #include directive).
20
21 (4) Similarly, compile pcreposix.c and link it as the pcreposix library.
22
23 (5) Compile the test program pcretest.c. This needs the functions in the
24 pcre and pcreposix libraries when linking.
25
26 (6) Run pcretest on the testinput files in the testdata directory, and check
27 that the output matches the corresponding testoutput files. You must use the
28 -i option when checking testinput2.
29
30 If you have a system without "configure" but where you can use a Makefile, edit
31 Makefile.in to create Makefile, substituting suitable values for the variables
32 at the head of the file.
33
34 Some help in building a Win32 DLL of PCRE in GnuWin32 environments was
35 contributed by Paul.Sokolovsky@technologist.com. These environments are
36 Mingw32 (http://www.xraylith.wisc.edu/~khan/software/gnu-win32/) and
37 CygWin (http://sourceware.cygnus.com/cygwin/). Paul comments:
38
39 For CygWin, set CFLAGS=-mno-cygwin, and do 'make dll'. You'll get
40 pcre.dll (containing pcreposix also), libpcre.dll.a, and dynamically
41 linked pgrep and pcretest. If you have /bin/sh, run RunTest (three
42 main test go ok, locale not supported).
43
44 ****

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12