DJGPP port of glib 1.2.10, release 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Introduction
------------

This is the Readme file for the DJGPP port of glib 1.2.10. Please see the
file 'NEWS' for a full list of user-visible changes.

To use the glib library, you only need to download the binary distribution.
If you want to examine or rebuild the glib sources, you need to download
the source distribution.

The glib port is available here:

  ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2tk/glb1210b.zip (binaries)
  ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2tk/glb1210s.zip (sources)

Please read the sections below for the distributions you have downloaded,
before installing glib.

Installing the Binary Distribution of glib
------------------------------------------

Unzip the distribution preserving the directory structure (use -d
switch if you do that with PKUNZIP) from the top DJGPP installation
directory.

glib does not have an entry in the info directory by default. Create
an entry by running this command:

    install-info --info-file=/dev/env/DJDIR/info/glib.info \
                 --info-dir=/dev/env/DJDIR/info

You can now read the glib documentation by typing 'info glib'.

Rebuilding Fileutils using the Source Distribution
--------------------------------------------------

To build the DJGPP port of glib from sources, I used the following packages:

. DJGPP development environment 2.03 (v2/djdev203.zip);
. DJGPP library sources 2.03 (v2/djlsr203.zip);
. GNU C compiler 2.95.3 (v2gnu/gcc2953b.zip);
. GNU binutils 2.10 (v2gnu/bnu210b.zip);
. GNU make 3.79 (v2gnu/mak379b.zip);
. GNU bash 2.04 (v2gnu/bsh204b.zip);
. GNU sed (v2gnu/sed302b.zip);
. GNU fileutils 4.0 (v2gnu/fil40b.zip);
. GNU sh-utils 1.12 (v2gnu/shl112b.zip);
. GNU textutils 2.0 (v2gnu/txt20b.zip);
. GNU grep 2.4 (v2gnu/grep24b.zip);
. GNU texinfo 4.0 (v2gnu/txi40b.zip).

I also used the following packages - you will not need these, unless you
edit the configure script or Makefile.am files.

. GNU autoconf 2.13 (v2gnu/acnf213b.zip);
. GNU automake 1.4 (v2gnu/amake14b.zip).

Firstly, change into the top-level directory of the glib sources and
configure the package:

    bash configure

Now build the package:

    make

It is a good idea to run the test suite, to check that glib functions
correctly:

    make check

If you are happy with the library, install it:

    make install

Changes made to the glib 1.2.10 sources
---------------------------------------

The file 'gnu\glib-1.210\djgpp\diffs' contains DJGPP-specific changes made
to the sources as part of the port. The diffs fix two problems:

* DJGPP does not have a functional fork;

* DJGPP comes with pwd.h and a struct passwd, but DJGPP's struct passwd
  does not have a member pw_gecos.

If you have a fresh copy of the glib 1.2.10 sources, apply the patch like so:

    cd \path\to\glib\sources
    patch -p2 -i \path\to\djgpp\diff\diffs

The source distribution of the DJGPP port comes with all patches applied.

Finally
-------

Thanks go out to Teun Burgers, who did the original port of glib (1.2.6) to
DJGPP. His patches still work and are used in this port.

If you encounter any problems with this port, please feel free to contact me
by e-mail (address below). I also try to read the DJGPP newsgroup,
comp.os.msdos.djgpp, on a regular basis.

Richard Dawe <rich@phekda.freeserve.co.uk> 2001-06-17
