How to configure, build, and install SANE.

* Prerequisites

In order to build SANE, the following tools are required:

	- GNU make: version 3.70 or newer

	- ANSI C compiler: GNU C (gcc) is recommended for best performance,
	  but any ANSI-compliant compiler should do

SANE is know to build on the following platforms:

	- Digital Unix (Alpha)
	- HP-UX (PA-RISC)
	- Linux (Alpha and x86)
	- NetBSD (x86?)
	- Solaris (SPARC)

* Configuration

Simply invoke configure in the top-level directory.  Besides the usual
GNU configure options, there are the following SANE specific options:

 --disable-shared
	Don't use shared libraries.  Useful for debugging or when there
	is a problem building shared libraries.

 --disable-ld-fix
	Turn off a bug fix in the Mustek backend.  See
	backend/mustek.README for details.

 --disable-dynamic
	Disable dynamic loading of backends (in the dll backend).
	configure normally turns on dynamic loading when it
	can find the appropriate header files and libraries
	(<dlfcn.h> and -dl).

 --enable-preload
	Preload backends into DLL backend.  This is useful for debugging,
	when dynamic loading is unavailable, or to reduce runtime linking
	overheads.  If dynamic loading or shared libraries are unavailable
	or disabled, this option is turned on automatically.

In addition to these SANE-specific configuration options, there are
many standard-options.  To get a description of available standard
option, invoke configure with option --help.

If you plan on debugging one of the SANE programs, we recommend to run
configure like this:

   CFLAGS="-g -O -Wall" ./configure --disable-shared

* Build

To build SANE, simply type "make" in the top-level directory.

* Installation

Once the build has finished, install SANE with "make install".  By
default, this will place the SANE libraries in /usr/local/lib/ and the
configuration files in /usr/local/etc/sane.d.  The location of these
directories can be overridden with configure options.

Backend and frontend specific information on the configuration files
can be found in backend/*.README and frontend/*.README.
