summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2022-02-01 17:27:37 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2022-02-14 03:41:24 -0500
commitd68fc6394fd76b19177534fac293d4ce21ea89cf (patch)
treec799c5a6ca65c8a0e41ce2d6c991542af8fec2fc /SConstruct
parent46110127f7b462d994b2161eb020e69fad31cae8 (diff)
downloadlighttpd-git-d68fc6394fd76b19177534fac293d4ce21ea89cf.tar.gz
[mod_deflate] --with-libdeflate to use libdeflate
configure --with-libdeflate option to use libdeflate (must also configure --enable-mmap for mod_deflate to use libdeflate on input files larger than 64kB; libdeflate not used on files <= 64kB)
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct10
1 files changed, 10 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index c837de1e..c6ab650b 100644
--- a/SConstruct
+++ b/SConstruct
@@ -244,6 +244,7 @@ vars.AddVariables(
BoolVariable('with_brotli', 'enable brotli compression', 'no'),
PackageVariable('with_dbi', 'enable dbi support', 'no'),
BoolVariable('with_fam', 'enable FAM/gamin support', 'no'),
+ BoolVariable('with_libdeflate', 'enable libdeflate compression', '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'),
@@ -332,6 +333,7 @@ if 1:
LIBCRYPT = '',
LIBCRYPTO = '',
LIBDBI = '',
+ LIBDEFLATE = '',
LIBDL = '',
LIBGNUTLS = '',
LIBGSSAPI_KRB5 = '',
@@ -531,6 +533,14 @@ if 1:
)
autoconf.haveFunc('FAMNoExists')
+ if env['with_libdeflate']:
+ if not autoconf.CheckLibWithHeader('deflate', 'libdeflate.h', 'C'):
+ fail("Couldn't find libdeflate")
+ autoconf.env.Append(
+ CPPFLAGS = [ '-DHAVE_LIBDEFLATE' ],
+ LIBDEFLATE = 'libdeflate',
+ )
+
if env['with_maxminddb']:
if not autoconf.CheckLibWithHeader('maxminddb', 'maxminddb.h', 'C'):
fail("Couldn't find maxminddb")