Merge branch 'dev' of https://github.com/ntop/nDPI into dev
This commit is contained in:
+17
-9
@@ -54,16 +54,24 @@ fi
|
|||||||
|
|
||||||
HS_LIB=
|
HS_LIB=
|
||||||
HS_INC=
|
HS_INC=
|
||||||
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_ARG_WITH(hyperscan, [ --with-hyperscan Enable nDPI build with Intel Hyperscan])
|
||||||
AC_CHECK_LIB([m], [pow])
|
|
||||||
AC_CHECK_LIB([stdc++], [main])
|
if test "${with_hyperscan+set}" = set; then
|
||||||
HS_INC=`pkg-config --cflags libhs`
|
BKP=$LIBS
|
||||||
HS_LIB=`pkg-config --libs libhs`
|
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])
|
||||||
|
HS_INC=`pkg-config --cflags libhs`
|
||||||
|
HS_LIB=`pkg-config --libs libhs`
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT([Intel Hyperscan not found, exiting. See https://github.com/intel/hyperscan/blob/master/doc/dev-reference/getting_started.rst for install/build instructions])
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -f $PCAP_HOME/libpcap/libpcap.a; then :
|
if test -f $PCAP_HOME/libpcap/libpcap.a; then :
|
||||||
|
|||||||
@@ -26,6 +26,9 @@
|
|||||||
|
|
||||||
#include "ndpi_define.h"
|
#include "ndpi_define.h"
|
||||||
|
|
||||||
|
/* Needed to have access to HAVE_* defines */
|
||||||
|
#include "ndpi_config.h"
|
||||||
|
|
||||||
/* NDPI_LOG_LEVEL */
|
/* NDPI_LOG_LEVEL */
|
||||||
typedef enum {
|
typedef enum {
|
||||||
NDPI_LOG_ERROR,
|
NDPI_LOG_ERROR,
|
||||||
|
|||||||
+1
-1
@@ -47,7 +47,7 @@
|
|||||||
#include "third_party/src/hash.c"
|
#include "third_party/src/hash.c"
|
||||||
|
|
||||||
#ifdef HAVE_HYPERSCAN
|
#ifdef HAVE_HYPERSCAN
|
||||||
#include <hs.h>
|
#include <hs/hs.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_HYPERSCAN
|
#ifdef HAVE_HYPERSCAN
|
||||||
|
|||||||
Reference in New Issue
Block a user