]>
The Tcpdump Group git mirrors - libpcap/blob - pcap-config.in
4 # Script to give the appropriate compiler flags and linker flags
5 # to use when building code that uses libpcap.
27 show_additional_libs
=1
32 if [ "@V_RPATH_OPT@" != "" ]
35 # If libdir isn't /usr/lib, add it to the run-time linker path.
37 if [ "@libdir@" != "/usr/lib" ]
39 RPATH
=@V_RPATH_OPT@@libdir@
45 # Include LIBS so that the flags include libraries containing
46 # routines that libpcap uses.
48 if [ "$show_cflags" = 1 -a "$show_libs" = 1 ]
50 echo "-I@includedir@ -L@libdir@ -lpcap @LIBS@"
51 elif [ "$show_cflags" = 1 -a "$show_additional_libs" = 1 ]
53 echo "-I@includedir@ -L@libdir@ @LIBS@"
54 elif [ "$show_cflags" = 1 ]
57 elif [ "$show_libs" = 1 ]
59 echo "-L@libdir@ -lpcap @LIBS@"
60 elif [ "$show_additional_libs" = 1 ]
66 # Omit LIBS - libpcap is assumed to be linked with those
67 # libraries, so there's no need to do so explicitly.
69 if [ "$show_cflags" = 1 -a "$show_libs" = 1 ]
71 echo "-I@includedir@ -L@libdir@ $RPATH -lpcap"
72 elif [ "$show_cflags" = 1 -a "$show_additional_libs" = 1 ]
75 elif [ "$show_cflags" = 1 ]
78 elif [ "$show_libs" = 1 ]
80 echo "-L@libdir@ $RPATH -lpcap"