]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
configure: accept libnet 1.1 and 1.2.
authorEric Leblond <eric@regit.org>
Fri, 13 Sep 2013 11:46:19 +0000 (13:46 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 3 Oct 2013 05:02:04 +0000 (07:02 +0200)
configure.ac

index 75f044b8b8853d3d442db8a62f09058b5b674cde..b7b1ebe6518a969bf10e375e2834da47e8bf26d9 100644 (file)
 
     AC_MSG_CHECKING(for libnet.h version 1.1.x)
     if test "$LIBNET_INC_DIR" != ""; then
-        if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet.h | grep -v 1.1 >/dev/null"; then
+        if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet.h | grep -v '1.[[12]]' >/dev/null"; then
             AC_MSG_RESULT(no)
             LIBNET_DETECT_FAIL="yes"
             LIBNET_FAIL_WARN($libnet_dir)