summaryrefslogtreecommitdiff
path: root/pcap-config.in
diff options
context:
space:
mode:
authorCheoleun Moon <chleun.moon@samsung.com>2019-10-17 19:20:32 +0900
committerCheoleun Moon <chleun.moon@samsung.com>2019-10-17 19:22:32 +0900
commit5ba315c303f1b918aecaf290de2428eb0a1116ba (patch)
tree3e7f0fbfafdf260490332e028fb07a8a903b4081 /pcap-config.in
parenta2db57476cfba84fc739ff1c5d907f03c7058257 (diff)
downloadlibpcap-5ba315c303f1b918aecaf290de2428eb0a1116ba.tar.gz
libpcap-5ba315c303f1b918aecaf290de2428eb0a1116ba.tar.bz2
libpcap-5ba315c303f1b918aecaf290de2428eb0a1116ba.zip
Imported Upstream version 1.9.1upstream/1.9.1upstream
Change-Id: I8ccc371679c730299ebe8068ed5af0ae033c4f7d Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Diffstat (limited to 'pcap-config.in')
-rw-r--r--pcap-config.in9
1 files changed, 7 insertions, 2 deletions
diff --git a/pcap-config.in b/pcap-config.in
index 206be3b..54ca42f 100644
--- a/pcap-config.in
+++ b/pcap-config.in
@@ -4,12 +4,17 @@
# Script to give the appropriate compiler flags and linker flags
# to use when building code that uses libpcap.
#
+# These variables come from the configure script, so includedir and
+# libdir may be defined in terms of prefix and exec_prefix, so the
+# latter must be defined as well.
+#
prefix="@prefix@"
exec_prefix="@exec_prefix@"
includedir="@includedir@"
libdir="@libdir@"
V_RPATH_OPT="@V_RPATH_OPT@"
LIBS="@LIBS@"
+PACKAGE_NAME="@PACKAGE_NAME@"
static=0
show_cflags=0
@@ -75,7 +80,7 @@ else
#
if [ "$show_cflags" = 1 -a "$show_libs" = 1 ]
then
- echo "-I$includedir -L$libdir $RPATH -lpcap"
+ echo "-I$includedir -L$libdir $RPATH -l$PACKAGE_NAME"
elif [ "$show_cflags" = 1 -a "$show_additional_libs" = 1 ]
then
echo "-I$includedir"
@@ -84,6 +89,6 @@ else
echo "-I$includedir"
elif [ "$show_libs" = 1 ]
then
- echo "-L$libdir $RPATH -lpcap"
+ echo "-L$libdir $RPATH -l$PACKAGE_NAME"
fi
fi