/[pcre]/code/trunk/README
ViewVC logotype

Diff of /code/trunk/README

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

revision 287 by ph10, Tue Dec 18 20:11:28 2007 UTC revision 374 by ph10, Fri Sep 5 16:42:28 2008 UTC
# Line 1  Line 1 
1  README file for PCRE (Perl-compatible regular expression library)  README file for PCRE (Perl-compatible regular expression library)
2  -----------------------------------------------------------------  -----------------------------------------------------------------
3    
4  The latest release of PCRE is always available from  The latest release of PCRE is always available in three alternative formats
5    from:
6    
7    ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-xxx.tar.gz    ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-xxx.tar.gz
8      ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-xxx.tar.bz2
9      ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-xxx.zip
10    
11  There is a mailing list for discussion about the development of PCRE at  There is a mailing list for discussion about the development of PCRE at
12    
# Line 119  If you are using HP's ANSI C++ compiler Line 122  If you are using HP's ANSI C++ compiler
122  in the section entitled "Using HP's ANSI C++ compiler (aCC)" below.  in the section entitled "Using HP's ANSI C++ compiler (aCC)" below.
123    
124  The following instructions assume the use of the widely used "configure, make,  The following instructions assume the use of the widely used "configure, make,
125  make install" process. There is also some experimental support for "cmake" in  make install" process. There is also support for CMake in the PCRE
126  the PCRE distribution, but it is incomplete and not documented. However, if you  distribution; there are some comments about using CMake in the NON-UNIX-USE
127  are a "cmake" user, you might want to try it.  file, though it can also be used in Unix-like systems.
128    
129  To build PCRE on a Unix-like system, first run the "configure" command from the  To build PCRE on a Unix-like system, first run the "configure" command from the
130  PCRE distribution directory, with your current directory set to the directory  PCRE distribution directory, with your current directory set to the directory
# Line 258  library. You can read more about them in Line 261  library. You can read more about them in
261    
262    This automatically implies --enable-rebuild-chartables (see above).    This automatically implies --enable-rebuild-chartables (see above).
263    
264  . It is possible to compile pcregrep to use libz and/or libbz2, in order to  . It is possible to compile pcregrep to use libz and/or libbz2, in order to
265    read .gz and .bz2 files (respectively), by specifying one or both of    read .gz and .bz2 files (respectively), by specifying one or both of
266    
267    --enable-pcregrep-libz    --enable-pcregrep-libz
268    --enable-pcregrep-libbz2    --enable-pcregrep-libbz2
269    
270    Of course, the relevant libraries must be installed on your system.    Of course, the relevant libraries must be installed on your system.
271    
272  . It is possible to compile pcretest so that it links with the libreadline  . It is possible to compile pcretest so that it links with the libreadline
273    library, by specifying    library, by specifying
274    
275    --enable-pcretest-libreadline    --enable-pcretest-libreadline
276    
277    If this is done, when pcretest's input is from a terminal, it reads it using    If this is done, when pcretest's input is from a terminal, it reads it using
278    the readline() function. This provides line-editing and history facilities.    the readline() function. This provides line-editing and history facilities.
279    Note that libreadline is GPL-licenced, so if you distribute a binary of    Note that libreadline is GPL-licenced, so if you distribute a binary of
280    pcretest linked in this way, there may be licensing issues.    pcretest linked in this way, there may be licensing issues.
281    
282      Setting this option causes the -lreadline option to be added to the pcretest
283      build. In many operating environments with a sytem-installed readline
284      library this is sufficient. However, in some environments (e.g. if an
285      unmodified distribution version of readline is in use), it may be necessary
286      to specify something like LIBS="-lncurses" as well. This is because, to quote
287      the readline INSTALL, "Readline uses the termcap functions, but does not link
288      with the termcap or curses library itself, allowing applications which link
289      with readline the to choose an appropriate library."
290    
291  The "configure" script builds the following files for the basic C library:  The "configure" script builds the following files for the basic C library:
292    
293  . Makefile is the makefile that builds the library  . Makefile is the makefile that builds the library
# Line 303  script that can be run to recreate the c Line 315  script that can be run to recreate the c
315  contains compiler output from tests that "configure" runs.  contains compiler output from tests that "configure" runs.
316    
317  Once "configure" has run, you can run "make". It builds two libraries, called  Once "configure" has run, you can run "make". It builds two libraries, called
318  libpcre and libpcreposix, a test program called pcretest, a demonstration  libpcre and libpcreposix, a test program called pcretest, and the pcregrep
319  program called pcredemo, and the pcregrep command. If a C++ compiler was found  command. If a C++ compiler was found on your system, "make" also builds the C++
320  on your system, "make" also builds the C++ wrapper library, which is called  wrapper library, which is called libpcrecpp, and some test programs called
321  libpcrecpp, and some test programs called pcrecpp_unittest,  pcrecpp_unittest, pcre_scanner_unittest, and pcre_stringpiece_unittest.
322  pcre_scanner_unittest, and pcre_stringpiece_unittest. Building the C++ wrapper  Building the C++ wrapper can be disabled by adding --disable-cpp to the
323  can be disabled by adding --disable-cpp to the "configure" command.  "configure" command.
324    
325  The command "make check" runs all the appropriate tests. Details of the PCRE  The command "make check" runs all the appropriate tests. Details of the PCRE
326  tests are given below in a separate section of this document.  tests are given below in a separate section of this document.
# Line 360  system. The following are installed (fil Line 372  system. The following are installed (fil
372      pcretest.txt   the pcretest man page      pcretest.txt   the pcretest man page
373      pcregrep.txt   the pcregrep man page      pcregrep.txt   the pcregrep man page
374    
 Note that the pcredemo program that is built by "configure" is *not* installed  
 anywhere. It is a demonstration for programmers wanting to use PCRE.  
   
