blob: 021f4504c087e20b0d20ba2abeeedf5f890e1fc5 [file] [log] [blame]
JP Abgrall511eca32014-02-12 13:46:45 -08001.\" @(#) $Header: /tcpdump/master/libpcap/pcap-config.1,v 1.1 2008-09-23 18:04:01 guy Exp $ (LBL)
2.\"
3.\" Copyright (c) 1987, 1988, 1989, 1990, 1991, 1992, 1994, 1995, 1996, 1997
4.\" The Regents of the University of California. All rights reserved.
5.\" All rights reserved.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that: (1) source code distributions
9.\" retain the above copyright notice and this paragraph in its entirety, (2)
10.\" distributions including binary code include the above copyright notice and
11.\" this paragraph in its entirety in the documentation or other materials
12.\" provided with the distribution, and (3) all advertising materials mentioning
13.\" features or use of this software display the following acknowledgement:
14.\" ``This product includes software developed by the University of California,
15.\" Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
16.\" the University nor the names of its contributors may be used to endorse
17.\" or promote products derived from this software without specific prior
18.\" written permission.
19.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
20.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
21.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
22.\"
23.TH PCAP-CONFIG 1 "26 March 2009"
24.SH NAME
25pcap-config \- write libpcap compiler and linker flags to standard output
26.SH SYNOPSIS
27.na
28.B pcap-config
29[
30.B \-\-static
31]
32[
33.B \-\-cflags | \-\-libs | \-\-additional-libs
34]
35.ad
36.SH DESCRIPTION
37.LP
38When run with the
39.B \-\-cflags
40option,
41.I pcap-config
42writes to the standard output the
43.B \-I
44compiler flags required to include libpcap's header files.
45When run with the
46.B \-\-libs
47option,
48.I pcap-config
49writes to the standard output the
50.B \-L
51and
52.B \-l
53linker flags required to link with libpcap, including
54.B \-l
55flags for libraries required by libpcap.
56When run with the
57.B \-\-additional-libs
58option,
59.I pcap-config
60writes to the standard output the
61.B \-L
62and
63.B \-l
64flags for libraries required by libpcap, but not the
65.B \-lpcap
66flag to link with libpcap itself.
67.LP
68By default, it writes flags appropriate for compiling with a
69dynamically-linked version of libpcap; the
70.B \-\-static
71flag causes it to write flags appropriate for compiling with a
72statically-linked version of libpcap.
73.SH "SEE ALSO"
74pcap(3PCAP)