From 7f9a18fd054211de0eb24f2340d4c40026c36c6c Mon Sep 17 00:00:00 2001 From: Zied Aouini Date: Sun, 14 Mar 2021 10:47:28 +0100 Subject: Make libmaxminddb build configurable. (#1154) --- configure.seed | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/configure.seed b/configure.seed index d4626146f..9af6b6987 100644 --- a/configure.seed +++ b/configure.seed @@ -219,12 +219,14 @@ if test "${with_pcre+set}" = set; then : fi dnl> GeoIP -AC_CHECK_LIB([maxminddb], [MMDB_lookup_sockaddr]) -AC_HAVE_HEADERS(maxminddb.h) -if test ".${ac_cv_lib_maxminddb_MMDB_lookup_sockaddr}" = ".yes" && - test ".${ac_cv_header_maxminddb_h}" = ".yes"; then - ADDITIONAL_LIBS="${ADDITIONAL_LIBS} -lmaxminddb" - AC_DEFINE_UNQUOTED(HAVE_MAXMINDDB, 1, [MaxMind DB support]) +AC_ARG_WITH(maxminddb, [ --with-maxminddb Enable nDPI build with libmaxminddb]) +if test "${with_maxminddb+set}" = set; then : + AC_CHECK_LIB([maxminddb], [MMDB_lookup_sockaddr]) + AC_HAVE_HEADERS(maxminddb.h) + if test ".${ac_cv_lib_maxminddb_MMDB_lookup_sockaddr}" = ".yes" && test ".${ac_cv_header_maxminddb_h}" = ".yes"; then + ADDITIONAL_LIBS="${ADDITIONAL_LIBS} -lmaxminddb" + AC_DEFINE_UNQUOTED(HAVE_MAXMINDDB, 1, [MaxMind DB support]) + fi fi dnl> TCP segments management (buffer, sort and reassembly the segments) -- cgit v1.2.3