/[pcre]/code/trunk/NON-AUTOTOOLS-BUILD
ViewVC logotype

Diff of /code/trunk/NON-AUTOTOOLS-BUILD

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

revision 982 by ph10, Wed Jun 20 15:15:27 2012 UTC revision 1007 by ph10, Fri Aug 17 16:47:49 2012 UTC
# Line 50  the .generic versions are not used. Line 50  the .generic versions are not used.
50  GENERIC INSTRUCTIONS FOR THE PCRE C LIBRARY  GENERIC INSTRUCTIONS FOR THE PCRE C LIBRARY
51    
52  The following are generic instructions for building the PCRE C library "by  The following are generic instructions for building the PCRE C library "by
53  hand":  hand". If you are going to use CMake, this section does not apply to you; you
54    can skip ahead to the CMake section.
55    
56   (1) Copy or rename the file config.h.generic as config.h, and edit the macro   (1) Copy or rename the file config.h.generic as config.h, and edit the macro
57       settings that it contains to whatever is appropriate for your environment.       settings that it contains to whatever is appropriate for your environment.
# Line 106  hand": Line 107  hand":
107         pcre_fullinfo.c         pcre_fullinfo.c
108         pcre_get.c         pcre_get.c
109         pcre_globals.c         pcre_globals.c
110           pcre_jit_compile.c
111         pcre_maketables.c         pcre_maketables.c
112         pcre_newline.c         pcre_newline.c
113         pcre_ord2utf8.c         pcre_ord2utf8.c
# Line 122  hand": Line 124  hand":
124       an unusual compiler) so that all included PCRE header files are first       an unusual compiler) so that all included PCRE header files are first
125       sought in the current directory. Otherwise you run the risk of picking up       sought in the current directory. Otherwise you run the risk of picking up
126       a previously-installed file from somewhere else.       a previously-installed file from somewhere else.
127    
128         Note that you must still compile pcre_jit_compile.c, even if you have not
129         defined SUPPORT_JIT in config.h, because when JIT support is not
130         configured, dummy functions are compiled. When JIT support IS configured,
131         pcre_jit_compile.c #includes sources from the sljit subdirectory, where
132         there should be 16 files, all of whose names begin with "sljit".
133    
134   (6) If you have defined SUPPORT_JIT in config.h, you must also compile   (6) Now link all the compiled code into an object library in whichever form
   
        pcre_jit_compile.c  
   
      This file #includes sources from the sljit subdirectory, where there  
      should be 16 files, all of whose names begin with "sljit".  
   
  (7) Now link all the compiled code into an object library in whichever form  
135       your system keeps such libraries. This is the basic PCRE C 8-bit library.       your system keeps such libraries. This is the basic PCRE C 8-bit library.
136       If your system has static and shared libraries, you may have to do this       If your system has static and shared libraries, you may have to do this
137       once for each type.       once for each type.
138    
139   (8) If you want to build a 16-bit library (as well as, or instead of the 8-bit   (7) If you want to build a 16-bit library (as well as, or instead of the 8-bit
140       library) repeat steps 5-7 with the following files:       library) repeat steps 5-6 with the following files:
141    
142         pcre16_byte_order.c         pcre16_byte_order.c
143         pcre16_chartables.c         pcre16_chartables.c
# Line 147  hand": Line 148  hand":
148         pcre16_fullinfo.c         pcre16_fullinfo.c
149         pcre16_get.c         pcre16_get.c
150         pcre16_globals.c         pcre16_globals.c
151         pcre16_jit_compile.c (if SUPPORT_JIT is defined)         pcre16_jit_compile.c
152         pcre16_maketables.c         pcre16_maketables.c
153         pcre16_newline.c         pcre16_newline.c
154         pcre16_ord2utf16.c         pcre16_ord2utf16.c
# Line 161  hand": Line 162  hand":
162         pcre16_version.c         pcre16_version.c
163         pcre16_xclass.c         pcre16_xclass.c
164    
165   (9) If you want to build the POSIX wrapper functions (which apply only to the   (8) If you want to build the POSIX wrapper functions (which apply only to the
166       8-bit library), ensure that you have the pcreposix.h file and then compile       8-bit library), ensure that you have the pcreposix.h file and then compile
167       pcreposix.c (remembering -DHAVE_CONFIG_H if necessary). Link the result       pcreposix.c (remembering -DHAVE_CONFIG_H if necessary). Link the result
168       (on its own) as the pcreposix library.       (on its own) as the pcreposix library.
169    
170  (10) The pcretest program can be linked with either or both of the 8-bit and  (9)  The pcretest program can be linked with either or both of the 8-bit and
171       16-bit libraries (depending on what you selected in config.h). Compile       16-bit libraries (depending on what you selected in config.h). Compile
172       pcretest.c and pcre_printint.c (again, don't forget -DHAVE_CONFIG_H) and       pcretest.c and pcre_printint.c (again, don't forget -DHAVE_CONFIG_H) and
173       link them together with the appropriate library/ies. If you compiled an       link them together with the appropriate library/ies. If you compiled an
174       8-bit library, pcretest also needs the pcreposix wrapper library unless       8-bit library, pcretest also needs the pcreposix wrapper library unless
175       you compiled it with -DNOPOSIX.       you compiled it with -DNOPOSIX.
176    
177  (11) Run pcretest on the testinput files in the testdata directory, and check  (10) Run pcretest on the testinput files in the testdata directory, and check
178       that the output matches the corresponding testoutput files. There are       that the output matches the corresponding testoutput files. There are
179       comments about what each test does in the section entitled "Testing PCRE"       comments about what each test does in the section entitled "Testing PCRE"
180       in the README file. If you compiled both an 8-bit and a 16-bit library,       in the README file. If you compiled both an 8-bit and a 16-bit library,
# Line 193  hand": Line 194  hand":
194       locale to "french" rather than "fr_FR", and there some minor output       locale to "french" rather than "fr_FR", and there some minor output
195       differences.       differences.
196    
197  (12) If you have built PCRE with SUPPORT_JIT, the JIT features will be tested  (11) If you have built PCRE with SUPPORT_JIT, the JIT features will be tested
198       by the testdata files. However, you might also like to build and run       by the testdata files. However, you might also like to build and run
199       the JIT test program, pcre_jit_test.c.       the JIT test program, pcre_jit_test.c.
200    
201  (13) If you want to use the pcregrep command, compile and link pcregrep.c; it  (12) If you want to use the pcregrep command, compile and link pcregrep.c; it
202       uses only the basic 8-bit PCRE library (it does not need the pcreposix       uses only the basic 8-bit PCRE library (it does not need the pcreposix
203       library).       library).
204    
# Line 582  build.log file in the root of the packag Line 583  build.log file in the root of the packag
583    
584    
585  ==========================  ==========================
586  Last Updated: 18 June 2012  Last Updated: 17 August 2012

Legend:
Removed from v.982  
changed lines
  Added in v.1007

  ViewVC Help
Powered by ViewVC 1.1.5