[Snort-devel] incomplete libnet-detection for --enable-inline
fwendt at ...2745...
Mon Apr 11 08:24:31 EDT 2005
when compiling snort-2.3.2 i ran into a problem where configure would
not detect libnet-1.0.2a which i had installed to
/usr/local/libnet-1.0.2a even though i used --with-libnet-includes and
Looking at configure.in i saw that the checks for libnet which are used
when --enable-inline is given ignore --with-libnet-includes and only
search in /usr/include and /usr/local/include.
The code for --enable-flexresp on the other hand does extensive checks
for libnet and correctly detects it in non-standard locations.
Perhaps someone more knowledgeable could look at configure.in and
add the necessary checks to the code for --enable-inline.
A simple fix which worked for me follows:
--- configure.in 2005-03-10 22:35:43.000000000 +0100
+++ ../modified-snort-2.3.2/configure.in 2005-04-07
@@ -687,7 +687,11 @@
AC_MSG_CHECKING("for libnet.h version 1.0.x")
- libnet_dir="/usr/include /usr/local/include"
+ if test -n "$with_libnet_includes" -a "$with_libnet_includes"
!= "no"; then
+ libnet_dir="/usr/include /usr/local/include"
for i in $libnet_dir; do
if test -r $i/libnet.h; then
More information about the Snort-devel