]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/libpcap/pcap-config.1
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / libpcap / pcap-config.1
1 .\" @(#) $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
25 pcap-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
38 When run with the
39 .B \-\-cflags
40 option,
41 .I pcap-config
42 writes to the standard output the
43 .B \-I
44 compiler flags required to include libpcap's header files.
45 When run with the
46 .B \-\-libs
47 option,
48 .I pcap-config
49 writes to the standard output the
50 .B \-L
51 and
52 .B \-l
53 linker flags required to link with libpcap, including
54 .B \-l
55 flags for libraries required by libpcap.
56 When run with the
57 .B \-\-additional-libs
58 option,
59 .I pcap-config
60 writes to the standard output the
61 .B \-L
62 and
63 .B \-l
64 flags for libraries required by libpcap, but not the
65 .B \-lpcap
66 flag to link with libpcap itself.
67 .LP
68 By default, it writes flags appropriate for compiling with a
69 dynamically-linked version of libpcap; the
70 .B \-\-static
71 flag causes it to write flags appropriate for compiling with a
72 statically-linked version of libpcap.
73 .SH "SEE ALSO"
74 pcap(3PCAP)