diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-01-12 18:29:20 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-01-12 18:29:20 -0500 |
commit | 9211fb3d8680beccb7d3463c093d3f80112b9cd0 (patch) | |
tree | bfa2049dafe51b1007d91de3e41c6215e9640bfa /SConstruct | |
parent | ef28cce5e5ae306342fb9be9657b38e4c41393c6 (diff) | |
download | lighttpd-git-9211fb3d8680beccb7d3463c093d3f80112b9cd0.tar.gz |
[mod_deflate] support Accept-Encoding: zstd
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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']): |