1xml2-config(1) 1.2.0 xml2-config(1)
2
3
4
6 xml2-config - script to get information about the installed version of
7 libxml2
8
10 xml2-config [--prefix[=DIR]] [--libs] [--cflags] [--version] [--help]
11
13 xml2-config is a tool that is used to determine the compile and linker
14 flags that should be used to compile and link programs that use
15 libxml2.
16
18 xml2-config accepts the following options:
19
20 --version
21 Print the currently installed version of libxml2 on the stan‐
22 dard output.
23
24 --libs Print the linker flags that are necessary to link a libxml2
25 program. Add --dynamic after --libs to print only shared li‐
26 brary linking information.
27
28 --cflags
29 Print the compiler flags that are necessary to compile a
30 libxml2 program.
31
32 --prefix=PREFIX
33 If specified, use PREFIX instead of the installation prefix
34 that libxml2 was built with when computing the output for the
35 --cflags and --libs options. This option must be specified be‐
36 fore any --libs or --cflags options.
37
39 This manual page was written by Fredrik Hallenberg <hal‐
40 lon@lysator.liu.se>, for the Debian GNU/linux system (but may be used
41 by others).
42
43
44
45Version 3 April 2022 xml2-config(1)