summaryrefslogtreecommitdiffhomepage
path: root/auto/sources
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2024-11-20 16:47:06 +0000
committerAndrew Clayton <a.clayton@nginx.com>2025-04-14 18:11:53 +0100
commitc9b2ecd28407538d3ef0b48bba944440695196ed (patch)
tree4138739ecd81a804b736d68c820b338e621f3218 /auto/sources
parent804ca81fd958cd29bd52296063224fc73d40c42f (diff)
downloadunit-c9b2ecd28407538d3ef0b48bba944440695196ed.tar.gz
unit-c9b2ecd28407538d3ef0b48bba944440695196ed.tar.bz2
http: Wire up HTTP compression to the build system
This allows to actually build unit with support for zlib, zstd and brotli compression. Any or all can be specified. E.g. $ ./configure --zlib ... $ ./configure --zlib --zstd --brotli ... During configure you will see if support for the requested compressions has been found and what version of the library is being used. E.g. ... checking for zlib ... found + zlib version: 1.3.1.zlib-ng checking for zstd ... found + zstd version: 1.5.6 checking for brotli ... found + brotli version: 1.1.0 ... Unit configuration summary: ... zlib support: .............. YES zstd support: .............. YES brotli support: ............ YES ... Co-authored-by: Alejandro Colomar <alx@kernel.org> Signed-off-by: Alejandro Colomar <alx@kernel.org> Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'auto/sources')
-rw-r--r--auto/sources16
1 files changed, 16 insertions, 0 deletions
diff --git a/auto/sources b/auto/sources
index 02740397..28cdc834 100644
--- a/auto/sources
+++ b/auto/sources
@@ -107,6 +107,7 @@ NXT_LIB_SRCS=" \
src/nxt_http_websocket.c \
src/nxt_h1proto_websocket.c \
src/nxt_fs.c \
+ src/nxt_http_compression.c \
"
@@ -215,6 +216,21 @@ if [ $NXT_POLARSSL = YES ]; then
fi
+if [ "$NXT_HAVE_ZLIB" = "YES" ]; then
+ NXT_LIB_SRCS="$NXT_LIB_SRCS src/nxt_zlib.c"
+fi
+
+
+if [ "$NXT_HAVE_ZSTD" = "YES" ]; then
+ NXT_LIB_SRCS="$NXT_LIB_SRCS src/nxt_zstd.c"
+fi
+
+
+if [ "$NXT_HAVE_BROTLI" = "YES" ]; then
+ NXT_LIB_SRCS="$NXT_LIB_SRCS src/nxt_brotli.c"
+fi
+
+
if [ "$NXT_REGEX" = "YES" ]; then
if [ "$NXT_HAVE_PCRE2" = "YES" ]; then
NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_PCRE2_SRCS"