summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-07-08 10:16:17 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-07-08 10:16:17 +0200
commitfb9f1275adaa63b6c7791ce224346638f33e0708 (patch)
tree09f9b57d5ff49266d438f5e059557716e10275d2 /configure
parentca6a0798fe39efb3f1258d9b15f7e02d8c546eb3 (diff)
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 <dborkman@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 8 insertions, 0 deletions
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