From 9966be79c3f24876d5f628730fc0e0e2330eb2bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20Rosenkr=C3=A4nzer?= Date: Mon, 1 Jun 2020 01:07:13 +0100 Subject: Add support for zstd-compressed manual pages * configure.ac: Check for zstd. * include/comp_src.h.in (comp_list): Add zstd. * include/manconfig.h.in: Define UNZSTD. * NEWS: Document this. --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 3406c5e6..5aefa5c5 100644 --- a/configure.ac +++ b/configure.ac @@ -327,6 +327,11 @@ if test -n "$lzip" then unlzip="$lzip -dc" fi +MAN_CHECK_PROGS([zstd], [ZSTD], [use ZSTD as zstd compression utility], [zstd]) +if test -n "$zstd" +then + unzstd="$zstd -dc" +fi if test -n "$compressor" then AC_DEFINE([COMP_CAT], [1], [Define if you have compressors and want to support compressed cat files.]) @@ -339,6 +344,7 @@ AC_SUBST([bunzip2]) AC_SUBST([unlzma]) AC_SUBST([unxz]) AC_SUBST([unlzip]) +AC_SUBST([unzstd]) MAN_COMPRESS_LIB([z], [gzopen]) dnl To add more decompressors just follow the scheme above. -- cgit v1.2.3