This is a port of library jbigkit 1.6 to MSDOS/DJGPP.

1.:     DJGPP specific changes.
	=======================

        The code of the library itself does not need any changes to the source
        code.  This is different for the two utility programs that come with
        the library.  Those programs need to switch STDIN nad STDOUT from text
        mode into binary mode to be able to process the image files correctly.
        It is well known on MSDOS/DJGPP systems that switching STDIN/STDOUT,
        if connected to the console, into binary mode will inhibit the
        reaction of the program to cntl-c (SIGINT) and cntl-\ (SIGQUIT) signals
        making it impossible to interrupt the programs. Even the use of
        __djgpp_set_ctrl_c() will not solve the problem.  The programs have
        been compiled with STDIN/STDOUT switched to binary mode.  This will
        make the testsuite work and will make work the programs if used in a
        pipe.  If this program behavour is not wanted, you will have to
        recompile those programs with the macro SET_STDIN_STDOUT_IN_BINARY_MODE
        set to 0 in both files /pbmtools/jbgtopbm.c and /pbmtools/pbmtojbg.c.
        In that case you will get binaries that can be interrupted from the
        console but that will not be able to read or write files from STDIN
        and STDOUT.
        The package does not need any configuration.  To compile the products
        simple use the provided makefiles.  As usual the diffs file is stored
        in /djgpp.

	Please *read* the docs.


2.:     Installing the binary package.
	==============================

2.1.:   Copy the binary distribution into the top DJGPP installation directory,
	just unzip it preserving the directory structure running *ONE* of the
	following commands:
	  unzip32 jbig16b.zip      or
	  djtarx jbig16b.zip       or
	  pkunzip -d jbig16b.zip



3.:     Building the binaries from sources.
	===================================

3.1.:   Create a temporary directory and copy the source package into the
	directory.  If you download the source distribution from one of the
	DJGPP sites, just unzip it preserving the directory structure
	running *ONE* of the following commands:
	  unzip32 jbig16s.zip      or
	  djtarx jbig16s.zip       or
	  pkunzip -d jbig16s.zip

3.2.:   To build the binaries you will need the following binary packages:
	  djdev203.zip (or a later but NOT a prior version)
	  bsh205b.zip  (or a later but NOT a prior version)
	  gcc411b.zip, gpp411b.zip, bnu2161b.zip, mak3792b.zip,
	  fil40b.zip, shl20jb.zip, txt20b.zip,
	  txi48b.zip, grep24b.zip and sed415b.zip

	If you want to run the check you will need also:
	  dif287b.zip

	All this packages can be found in the v2gnu directory of any
	ftp.delorie.com mirror.
	You will need bsh204b.zip or later and *NOT* a prior version or
	the build will fail.  The same applies to djdev203.zip.  All the
	other packages are the ones I have used to build the binaries
	from this source.  Previuos versions of this packages may do the
	job as well but I have not tested this.

3.3.:   To compile the package run from the top srcdir the command:
	  make

3.4.:   Now you can run the tests if you like.  From the top srcdir run the
	command:
	  make test

	No test should fail if the binaries have been compiled with STDIN and
        STDOUT switched to binary mode.  Else all tests involving pipes and/or
        reading from STDIN/STDOUT will fail.

3.5.:   To install the binaries, header, library, catalogs, and info docs
	run the following command from the top srcdir:
	  make install

	This will install the products into your DJGPP installation tree given
	by the default prefix "/dev/env/DJDIR".  If you prefer to install them
	into some other directory you will have to set prefix to the appropiate
	value:
	  make install prefix=z:/some/other/place



	Send jbigkit specific bug reports to <mgk25@cl.cam.ac.uk>.
	Send suggestions and bug reports concerning the DJGPP port to
	comp.os.msdos.djgpp or <djgpp@delorie.com>.


Enjoy.

	Guerrero, Juan Manuel <juan.guerrero@gmx.de>
