Use system zlib if available
authorManuel Nickschas <sputnick@quassel-irc.org>
Wed, 19 Feb 2014 20:19:32 +0000 (21:19 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 19 Feb 2014 20:19:32 +0000 (21:19 +0100)
commitf64d4eec4bba63ececdece95f5c73b0ac550acd4
treeab68a36b89e4a2ff37d2819c6d75b630dbb1e400
parent52707acc6e5dbc386084083cd7d7a144ae151a4a
Use system zlib if available

Only fall back to miniz if we don't find zlib on the system. Distro
packagers like this much more, and we use code that has seen much
more testing. Incidentally, we've already had one case where miniz was
really slow on a 32 bit box.

Still keeping miniz as fallback for the rare platform/build box that
doesn't ship zlib, since waiting a few seconds for compressing the
backlog is still probably better than transmitting a few MB of extra
data...
CMakeLists.txt
src/CMakeLists.txt
src/common/CMakeLists.txt
src/common/compressor.cpp
src/common/compressor.h