To build the binaries you will need the following binary packages:
djdev203.zip (not a prior version),
bsh203b.zip (not a prior version),
gcc2952b.zip, bnu2951b.zip,
mak3791b.zip, fil316b.zip, shl112b.zip,
txt20b.zip, txi40b.zip, grep24b.zip,
sed302b.zip, and gtxt035b.zip.
If you want to run the check you will need also
dif272b.zip, m4-14b.zip, and
perl552b.zip,
All these packages can be found in the v2gnu directory of any
Simtel.NET mirror.
You will need bsh203b.zip and not a prior version or
the build will fail. The same applies to djdev203.zip.
You must use the updated version of fil316b.zip
(date: 2000-05-30) and shl112b.zip (date: 2000-08-11).
These updated versions have been recompiled with
djdev203.zip and know about the file:/dev/env
functionality introduced with djdev203.zip. All the
other packages are the ones I have used to build the binaries
from this sources. Previous versions of this packages may do
the job as well but I have not tested this.
Create a temporary directory and copy the source package into the dir.
If you download the source distribution from one of the DJGPP archives,
just unzip it preserving the directory structure running ONE of the
following commands:
unzip32 rcode37-beta2s.zip or
djtarx rcode37-beta2s.zip or
pkunzip -d rcode37-beta2s.zip
Source distributions downloaded from one of the GNU FTP sites need
some more work to unpack. First, you must use the djtar
program to unzip the package. That's because some file names in the
official distributions need to be changed to avoid problems on the
various platforms supported by DJGPP. djtar can rename files
on the fly given a file with name mappings. The distribution includes
a file djgpp/fnchange.lst with the necessary mappings. So you
need first to retrieve that file, and then invoke djtar to
unpack the distribution. Here's how:
djtar -x -p -o recode-3.7-beta2/djgpp/fnchange.lst recode-3.7-beta2.tar.gz > lst
djtar -x -n lst recode-3.7-beta2.tar.gz
(The name of the distribution archive and the top-level directory will
be different for versions other than 3.7-beta2.)
This package is preconfigured for NLS support and djdev203.
This implies that you must install the GNU gettext library
(gtxt035b.zip) if you want to recompile this package. Of
course, this must be done before you start recompiling the
package. The configuration batch file of this package, located in the
contrib/DJGPP directory, allows you to enable or disable NLS
support and to compile from a different partition than from where the
sources are located. configdj.bat always configures the package
for NLS support enabled and for in-place compilation if no options are
given at all. The available NLS options are:
NLS
no-NLS
If for some reason you want a binary with no NLS support you will have
to reconfigure the package. For this purpose cd into the top srcdir
(recode-3.7-beta2/) and run the following commands:
make distclean
contrib\DJGPP\configdj no-NLS
Please note that you must use the distclean option or the
config.cache file will not be deleted. In this case you
are not reconfiguring because the configuration informations
is read from the cache file instead of being newly computed. You
must specify no-NLS or configdj.bat will default to
the NLS option. To build the programs in a directory other than
where the sources are, you must add the parameter that specifies the
source directory, e.g:
x:\src\gnu\recode-3.7-beta2\contrib\DJGPP\configdj x:/src/gnu/recode-3.7-beta2 no-NLS
Lets assume you want to build the binaries in a directory placed on a
different drive (z:build in this case) from where the sources
are, then you will run the following commands:
z:
md \build
cd \build
x:\src\gnu\recode-3.7-beta2/\contrib\DJGPP\configdj x:/src/gnu/recode-3.7-beta2/ no-NLS
If you want NLS support, just omit the no-NLS option or replace
it by the NLS option in the above examples. The order of the NLS
option and the srcdir option does not matter. You must use
forward slashes to specify the source directory.
This batch file will set same environment variables, make MSDOS
specific modifications to the Makefile.ins and supply all
other needed options to the configure script.
To compile the package run from the top srcdir the command:
make
Now you can run the tests if you like. From the top srcdir run
the command:
make check
No test should fail.
To install the binaries, header, library, catalogs, and info docs
run the following command from the top srcdir:
make install CATALOGS="xx.gmo yy.gmo zz.gmo"
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
appropriate value. Replace xx, yy and zz by the language
codes of the catalogs you want to install. Example:
make install CATALOGS="xx.gmo yy.gmo zz.gmo" prefix=z:/some/other/dir
Now you have to set the LANG environment variable. Please refer to
the third point in section 2.