1 PCRE2-CONFIG(1) General Commands Manual PCRE2-CONFIG(1)
6 pcre2-config - program to return PCRE2 configuration
10 pcre2-config [--prefix] [--exec-prefix] [--version]
11 [--libs8] [--libs16] [--libs32] [--libs-posix]
12 [--cflags] [--cflags-posix]
17 pcre2-config returns the configuration of the installed PCRE2 libraries
18 and the options required to compile a program to use them. Some of the
19 options apply only to the 8-bit, or 16-bit, or 32-bit libraries,
20 respectively, and are not available for libraries that have not been
21 built. If an unavailable option is encountered, the "usage" information
27 --prefix Writes the directory prefix used in the PCRE2 installation
28 for architecture independent files (/usr on many systems,
29 /usr/local on some systems) to the standard output.
32 Writes the directory prefix used in the PCRE2 installation
33 for architecture dependent files (normally the same as --pre-
34 fix) to the standard output.
36 --version Writes the version number of the installed PCRE2 libraries to
39 --libs8 Writes to the standard output the command line options
40 required to link with the 8-bit PCRE2 library (-lpcre2-8 on
43 --libs16 Writes to the standard output the command line options
44 required to link with the 16-bit PCRE2 library (-lpcre2-16 on
47 --libs32 Writes to the standard output the command line options
48 required to link with the 32-bit PCRE2 library (-lpcre2-32 on
52 Writes to the standard output the command line options
53 required to link with PCRE2's POSIX API wrapper library
54 (-lpcre2-posix -lpcre2-8 on many systems).
56 --cflags Writes to the standard output the command line options
57 required to compile files that use PCRE2 (this may include
58 some -I options, but is blank on many systems).
61 Writes to the standard output the command line options
62 required to compile files that use PCRE2's POSIX API wrapper
63 library (this may include some -I options, but is blank on
74 This manual page was originally written by Mark Baker for the Debian
75 GNU/Linux system. It has been subsequently revised as a generic PCRE2
81 Last updated: 28 September 2014