Make libmaxminddb build configurable. (#1154)
This commit is contained in:
+8
-6
@@ -219,12 +219,14 @@ if test "${with_pcre+set}" = set; then :
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
dnl> GeoIP
|
dnl> GeoIP
|
||||||
AC_CHECK_LIB([maxminddb], [MMDB_lookup_sockaddr])
|
AC_ARG_WITH(maxminddb, [ --with-maxminddb Enable nDPI build with libmaxminddb])
|
||||||
AC_HAVE_HEADERS(maxminddb.h)
|
if test "${with_maxminddb+set}" = set; then :
|
||||||
if test ".${ac_cv_lib_maxminddb_MMDB_lookup_sockaddr}" = ".yes" &&
|
AC_CHECK_LIB([maxminddb], [MMDB_lookup_sockaddr])
|
||||||
test ".${ac_cv_header_maxminddb_h}" = ".yes"; then
|
AC_HAVE_HEADERS(maxminddb.h)
|
||||||
ADDITIONAL_LIBS="${ADDITIONAL_LIBS} -lmaxminddb"
|
if test ".${ac_cv_lib_maxminddb_MMDB_lookup_sockaddr}" = ".yes" && test ".${ac_cv_header_maxminddb_h}" = ".yes"; then
|
||||||
AC_DEFINE_UNQUOTED(HAVE_MAXMINDDB, 1, [MaxMind DB support])
|
ADDITIONAL_LIBS="${ADDITIONAL_LIBS} -lmaxminddb"
|
||||||
|
AC_DEFINE_UNQUOTED(HAVE_MAXMINDDB, 1, [MaxMind DB support])
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl> TCP segments management (buffer, sort and reassembly the segments)
|
dnl> TCP segments management (buffer, sort and reassembly the segments)
|
||||||
|
|||||||
Reference in New Issue
Block a user