diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2022-09-21 16:49:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-21 16:49:51 +0200 |
commit | 03d217eae60c45288131676b736a9d7ece1baca2 (patch) | |
tree | 648c7971225a4804addfd312164269f83ae0a76b /configure.ac | |
parent | c960bb50f0fed78393f05bba4b05cd55a242d866 (diff) |
Fix CI after nBPF integration (#1746)
Add one CI job testing nBPF
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 16fa37885..8c19a217a 100644 --- a/configure.ac +++ b/configure.ac @@ -13,6 +13,9 @@ AS_IF([test "${with_only_libndpi+set}" = set],[ EXTRA_TARGETS="" ]) +PWD=`pwd` + + AC_ARG_WITH(sanitizer, AS_HELP_STRING([--with-sanitizer], [Build with support for address, undefined and leak sanitizer])) AC_ARG_WITH(thread-sanitizer, AS_HELP_STRING([--with-thread-sanitizer], [Build with support for thread sanitizer])) AC_ARG_WITH(memory-sanitizer, AS_HELP_STRING([--with-memory-sanitizer], [Build with support for memory sanitizer])) @@ -22,6 +25,7 @@ AC_ARG_ENABLE(code-coverage, AS_HELP_STRING([--enable-code-coverage], [Generate AC_ARG_WITH(local-libgcrypt, AS_HELP_STRING([--with-local-libgcrypt], [Build with libgcrypt (if present) instead of the enclosed gcrypt light])) AC_ARG_ENABLE(tls-sigs, AS_HELP_STRING([--enable-tls-sigs], [Enable TLS Client signature algorithm dissection. Rarely used, but requires significantly more memory.])) AC_ARG_ENABLE(npcap, AS_HELP_STRING([--disable-npcap], [msys2 only: Disable linkage against the wpcap/npcap import library in windows/WpdPack/Lib.])) +AC_ARG_WITH(nbpf-path, AS_HELP_STRING([--with-nbpf-path], [nBPF library custom path; default: ${PWD}/../PF_RING/userland/nbpf]),[NBPF_HOME=$withval],[NBPF_HOME=${PWD}/../PF_RING/userland/nbpf]) AS_IF([test "x$enable_fuzztargets" = "xyes"], [BUILD_FUZZTARGETS=1], [BUILD_FUZZTARGETS=0]) AM_CONDITIONAL([BUILD_FUZZTARGETS], [test "x$enable_fuzztargets" = "xyes"]) @@ -72,7 +76,6 @@ LT_INIT LT_LIB_M PKG_PROG_PKG_CONFIG -PWD=`pwd` AC_PROG_CC SYSTEM=`uname -s` @@ -198,14 +201,15 @@ fi MACHINE=`uname -m` -AC_MSG_CHECKING([PF_RING nBPF]) -NBPF_HOME=${PWD}/../PF_RING/userland/nbpf +NBPF_ENABLED=0 +AC_MSG_CHECKING([PF_RING nBPF ($NBPF_HOME)]) LIBNBPF=${NBPF_HOME}/libnbpf.a if test -f ${LIBNBPF}; then : ADDITIONAL_LIBS="${ADDITIONAL_LIBS} ${LIBNBPF}" ADDITIONAL_INCS="${ADDITIONAL_INCS} -I${NBPF_HOME}" AC_DEFINE_UNQUOTED(HAVE_NBPF, "1", [PF_RING nBPF is present]) AC_MSG_RESULT(yes) + NBPF_ENABLED=1 else AC_MSG_RESULT(no) fi @@ -388,6 +392,7 @@ AC_SUBST(GPROF_LIBS) AC_SUBST(GPROF_ENABLED) AC_SUBST(USE_HOST_LIBGCRYPT) AC_SUBST(PCRE_ENABLED) +AC_SUBST(NBPF_ENABLED) AC_SUBST(HANDLE_TLS_SIGS) AC_SUBST(DISABLE_NPCAP) AC_SUBST(EXE_SUFFIX) |