From fb9f1275adaa63b6c7791ce224346638f33e0708 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Mon, 8 Jul 2013 10:16:17 +0200 Subject: config: check for available databases We need to have: GEOIP_CITY_EDITION_REV1, GEOIP_CITY_EDITION_REV1_V6, GEOIP_COUNTRY_EDITION, GEOIP_COUNTRY_EDITION_V6, GEOIP_ASNUM_EDITION, GEOIP_ASNUM_EDITION_V6. Not all might be available on older versions. Signed-off-by: Daniel Borkmann --- configure | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure b/configure index 63c7d21..bcd59f6 100755 --- a/configure +++ b/configure @@ -177,6 +177,14 @@ check_libgeoip() void main(void) { GeoIP *geoip; + int dbs[] = { + GEOIP_CITY_EDITION_REV1, + GEOIP_CITY_EDITION_REV1_V6, + GEOIP_COUNTRY_EDITION, + GEOIP_COUNTRY_EDITION_V6, + GEOIP_ASNUM_EDITION, + GEOIP_ASNUM_EDITION_V6, + }; } EOF -- cgit v1.2.3-54-g00ecf