summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-01-12 18:29:20 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2021-01-12 18:29:20 -0500
commit9211fb3d8680beccb7d3463c093d3f80112b9cd0 (patch)
treebfa2049dafe51b1007d91de3e41c6215e9640bfa /SConstruct
parentef28cce5e5ae306342fb9be9657b38e4c41393c6 (diff)
downloadlighttpd-git-9211fb3d8680beccb7d3463c093d3f80112b9cd0.tar.gz
[mod_deflate] support Accept-Encoding: zstd
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct10
1 files changed, 10 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 9b524f8d..1873a603 100644
--- a/SConstruct
+++ b/SConstruct
@@ -269,6 +269,7 @@ vars.AddVariables(
PackageVariable('with_xml', 'enable xml support (required for webdav props)', 'no'),
BoolVariable('with_xxhash', 'build with system-provided xxhash', 'no'),
BoolVariable('with_zlib', 'enable deflate/gzip compression', 'no'),
+ BoolVariable('with_zstd', 'enable zstd compression', 'no'),
BoolVariable('with_all', 'enable all with_* features', 'no'),
)
@@ -357,6 +358,7 @@ if 1:
LIBXML2 = '',
LIBXXHASH = '',
LIBZ = '',
+ LIBZSTD = '',
)
autoconf.haveCHeaders([
@@ -731,6 +733,14 @@ if 1:
LIBZ = 'z',
)
+ if env['with_zstd']:
+ if not autoconf.CheckLibWithHeader('zstd', 'zstd.h', 'C'):
+ fail("Couldn't find zstd")
+ autoconf.env.Append(
+ CPPFLAGS = [ '-DHAVE_ZSTD_H', '-DHAVE_ZSTD' ],
+ LIBZSTD = 'zstd',
+ )
+
env = autoconf.Finish()
if re.compile("cygwin|mingw|midipix").search(env['PLATFORM']):