ongrep

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

commit fbf948551a9cc2e63a2b87130b4df0914f909d42
parent 1bfb4658e7f2e00938b665d9ab983baac9a565cb
Author: Jordan Ritter <jpr5@darkridge.com>
Date:   Sat, 25 Jun 2005 22:28:45 +0000

add new section for emitting configuration details, such as things affected by cmdline options

Diffstat:
Mconfigure.in | 33+++++++++++++++++++++++++++++++--
1 file changed, 31 insertions(+), 2 deletions(-)

diff --git a/configure.in b/configure.in @@ -196,7 +196,8 @@ unsigned short bar = foo.source; *bsd*) AC_SUBST(OS, BSD) - echo + if test "$USE_PCAP_RESTART" = "0"; then + AC_MSG_WARN( Your OS ($target_os) may have an old libpcap installation. If the resulting ngrep binary segfaults when a BPF filter is specified @@ -205,6 +206,8 @@ the option ``--disable-pcap-restart''. ) sleep 3 + fi + ;; *solaris*) @@ -388,7 +391,6 @@ AC_DEFINE_UNQUOTED(HAVE_DLT_LOOP, $HAVE_DLT_LOOP) AC_DEFINE_UNQUOTED(HAVE_DLT_LINUX_SLL, $HAVE_DLT_LINUX_SLL) - dnl dnl And the PCAP library.. dnl @@ -425,6 +427,33 @@ AC_SUBST(EXTRA_LIBS) dnl +dnl Emit configuration messages about any flags specified. +dnl + +echo + +if test "$HAVE_DUMB_UDPHDR" = "1"; then + echo "CONFIG: support for broken redhat glibc udphdr enabled" +fi + +if test "$USE_PCAP_RESTART" = "0"; then + echo "CONFIG: pcap restart logic disabled" +fi + +if test "$USE_IPv6" = "1"; then + echo "CONFIG: ipv6 support enabled" +else + echo "CONFIG: ipv6 support disabled" +fi + +if test "$USE_DROPPRIVS" = "1"; then + echo "CONFIG: privilege dropping enabled, using \"$DROPPRIVS_USER\"" +else + echo "CONFIG: privilege dropping disabled" +fi + + +dnl dnl And we're done. dnl