aboutsummaryrefslogtreecommitdiff
path: root/configure.seed
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2018-05-10 23:46:35 +0200
committerLuca Deri <deri@ntop.org>2018-05-10 23:46:35 +0200
commit50216991bd41f0cdfea599a76ace08ebd00501d3 (patch)
tree6e7ba56f8f8b093f61577d2f61af5542748ecff9 /configure.seed
parent3707553906027000fd189f93d131b68f8d886d54 (diff)
Improved hyperscan support and category definition
Diffstat (limited to 'configure.seed')
-rw-r--r--configure.seed17
1 files changed, 11 insertions, 6 deletions
diff --git a/configure.seed b/configure.seed
index a8ef98f71..a94f891d1 100644
--- a/configure.seed
+++ b/configure.seed
@@ -54,14 +54,19 @@ fi
HS_LIB=
HS_INC=
-AC_ARG_WITH(hyperscan, [ --with-hyperscan Enable Intel Hyperscan (if available)])
-
-if test "${with_hyperscan}" == "yes"; then :
- AC_CHECK_LIB([hs], [hs_compile_multi], AC_DEFINE_UNQUOTED(HAVE_HYPERSCAN, 1, [Intel Hyperscan is present]))
- HS_INC=`pkg-config --cflags libhs`
- HS_LIB=`pkg-config --libs libhs`
+BKP=$LIBS
+LIBS="$LIBS -lstdc++ -lm"
+AC_CHECK_LIB([hs], [hs_compile_multi], AC_DEFINE_UNQUOTED(HAVE_HYPERSCAN, 1, [Intel Hyperscan is present]))
+LIBS=$BKP
+
+if test "x$ac_cv_lib_hs_hs_compile_multi" = xyes; then :
+AC_CHECK_LIB([m], [pow])
+AC_CHECK_LIB([stdc++], [main])
fi
+HS_INC=`pkg-config --cflags libhs`
+HS_LIB=`pkg-config --libs libhs`
+
if test -f $PCAP_HOME/libpcap/libpcap.a; then :
echo "Using libpcap from $PCAP_HOME"
PCAP_INC="-I $PCAP_HOME/libpcap"