
COMPILING AND INSTALLING THE LZMA UTILS

    LZMA utils have been tested on 32-bit x86 GNU/Linux and OpenBSD
    and probably work on many other systems too.

    Standard commands will put files to /usr/local:

        make CFLAGS="-O3 -s"
        make test
        make install

    'make test' is to test that the compiled binaries compress and
    decompress at least some test files correctly. To install to
    somewhere else for example for creating a package you can redifine
    prefix. It is safe to redifine it because no file will have
    it hardcoded in. The example below has recommended CFLAGS for
    creating packages for general distribution using GCC >=3.4; with
    GCC 3.3 or older replace -mtune with -mcpu.

        make CFLAGS="-O3 -s -march=i486 -mtune=i686 -fomit-frame-pointer"
        make test
        make prefix=/tmp/package-lzma/usr install

    If your /bin/sh is far from POSIX compliance you probably need
    to edit the first line of the 'lzmash' script to point to a
    better shell. Generally this shouldn't be a problem in GNU
    and *BSD systems, only on some proprietary *NIXes.


ADDING LZMA SUPPORT TO GNU TAR

    The patch for the GNU tar is in the directory 'tar'. To take
    advantage of it you need also sources of the GNU tar 1.15.1
    which can be downloaded from any GNU mirror. To apply the
    patch first decompress the tar sources and then use 'patch'
    to apply the patch and finally recompile:

        tar xzf tar-1.15.1.tar.gz
        cd tar-1.15.1
        patch -p1 < /path/to/tar_lzma.diff
        ./configure --your-favorite-options
        make

    And you should have a working patched copy of the tar executable.
    You can optionally install it to the filesystem using the command
    'make install' although creating a package using the package
    tools provided by your distribution is usually more recommended.

