This file describes the installation procedure of Sablotron. To know
more on Sablotron, please read the README file in the same directory 
as this file.

To get more info on installing on *Windows*, please read
the file INSTALL_WIN.


1. Intro
2. Building
3. Preinstalled Expat
4. Binary distributions
5. Environment
6. More info


1. Intro
========================================

Sablotron is based on an excellent XML parser - Expat. 

There is a significant change of how the expat is used since version
0.50. Sablotron _never_ builds the expat under source tree, but
supposes, that you have installed Expat library in your system.

To get Expat, visit

http://sourceforge.net/projects/expat/

and download/install source/binary package.

Sablotron should be able to find and link older expat libraries
(libxmlparse, libxmltok), but this feature is not tested and is
deprecated. 


2. Building (sources)
========================================

If you have downloaded the binary distribution, you can skip reading this
section and go to the Environment section.

Sablotron compiles on the following platforms:

- Linux (RH 5.2 - 7.0, gcc 2.95.2 or later)
- Windows (NT 4.0, 9x, 2000, VC++ 4.2/6.0)
- Solaris (Solaris 2.5.1, 2.6, 7, gcc 2.91.57)
- FreeBSD (FreeBSD 3.4, 4.1)
- OpenBSD (OpenBSD 2.8 beta)
- HPUX

If you need any other port, please contact us.

We use GNU autoconf since the version 0.41. So the following steps 
should work on any UNIX platform:

  ./configure
  make
  make install (may require the root privileges)

Of course, we're not able to test it on all Unix machines, so if you
meet any problem, fell free to contact us.

There are the most useful switches, you may pass to the configure
script: 

  --help
	display all switches available
  --prefix='path where to install'
	specifies the installation path (/usr/local on most systems)
  --enable-warnings
	force compilation with the -Wall switch (for curious people)
  --disable-adding-meta
	disable adding of the META tag (html output method)

3. Preinstalled Expat
========================================

This chapter is obsolete, but may contain some useful info for people
running older configuration.

This version of the build process on all Unix platforms respects the 
presence of Expat sources. If you have installed Sablotron and Expat in 
the past (with `make install'), the configure script writes makefiles, so 
they link Expat from your system directories (the sources win, if present).

If you have installed Expat in some non-system directories in the
past, configure script won't find headers, and build process will
fail, even if you specify include path with --includedir switch. To
fix this problem, set CPLUS_INCLUDE_PATH environment variable to point
to Expat headers.


4. Binary distributions
========================================

At the time of writing, binaries are available for Linux Intel
platforms, and for Solaris.

In all cases, you have to copy files into appropriate locations
manually. We're sorry for this inconvenience. Some form of setup should
be solved in the near future.


5. Environment
========================================

No environment changes are needed (finally!). That's,
of course, true only if you've used standard 'make install'
procedure. 

List of environment variables, you may possibly need modify:

LD_LIBRARY_PATH: add lib directory to this variable, if sabcmd reports
"Can't load shared library libsablot.0.xx" or such thing.

CPLUS_INCLUDE_DIR: is needed if you didn't install Sablotron (and
mainly Expat) into system directories and you're going compile new
version against older version of Expat. (see "Preinstalled Expat")

On some systems (UnixWare, NetBSD...) the compiler is unable to find
headers in /usr/local/include. Consequently the 'configure' script
doesn't find the expat header and compilation fails. To avoid this
problem, set CPPFLAGS environment to
'-I/usr/local/include'. CPLUS_INCLUDE_DIR is not enough.


6. More info
========================================

We suppose you have read the README file. If you haven't, read it now.
If it is not enough, take a look at our website:

http://www.gingerall.com


Enjoy Sablotron!!

GA





