README revision 1.1
11.1SchristosZLIB DATA COMPRESSION LIBRARY
21.1Schristos
31.1Schristoszlib 1.2.3 is a general purpose data compression library.  All the code is
41.1Schristosthread safe.  The data format used by the zlib library is described by RFCs
51.1Schristos(Request for Comments) 1950 to 1952 in the files
61.1Schristoshttp://www.ietf.org/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate format)
71.1Schristosand rfc1952.txt (gzip format). These documents are also available in other
81.1Schristosformats from ftp://ftp.uu.net/graphics/png/documents/zlib/zdoc-index.html
91.1Schristos
101.1SchristosAll functions of the compression library are documented in the file zlib.h
111.1Schristos(volunteer to write man pages welcome, contact zlib@gzip.org). A usage example
121.1Schristosof the library is given in the file example.c which also tests that the library
131.1Schristosis working correctly. Another example is given in the file minigzip.c. The
141.1Schristoscompression library itself is composed of all source files except example.c and
151.1Schristosminigzip.c.
161.1Schristos
171.1SchristosTo compile all files and run the test program, follow the instructions given at
181.1Schristosthe top of Makefile. In short "make test; make install" should work for most
191.1Schristosmachines. For Unix: "./configure; make test; make install". For MSDOS, use one
201.1Schristosof the special makefiles such as Makefile.msc. For VMS, use make_vms.com.
211.1Schristos
221.1SchristosQuestions about zlib should be sent to <zlib@gzip.org>, or to Gilles Vollant
231.1Schristos<info@winimage.com> for the Windows DLL version. The zlib home page is
241.1Schristoshttp://www.zlib.org or http://www.gzip.org/zlib/ Before reporting a problem,
251.1Schristosplease check this site to verify that you have the latest version of zlib;
261.1Schristosotherwise get the latest version and check whether the problem still exists or
271.1Schristosnot.
281.1Schristos
291.1SchristosPLEASE read the zlib FAQ http://www.gzip.org/zlib/zlib_faq.html before asking
301.1Schristosfor help.
311.1Schristos
321.1SchristosMark Nelson <markn@ieee.org> wrote an article about zlib for the Jan. 1997
331.1Schristosissue of  Dr. Dobb's Journal; a copy of the article is available in
341.1Schristoshttp://dogma.net/markn/articles/zlibtool/zlibtool.htm
351.1Schristos
361.1SchristosThe changes made in version 1.2.3 are documented in the file ChangeLog.
371.1Schristos
381.1SchristosUnsupported third party contributions are provided in directory "contrib".
391.1Schristos
401.1SchristosA Java implementation of zlib is available in the Java Development Kit
411.1Schristoshttp://java.sun.com/j2se/1.4.2/docs/api/java/util/zip/package-summary.html
421.1SchristosSee the zlib home page http://www.zlib.org for details.
431.1Schristos
441.1SchristosA Perl interface to zlib written by Paul Marquess <pmqs@cpan.org> is in the
451.1SchristosCPAN (Comprehensive Perl Archive Network) sites
461.1Schristoshttp://www.cpan.org/modules/by-module/Compress/
471.1Schristos
481.1SchristosA Python interface to zlib written by A.M. Kuchling <amk@amk.ca> is
491.1Schristosavailable in Python 1.5 and later versions, see
501.1Schristoshttp://www.python.org/doc/lib/module-zlib.html
511.1Schristos
521.1SchristosA zlib binding for TCL written by Andreas Kupries <a.kupries@westend.com> is
531.1Schristosavaillable at http://www.oche.de/~akupries/soft/trf/trf_zip.html
541.1Schristos
551.1SchristosAn experimental package to read and write files in .zip format, written on top
561.1Schristosof zlib by Gilles Vollant <info@winimage.com>, is available in the
571.1Schristoscontrib/minizip directory of zlib.
581.1Schristos
591.1Schristos
601.1SchristosNotes for some targets:
611.1Schristos
621.1Schristos- For Windows DLL versions, please see win32/DLL_FAQ.txt
631.1Schristos
641.1Schristos- For 64-bit Irix, deflate.c must be compiled without any optimization. With
651.1Schristos  -O, one libpng test fails. The test works in 32 bit mode (with the -n32
661.1Schristos  compiler flag). The compiler bug has been reported to SGI.
671.1Schristos
681.1Schristos- zlib doesn't work with gcc 2.6.3 on a DEC 3000/300LX under OSF/1 2.1 it works
691.1Schristos  when compiled with cc.
701.1Schristos
711.1Schristos- On Digital Unix 4.0D (formely OSF/1) on AlphaServer, the cc option -std1 is
721.1Schristos  necessary to get gzprintf working correctly. This is done by configure.
731.1Schristos
741.1Schristos- zlib doesn't work on HP-UX 9.05 with some versions of /bin/cc. It works with
751.1Schristos  other compilers. Use "make test" to check your compiler.
761.1Schristos
771.1Schristos- gzdopen is not supported on RISCOS, BEOS and by some Mac compilers.
781.1Schristos
791.1Schristos- For PalmOs, see http://palmzlib.sourceforge.net/
801.1Schristos
811.1Schristos- When building a shared, i.e. dynamic library on Mac OS X, the library must be
821.1Schristos  installed before testing (do "make install" before "make test"), since the
831.1Schristos  library location is specified in the library.
841.1Schristos
851.1Schristos
861.1SchristosAcknowledgments:
871.1Schristos
881.1Schristos  The deflate format used by zlib was defined by Phil Katz. The deflate
891.1Schristos  and zlib specifications were written by L. Peter Deutsch. Thanks to all the
901.1Schristos  people who reported problems and suggested various improvements in zlib;
911.1Schristos  they are too numerous to cite here.
921.1Schristos
931.1SchristosCopyright notice:
941.1Schristos
951.1Schristos (C) 1995-2004 Jean-loup Gailly and Mark Adler
961.1Schristos
971.1Schristos  This software is provided 'as-is', without any express or implied
981.1Schristos  warranty.  In no event will the authors be held liable for any damages
991.1Schristos  arising from the use of this software.
1001.1Schristos
1011.1Schristos  Permission is granted to anyone to use this software for any purpose,
1021.1Schristos  including commercial applications, and to alter it and redistribute it
1031.1Schristos  freely, subject to the following restrictions:
1041.1Schristos
1051.1Schristos  1. The origin of this software must not be misrepresented; you must not
1061.1Schristos     claim that you wrote the original software. If you use this software
1071.1Schristos     in a product, an acknowledgment in the product documentation would be
1081.1Schristos     appreciated but is not required.
1091.1Schristos  2. Altered source versions must be plainly marked as such, and must not be
1101.1Schristos     misrepresented as being the original software.
1111.1Schristos  3. This notice may not be removed or altered from any source distribution.
1121.1Schristos
1131.1Schristos  Jean-loup Gailly        Mark Adler
1141.1Schristos  jloup@gzip.org          madler@alumni.caltech.edu
1151.1Schristos
1161.1SchristosIf you use the zlib library in a product, we would appreciate *not*
1171.1Schristosreceiving lengthy legal documents to sign. The sources are provided
1181.1Schristosfor free but without warranty of any kind.  The library has been
1191.1Schristosentirely written by Jean-loup Gailly and Mark Adler; it does not
1201.1Schristosinclude third-party code.
1211.1Schristos
1221.1SchristosIf you redistribute modified sources, we would appreciate that you include
1231.1Schristosin the file ChangeLog history information documenting your changes. Please
1241.1Schristosread the FAQ for more information on the distribution of modified source
1251.1Schristosversions.
126