summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2019-05-20 00:53:20 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2019-05-26 10:21:57 -0400
commit4ac239c40193378ae09f28355530a3a04858065e (patch)
treea122691eb51b4001653f2ad92637ab7f17671e5e /SConstruct
parentef0a2117331ef9d2428f27fe208a5aafa3a4df72 (diff)
downloadlighttpd-git-4ac239c40193378ae09f28355530a3a04858065e.tar.gz
[mod_maxminddb] MaxMind GeoIP2 support
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct9
1 files changed, 9 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index c286aed7..53a46cca 100644
--- a/SConstruct
+++ b/SConstruct
@@ -243,6 +243,7 @@ vars.AddVariables(
BoolVariable('with_fam', 'enable FAM/gamin support', 'no'),
BoolVariable('with_gdbm', 'enable gdbm support', 'no'),
BoolVariable('with_geoip', 'enable GeoIP support', 'no'),
+ BoolVariable('with_maxminddb', 'enable MaxMind GeoIP2 support', 'no'),
BoolVariable('with_krb5', 'enable krb5 auth support', 'no'),
BoolVariable('with_ldap', 'enable ldap auth support', 'no'),
# with_libev not supported
@@ -522,6 +523,14 @@ if 1:
LIBGEOIP = 'GeoIP',
)
+ if env['with_maxminddb']:
+ if not autoconf.CheckLibWithHeader('maxminddb', 'maxminddb.h', 'C'):
+ fail("Couldn't find maxminddb")
+ autoconf.env.Append(
+ CPPFLAGS = [ '-DHAVE_MAXMINDDB' ],
+ LIBMAXMINDDB = 'maxminddb',
+ )
+
if env['with_krb5']:
if not autoconf.CheckLibWithHeader('krb5', 'krb5.h', 'C'):
fail("Couldn't find krb5")