1 .\" Copyright (c) 1987, 1988, 1989, 1990, 1991, 1992, 1994, 1995, 1996, 1997
2 .\" The Regents of the University of California. All rights reserved.
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that: (1) source code distributions
7 .\" retain the above copyright notice and this paragraph in its entirety, (2)
8 .\" distributions including binary code include the above copyright notice and
9 .\" this paragraph in its entirety in the documentation or other materials
10 .\" provided with the distribution, and (3) all advertising materials mentioning
11 .\" features or use of this software display the following acknowledgement:
12 .\" ``This product includes software developed by the University of California,
13 .\" Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
14 .\" the University nor the names of its contributors may be used to endorse
15 .\" or promote products derived from this software without specific prior
16 .\" written permission.
17 .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
18 .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19 .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21 .TH PCAP\-CONFIG 1 "22 December 2024"
23 pcap-config \- write libpcap compiler and linker flags to standard output
40 .B \-\-additional\-libs
46 .B \-\-static\-pcap\-only
53 writes to the standard output various compiler and linker flags required to
54 build a user program with libpcap. By default, it writes flags appropriate
55 for building with a dynamically\-linked version of libpcap; see below
56 for static linking. Depending on the manner of libpcap installation, some
57 options or their combinations may produce empty output \- this is by design.
62 Produce a help message and exit.
66 Produce libpcap version and exit. The version is the contents of
68 file in libpcap source tree rather than the result of
69 .BR \%pcap_lib_version (3PCAP).
75 compiler flag required to include libpcap's header files.
83 linker flags required to link with libpcap, including
85 flags for libraries required by libpcap.
88 .B \-\-additional\-libs
93 linker flags for libraries required by libpcap, but not the
95 flag to link with libpcap itself.
102 .B \-\-additional\-libs
103 to produce linker flags appropriate for static linking with libpcap.
106 .B \-\-static\-pcap\-only
110 .B \-\-additional\-libs
111 to produce linker flags appropriate for static linking with libpcap and
112 dynamic linking with all other libraries, including libraries required by
117 exits with a non-zero status when invoked with an invalid command\-line
118 option, and with status 0 otherwise.
120 .SH BACKWARD COMPATIBILITY
124 flag became available in libpcap release 1.10.3.
126 Before libpcap release 1.10.2
128 did not treat invalid command\-line options as an error. The
129 .B \-\-static\-pcap\-only
130 flag became available in libpcap release 1.10.2.
134 flag became available in libpcap release 1.1.0.