aboutsummaryrefslogtreecommitdiff
path: root/pcap-config.in
diff options
context:
space:
mode:
authorGuy Harris <gharris@steve.local>2009-05-22 16:04:25 -0700
committerGuy Harris <gharris@steve.local>2009-05-22 16:04:25 -0700
commit4da1fd615902e1c1c302f5714025ccc184356dda (patch)
tree272546da7658305f39b7e2935ebee6308e6701ea /pcap-config.in
parent6cbbcee6b675be5e63807767ff817ca6b75b7bee (diff)
Add a --additional-libs flag to pcap-config, to write out any additional
libraries needed to link with libpcap; this is to be used by tcpdump when it's linking with ../libpcap/libpcap.a.
Diffstat (limited to 'pcap-config.in')
-rw-r--r--pcap-config.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/pcap-config.in b/pcap-config.in
index 16f4fcb3..d30bf333 100644
--- a/pcap-config.in
+++ b/pcap-config.in
@@ -22,6 +22,10 @@ do
--libs)
show_libs=1
;;
+
+ --additional-libs)
+ show_additional_libs=1
+ ;;
esac
shift
done
@@ -34,12 +38,18 @@ then
if [ "$show_cflags" = 1 -a "$show_libs" = 1 ]
then
echo "-I @includedir@ -L @libdir@ -lpcap @DEPLIBS@"
+ elif [ "$show_cflags" = 1 -a "$show_additional_libs" = 1 ]
+ then
+ echo "-I @includedir@ -L @libdir@ @DEPLIBS@"
elif [ "$show_cflags" = 1 ]
then
echo "-I @includedir@"
elif [ "$show_libs" = 1 ]
then
echo "-L @libdir@ -lpcap @DEPLIBS@"
+ elif [ "$show_additional_libs" = 1 ]
+ then
+ echo "@DEPLIBS@"
fi
else
#
@@ -49,6 +59,9 @@ else
if [ "$show_cflags" = 1 -a "$show_libs" = 1 ]
then
echo "-I @includedir@ -L @libdir@ -lpcap"
+ elif [ "$show_cflags" = 1 -a "$show_additional_libs" = 1 ]
+ then
+ echo "-I @includedir@"
elif [ "$show_cflags" = 1 ]
then
echo "-I @includedir@"