imal installation procedure

1. Make sure you have the correct version. If you don't have Motif, it is
necessary to use a statically-linked version (e.g., imalxxx-linux-static.tar.gz).
Motif is required for Solaris, Irix, and ConvexOS versions. For other 
operating systems, it is necessary to edit "xmtnimage.h" and "makefile",
and compile on your system.

2. Unzip and detar the files. If an older version of imal is present, it
must be completely removed from the directory in which you detar the new 
version. 

3. Edit the files "quickcam" and "umax" if you wish to use these 
devices.


Compiling:

1. Imal requires the following along with the development files for them:
   Motif (libXm) and its dependencies (libXext, libXpm, libXt, libSM, libICE,
        libXmu, libxcb, libXau)
   libtiff 
   libpng
   libXbae
   libjpeg

   All of the above are available in Debian 9.2, which is the recommended
   environment.
   
2. Xbae libraries may require manual installation. Version 4.60.4 should work.
   (xbae-4.60.4.tar.gz)
   
3. Libjpeg seems to be in flux, so it is recommended to install libjpeg-6b
   manually. To install it, type the following
   ./configure
   make   
   su
   cp libjpeg.a /usr/local/lib
   cp *.h /usr/local/include

4. Type "configure"

5. Type "make"

6. su; make install
   

Binary versions:

7. Type "Install" as root. If this doesn't work for some reason, imal
can be installed manually as follows:

  a. Copy the man page imal.1.gz to /usr/man/man1.
  b. Create a directory in $HOME/.imal.
  c. Copy these files to the desired locations:
          imal          /usr/local/bin
          imal.hlp      /usr/local/lib/imal
          imal.1.gz     /usr/man/man1
          formats/*     $HOME/.imal/formats/
          plugins       $HOME/.imal/
          scanners      $HOME/.imal/
          umax          $HOME/.imal/
          cameras       $HOME/.imal/
          quickcam      $HOME/.imal/
    

8. If you don't have write permission in your home directory, the message
"Can't save settings"  will be printed when you quit, indicating that any
configuration changes were not saved.

9. See Manual for details in customizing imal using
app-defaults or .Xdefaults files.