375  If you want to remove PCRE from your system, you can run "make uninstall".  If you want to remove PCRE from your system, you can run "make uninstall".
376  This removes all the files that "make install" installed. However, it does not  This removes all the files that "make install" installed. However, it does not
377  remove any directories, because these are often shared with other programs.  remove any directories, because these are often shared with other programs.
# Line 634  The distribution should contain the foll Line 643  The distribution should contain the foll
643    pcre_study.c            )    pcre_study.c            )
644    pcre_tables.c           )    pcre_tables.c           )
645    pcre_try_flipped.c      )    pcre_try_flipped.c      )
646    pcre_ucp_searchfuncs.c  )    pcre_ucd.c              )
647    pcre_valid_utf8.c       )    pcre_valid_utf8.c       )
648    pcre_version.c          )    pcre_version.c          )
649    pcre_xclass.c           )    pcre_xclass.c           )
# Line 643  The distribution should contain the foll Line 652  The distribution should contain the foll
652    pcre.h.in               template for pcre.h when built by "configure"    pcre.h.in               template for pcre.h when built by "configure"
653    pcreposix.h             header for the external POSIX wrapper API    pcreposix.h             header for the external POSIX wrapper API
654    pcre_internal.h         header for internal use    pcre_internal.h         header for internal use
655    ucp.h                   ) headers concerned with    ucp.h                   header for Unicode property handling
   ucpinternal.h           )   Unicode property handling  
   ucptable.h              ) (this one is the data table)  
656    
657    config.h.in             template for config.h, which is built by "configure"    config.h.in             template for config.h, which is built by "configure"
658    
# Line 719  The distribution should contain the foll Line 726  The distribution should contain the foll
726    
727  (D) Auxiliary files for cmake support  (D) Auxiliary files for cmake support
728    
729      cmake/COPYING-CMAKE-SCRIPTS
730      cmake/FindPackageHandleStandardArgs.cmake
731      cmake/FindReadline.cmake
732    CMakeLists.txt    CMakeLists.txt
733    config-cmake.h.in    config-cmake.h.in
734    
# Line 743  The distribution should contain the foll Line 753  The distribution should contain the foll
753  Philip Hazel  Philip Hazel
754  Email local part: ph10  Email local part: ph10
755  Email domain: cam.ac.uk  Email domain: cam.ac.uk
756  Last updated: 18 December 2007  Last updated: 05 September 2008

Legend:
Removed from v.287  
changed lines
  Added in v.374

  ViewVC Help
Powered by ViewVC 1.1.5