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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 42 by nigel, Sat Feb 24 21:39:17 2007 UTC revision 43 by nigel, Sat Feb 24 21:39:21 2007 UTC
# Line 6  entirely of code written in Standard C, Line 6  entirely of code written in Standard C,
6  on any machine with a Standard C compiler and library, using normal compiling  on any machine with a Standard C compiler and library, using normal compiling
7  commands to do the following:  commands to do the following:
8    
9  (1) Copy or rename the file config.in as config.h. You should not have to  (1) Copy or rename the file config.in as config.h, and change the macros that
10  change any settings inside it for a Standard C environment.  define HAVE_STRERROR and HAVE_MEMMOVE to define them as 1 rather than 0.
11    Unfortunately, because of the way Unix autoconf works, the default setting has
12    to be 0.
13    
14    (2) Copy or rename the file pcre.in as pcre.h, and change the macro definitions
15    for PCRE_MAJOR, PCRE_MINOR, and PCRE_DATE near its start to the values set in
16    configure.in.
17    
18  (2) Compile dftables.c as a stand-alone program, and then run it with  (3) Compile dftables.c as a stand-alone program, and then run it with
19  the standard output sent to chartables.c. This generates a set of standard  the standard output sent to chartables.c. This generates a set of standard
20  character tables.  character tables.
21    
22  (3) Compile maketables.c, get.c, study.c and pcre.c and link them all  (4) Compile maketables.c, get.c, study.c and pcre.c and link them all
23  together into an object library in whichever form your system keeps such  together into an object library in whichever form your system keeps such
24  libraries. This is the pcre library (chartables.c gets included by means of an  libraries. This is the pcre library (chartables.c gets included by means of an
25  #include directive).  #include directive).
26    
27  (4) Similarly, compile pcreposix.c and link it as the pcreposix library.  (5) Similarly, compile pcreposix.c and link it as the pcreposix library.
28    
29  (5) Compile the test program pcretest.c. This needs the functions in the  (6) Compile the test program pcretest.c. This needs the functions in the
30  pcre and pcreposix libraries when linking.  pcre and pcreposix libraries when linking.
31    
32  (6) Run pcretest on the testinput files in the testdata directory, and check  (7) Run pcretest on the testinput files in the testdata directory, and check
33  that the output matches the corresponding testoutput files. You must use the  that the output matches the corresponding testoutput files. You must use the
34  -i option when checking testinput2.  -i option when checking testinput2.
35    

Legend:
Removed from v.42  
changed lines
  Added in v.43

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12