]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
configure: update htp version dependancy
authorEric Leblond <eric@regit.org>
Mon, 18 Feb 2013 09:51:20 +0000 (10:51 +0100)
committerEric Leblond <eric@regit.org>
Fri, 22 Feb 2013 09:13:25 +0000 (10:13 +0100)
configure.ac

index 8ed39655b4dfa55f238d3c7819fa65b51bfde7d1..e5f0abb481fb4c6073cb6d82166ccb49d273e7f1 100644 (file)
@@ -1013,6 +1013,15 @@ AC_INIT(configure.ac)
             echo
             exit 1
         fi
+        PKG_CHECK_MODULES(LIBHTPMAXVERSION, htp <= 0.3.0,[libhtp_maxver_found="yes"],[libhtp_maxver_found="no"])
+        if test "$libhtp_maxver_found" = "no"; then
+            echo
+            echo "   ERROR! libhtp 0.3.x was found but only 0.2.x is supported"
+            echo
+            exit 1
+        fi
+
+
 
         AC_CHECK_LIB([htp], [htp_config_register_request_uri_normalize],AC_DEFINE_UNQUOTED([HAVE_HTP_URI_NORMALIZE_HOOK],[1],[Found htp_config_register_request_uri_normalize function in libhtp]) ,,[-lhtp])
         # check for htp_tx_get_response_headers_raw