From: Dan Fandrich Date: Thu, 23 Mar 2017 20:11:41 +0000 (+0100) Subject: mkhelp: disable compression if the perl gzip module is unavailable X-Git-Tag: curl-7_54_0~99 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae22034d0d711881b0cbf1e8be3090cad486bb97;p=curl mkhelp: disable compression if the perl gzip module is unavailable This is nowadays included with the base perl distribution, but wasn't prior to about perl 5.14 --- diff --git a/src/mkhelp.pl b/src/mkhelp.pl index 8b7f72157..4b540744c 100644 --- a/src/mkhelp.pl +++ b/src/mkhelp.pl @@ -113,8 +113,19 @@ print <import(); + 1; + }; + print STDERR "Warning: compression requested but Gzip is not available\n" if (!$c) +} + +if($c) +{ my $content = join("", @out); my $gzippedContent; IO::Compress::Gzip::gzip(