ongrep

A cleaned up fork of ngrep for OpenBSD
git clone git://git.sgregoratto.me/ongrep
Log | Files | Refs | README | LICENSE

commit a7773337ba6f39b1aed5a8eb9e2c0a2496fa9447
parent 50dee1dfb6d9843cbd6876c08758bb44de5324e5
Author: Jordan Ritter <jpr5@darkridge.com>
Date:   Mon, 31 Dec 2001 21:21:32 +0000

changes to provide for --with-pcap-includes=, in case someone put
their includes in an extremely non-standard place.

Diffstat:
Mconfigure.in | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/configure.in b/configure.in @@ -26,13 +26,20 @@ dnl dnl Find ourselves some usable pcap headers. dnl AC_MSG_CHECKING(for a complete set of pcap headers) + possible_dirs="`eval echo -n ${includedir}` \ /usr/include /usr/include/pcap \ /usr/local/include /usr/local/include/pcap \ /usr/share/include /usr/share/include/pcap" + +AC_ARG_WITH(pcap-includes, +[ --with-pcap-includes specify the pcap include directory], +[PCAP_DIR=$withval], +[PCAP_DIR=$possible_dirs]) + pcap_dir="" -for dir in $possible_dirs ; do +for dir in $PCAP_DIR ; do if test -d $dir -a -r "$dir/pcap.h" -a \ -r "$dir/net/bpf.h" ; then if test -n "$pcap_dir" -a "$pcap_dir" != "$dir"; then