aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorTom Bereknyei <tom@rebelliondefense.com>2019-12-13 03:29:33 -0500
committerTom Bereknyei <tom@rebelliondefense.com>2019-12-13 03:34:15 -0500
commitc6295a3afd87a605f30f1de8b09d7885eb08fedb (patch)
tree17b611f1cdf0e6491cdc1c52b1046bdb614758bf /configure.ac
parentf800d450b78091835ab7ca67847d76e75d877a24 (diff)
Initial gzip support
Closes #3256
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 9dd0acd86..99248b90c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -209,6 +209,11 @@ PKG_CHECK_MODULES([LIBLZMA], [liblzma], [CXXFLAGS="$LIBLZMA_CFLAGS $CXXFLAGS"])
AC_CHECK_LIB([lzma], [lzma_stream_encoder_mt],
[AC_DEFINE([HAVE_LZMA_MT], [1], [xz multithreaded compression support])])
+# Look for zlib, a required dependency.
+PKG_CHECK_MODULES([ZLIB], [zlib], [CXXFLAGS="$ZLIB_CFLAGS $CXXFLAGS"])
+AC_CHECK_HEADER([zlib.h],[:],[AC_MSG_ERROR([could not find the zlib.h header])])
+LDFLAGS="-lz $LDFLAGS"
+
# Look for libbrotli{enc,dec}.
PKG_CHECK_MODULES([LIBBROTLI], [libbrotlienc libbrotlidec], [CXXFLAGS="$LIBBROTLI_CFLAGS $CXXFLAGS"])