Browse Source

[meson] add missing libmaxminddb section

Fixes the following error when building with -Dwith_maxminddb=true:

meson.build:916:1: ERROR: Unknown variable "libmaxminddb".

A full log can be found at meson-logs/meson-log.txt

Signed-off-by: Rosen Penev <rosenp@gmail.com>
personal/stbuehler/ci-build
Rosen Penev 12 months ago
committed by Glenn Strauss
parent
commit
fd2a12d636
  1. 8
      src/meson.build

8
src/meson.build

@ -256,6 +256,14 @@ if get_option('with_fam')
conf_data.set('HAVE_FAM_H', true)
endif
libmaxminddb = []
if get_option('with_maxminddb')
libmaxminddb = [ compiler.find_library('maxminddb') ]
if not(compiler.has_function('MMDB_open', args: defs, dependencies: libmaxminddb, prefix: '#include <maxminddb.h>'))
error('Couldn\'t find maxminddb.h or MMDB_open in lib maxminddb')
endif
endif
libgeoip = []
if get_option('with_geoip')
libgeoip = dependency('geoip', required: false)

Loading…
Cancel
Save