blob: 91f4dee5db2b0af7d3ba49bb1014d843113cb0be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
#!@SHELL@
#
# Libnet 1.2 libnet-config compilation script
# (c) 1998 - 2004 Mike D. Schiffman <mike@infonexus.com>
#
# Script to give the appropriate compiler and linker flags
# to use when building code that uses libnet.
# @configure_input@
libnet_defines="@LIBNET_CONFIG_DEFINES@"
libnet_cflags="@LIBNET_CONFIG_CFLAGS@"
libnet_libs="@LIBNET_CONFIG_LIBS@ -lnet"
usage()
{
cat <<EOF
Usage: libnet-config [OPTIONS]
Options:
--libs print library linking information
--cflags print compiler flags
--prefix print libnet install prefix
--defines print pre-processor definitions
--version print libnet version
See the libnet-config man page for more information.
EOF
exit $1
}
if test $# -eq 0; then
usage 1 1>&2
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--help)
usage 0
;;
--libs)
echo_libs=yes
;;
--cflags)
echo_cflags=yes
;;
--prefix)
echo @prefix@
;;
--defines)
echo_defines=yes
;;
--version)
echo @VERSION@
;;
*)
usage 1 1>&2
esac
shift
done
if test "$echo_libs" = "yes"; then
echo -L@libdir@ $libnet_libs @LIBS@
fi
if test "$echo_cflags" = "yes"; then
echo -I@includedir@ $libnet_cflags
fi
if test "$echo_defines" = "yes"; then
echo $libnet_defines
fi
# EOF
|