Skip to content

Commit

Permalink
Cleanup configure.ac
Browse files Browse the repository at this point in the history
  • Loading branch information
phaag committed Mar 16, 2024
1 parent 70732b2 commit 3b388b8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 5 additions & 5 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ AC_DEFUN([OVS_CHECK_ATOMIC_LIBS],


AC_ARG_ENABLE(devel,
[ --enable-devel compile debug and development code into nfdump; default is NO])
[ --enable-devel compile debug and development code into nfdump; default is NO])

# Which way is better?
if test "${enable_devel}" = "yes" ; then
Expand Down Expand Up @@ -177,7 +177,7 @@ AM_CONDITIONAL([MAXMIND], false)
)

AC_ARG_ENABLE(tor,
[ --enable-tor Build torlookup for tor onion lookups; default is NO],
[ --enable-tor Build torlookup for tor onion lookups; default is NO],
build_tor="yes"
AM_CONDITIONAL(TORLOOKUP, true)
CFLAGS="$CFLAGS -DBUILDTOR"
Expand All @@ -187,7 +187,7 @@ AM_CONDITIONAL(TORLOOKUP, false)
)

AC_ARG_ENABLE(ja4,
[ --enable-ja4 Build with ja4 fingerprinting code; May require a license; default is NO],
[ --enable-ja4 Build with ja4+ fingerprinting code; https://github.com/FoxIO-LLC/ja4/blob/main/LICENSE; default is NO],
build_ja4="yes"
AM_CONDITIONAL(JA4, true)
CFLAGS="$CFLAGS -DBUILDJA4"
Expand Down Expand Up @@ -255,7 +255,7 @@ AM_CONDITIONAL(INFLXDB, false)
)

AC_ARG_ENABLE(nftrack,
[ --enable-nftrack Build nftrack used by PortTracker; default is NO])
[ --enable-nftrack Build nftrack used by PortTracker; default is NO])

AS_IF([test "x$enable_nftrack" = "xyes"],
[
Expand Down Expand Up @@ -300,7 +300,7 @@ AC_ARG_ENABLE(readpcap,
AM_CONDITIONAL(READPCAP, test "$enable_readpcap" = yes)

AC_ARG_ENABLE(nfpcapd,
[ --enable-nfpcapd Build nfpcapd collector to create netflow data from interface or pcap data; default is NO])
[ --enable-nfpcapd Build nfpcapd collector to create netflow data from interface or pcap data; default is NO])

AS_IF([test "x$enable_nfpcapd" = "xyes"],
[
Expand Down
4 changes: 4 additions & 0 deletions src/libnfdump/ja4/ja4.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,17 @@ ja4_t *ja4Process(ssl_t *ssl, uint8_t proto);

/*
* conditional compile ja4s code, if cofigured and ja4 license conditions are met
* map ja4+ calls to the proper function or to the negative result of the function
*/
#ifdef BUILDJA4
int ja4sCheck(char *ja4sString);

// map function calls to proper ja4+ function
ja4_t *_ja4sProcess(ssl_t *ssl, uint8_t proto);
#define ja4sProcess(s, p) _ja4sProcess(s, p)
#else

// replace function calls, if no ja4+ enabled
#define ja4sProcess(s, p) NULL
#endif

Expand Down

0 comments on commit 3b388b8

Please sign in to comment.