mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Updated autotools/conf system courtesy of Michael Blumenkrantz <mike@zentific.com>.
This commit is contained in:
parent
cf03cb0c04
commit
5eaa1cc42b
20
.gitignore
vendored
20
.gitignore
vendored
|
|
@ -1,2 +1,22 @@
|
||||||
*~
|
*~
|
||||||
|
*.o
|
||||||
|
*.lo
|
||||||
|
config.*
|
||||||
|
Makefile
|
||||||
|
*.in
|
||||||
|
.deps
|
||||||
|
.libs
|
||||||
|
*.la
|
||||||
|
aclocal.m4
|
||||||
|
autom4te.cache/
|
||||||
|
configure
|
||||||
|
depcomp
|
||||||
|
install-sh
|
||||||
|
libtool
|
||||||
|
lrzip
|
||||||
|
lrzip*.tar.bz2
|
||||||
|
lrzip*.tar.gz
|
||||||
|
ltmain.sh
|
||||||
|
missing
|
||||||
|
stamp-h1
|
||||||
|
|
||||||
|
|
|
||||||
1
AUTHORS
1
AUTHORS
|
|
@ -16,3 +16,4 @@ Jukka Laurila for newer Darwin support
|
||||||
George Makrydakis for lrztar, lrzuntar
|
George Makrydakis for lrztar, lrzuntar
|
||||||
Jari Aalto for documentation and typos and git help
|
Jari Aalto for documentation and typos and git help
|
||||||
Jon Tibble for nasm tests & Solaris support
|
Jon Tibble for nasm tests & Solaris support
|
||||||
|
Michael Blumenkrantz for updated autotools
|
||||||
365
INSTALL
Normal file
365
INSTALL
Normal file
|
|
@ -0,0 +1,365 @@
|
||||||
|
Installation Instructions
|
||||||
|
*************************
|
||||||
|
|
||||||
|
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
|
||||||
|
2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
Copying and distribution of this file, with or without modification,
|
||||||
|
are permitted in any medium without royalty provided the copyright
|
||||||
|
notice and this notice are preserved. This file is offered as-is,
|
||||||
|
without warranty of any kind.
|
||||||
|
|
||||||
|
Basic Installation
|
||||||
|
==================
|
||||||
|
|
||||||
|
Briefly, the shell commands `./configure; make; make install' should
|
||||||
|
configure, build, and install this package. The following
|
||||||
|
more-detailed instructions are generic; see the `README' file for
|
||||||
|
instructions specific to this package. Some packages provide this
|
||||||
|
`INSTALL' file but do not implement all of the features documented
|
||||||
|
below. The lack of an optional feature in a given package is not
|
||||||
|
necessarily a bug. More recommendations for GNU packages can be found
|
||||||
|
in *note Makefile Conventions: (standards)Makefile Conventions.
|
||||||
|
|
||||||
|
The `configure' shell script attempts to guess correct values for
|
||||||
|
various system-dependent variables used during compilation. It uses
|
||||||
|
those values to create a `Makefile' in each directory of the package.
|
||||||
|
It may also create one or more `.h' files containing system-dependent
|
||||||
|
definitions. Finally, it creates a shell script `config.status' that
|
||||||
|
you can run in the future to recreate the current configuration, and a
|
||||||
|
file `config.log' containing compiler output (useful mainly for
|
||||||
|
debugging `configure').
|
||||||
|
|
||||||
|
It can also use an optional file (typically called `config.cache'
|
||||||
|
and enabled with `--cache-file=config.cache' or simply `-C') that saves
|
||||||
|
the results of its tests to speed up reconfiguring. Caching is
|
||||||
|
disabled by default to prevent problems with accidental use of stale
|
||||||
|
cache files.
|
||||||
|
|
||||||
|
If you need to do unusual things to compile the package, please try
|
||||||
|
to figure out how `configure' could check whether to do them, and mail
|
||||||
|
diffs or instructions to the address given in the `README' so they can
|
||||||
|
be considered for the next release. If you are using the cache, and at
|
||||||
|
some point `config.cache' contains results you don't want to keep, you
|
||||||
|
may remove or edit it.
|
||||||
|
|
||||||
|
The file `configure.ac' (or `configure.in') is used to create
|
||||||
|
`configure' by a program called `autoconf'. You need `configure.ac' if
|
||||||
|
you want to change it or regenerate `configure' using a newer version
|
||||||
|
of `autoconf'.
|
||||||
|
|
||||||
|
The simplest way to compile this package is:
|
||||||
|
|
||||||
|
1. `cd' to the directory containing the package's source code and type
|
||||||
|
`./configure' to configure the package for your system.
|
||||||
|
|
||||||
|
Running `configure' might take a while. While running, it prints
|
||||||
|
some messages telling which features it is checking for.
|
||||||
|
|
||||||
|
2. Type `make' to compile the package.
|
||||||
|
|
||||||
|
3. Optionally, type `make check' to run any self-tests that come with
|
||||||
|
the package, generally using the just-built uninstalled binaries.
|
||||||
|
|
||||||
|
4. Type `make install' to install the programs and any data files and
|
||||||
|
documentation. When installing into a prefix owned by root, it is
|
||||||
|
recommended that the package be configured and built as a regular
|
||||||
|
user, and only the `make install' phase executed with root
|
||||||
|
privileges.
|
||||||
|
|
||||||
|
5. Optionally, type `make installcheck' to repeat any self-tests, but
|
||||||
|
this time using the binaries in their final installed location.
|
||||||
|
This target does not install anything. Running this target as a
|
||||||
|
regular user, particularly if the prior `make install' required
|
||||||
|
root privileges, verifies that the installation completed
|
||||||
|
correctly.
|
||||||
|
|
||||||
|
6. You can remove the program binaries and object files from the
|
||||||
|
source code directory by typing `make clean'. To also remove the
|
||||||
|
files that `configure' created (so you can compile the package for
|
||||||
|
a different kind of computer), type `make distclean'. There is
|
||||||
|
also a `make maintainer-clean' target, but that is intended mainly
|
||||||
|
for the package's developers. If you use it, you may have to get
|
||||||
|
all sorts of other programs in order to regenerate files that came
|
||||||
|
with the distribution.
|
||||||
|
|
||||||
|
7. Often, you can also type `make uninstall' to remove the installed
|
||||||
|
files again. In practice, not all packages have tested that
|
||||||
|
uninstallation works correctly, even though it is required by the
|
||||||
|
GNU Coding Standards.
|
||||||
|
|
||||||
|
8. Some packages, particularly those that use Automake, provide `make
|
||||||
|
distcheck', which can by used by developers to test that all other
|
||||||
|
targets like `make install' and `make uninstall' work correctly.
|
||||||
|
This target is generally not run by end users.
|
||||||
|
|
||||||
|
Compilers and Options
|
||||||
|
=====================
|
||||||
|
|
||||||
|
Some systems require unusual options for compilation or linking that
|
||||||
|
the `configure' script does not know about. Run `./configure --help'
|
||||||
|
for details on some of the pertinent environment variables.
|
||||||
|
|
||||||
|
You can give `configure' initial values for configuration parameters
|
||||||
|
by setting variables in the command line or in the environment. Here
|
||||||
|
is an example:
|
||||||
|
|
||||||
|
./configure CC=c99 CFLAGS=-g LIBS=-lposix
|
||||||
|
|
||||||
|
*Note Defining Variables::, for more details.
|
||||||
|
|
||||||
|
Compiling For Multiple Architectures
|
||||||
|
====================================
|
||||||
|
|
||||||
|
You can compile the package for more than one kind of computer at the
|
||||||
|
same time, by placing the object files for each architecture in their
|
||||||
|
own directory. To do this, you can use GNU `make'. `cd' to the
|
||||||
|
directory where you want the object files and executables to go and run
|
||||||
|
the `configure' script. `configure' automatically checks for the
|
||||||
|
source code in the directory that `configure' is in and in `..'. This
|
||||||
|
is known as a "VPATH" build.
|
||||||
|
|
||||||
|
With a non-GNU `make', it is safer to compile the package for one
|
||||||
|
architecture at a time in the source code directory. After you have
|
||||||
|
installed the package for one architecture, use `make distclean' before
|
||||||
|
reconfiguring for another architecture.
|
||||||
|
|
||||||
|
On MacOS X 10.5 and later systems, you can create libraries and
|
||||||
|
executables that work on multiple system types--known as "fat" or
|
||||||
|
"universal" binaries--by specifying multiple `-arch' options to the
|
||||||
|
compiler but only a single `-arch' option to the preprocessor. Like
|
||||||
|
this:
|
||||||
|
|
||||||
|
./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
|
||||||
|
CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
|
||||||
|
CPP="gcc -E" CXXCPP="g++ -E"
|
||||||
|
|
||||||
|
This is not guaranteed to produce working output in all cases, you
|
||||||
|
may have to build one architecture at a time and combine the results
|
||||||
|
using the `lipo' tool if you have problems.
|
||||||
|
|
||||||
|
Installation Names
|
||||||
|
==================
|
||||||
|
|
||||||
|
By default, `make install' installs the package's commands under
|
||||||
|
`/usr/local/bin', include files under `/usr/local/include', etc. You
|
||||||
|
can specify an installation prefix other than `/usr/local' by giving
|
||||||
|
`configure' the option `--prefix=PREFIX', where PREFIX must be an
|
||||||
|
absolute file name.
|
||||||
|
|
||||||
|
You can specify separate installation prefixes for
|
||||||
|
architecture-specific files and architecture-independent files. If you
|
||||||
|
pass the option `--exec-prefix=PREFIX' to `configure', the package uses
|
||||||
|
PREFIX as the prefix for installing programs and libraries.
|
||||||
|
Documentation and other data files still use the regular prefix.
|
||||||
|
|
||||||
|
In addition, if you use an unusual directory layout you can give
|
||||||
|
options like `--bindir=DIR' to specify different values for particular
|
||||||
|
kinds of files. Run `configure --help' for a list of the directories
|
||||||
|
you can set and what kinds of files go in them. In general, the
|
||||||
|
default for these options is expressed in terms of `${prefix}', so that
|
||||||
|
specifying just `--prefix' will affect all of the other directory
|
||||||
|
specifications that were not explicitly provided.
|
||||||
|
|
||||||
|
The most portable way to affect installation locations is to pass the
|
||||||
|
correct locations to `configure'; however, many packages provide one or
|
||||||
|
both of the following shortcuts of passing variable assignments to the
|
||||||
|
`make install' command line to change installation locations without
|
||||||
|
having to reconfigure or recompile.
|
||||||
|
|
||||||
|
The first method involves providing an override variable for each
|
||||||
|
affected directory. For example, `make install
|
||||||
|
prefix=/alternate/directory' will choose an alternate location for all
|
||||||
|
directory configuration variables that were expressed in terms of
|
||||||
|
`${prefix}'. Any directories that were specified during `configure',
|
||||||
|
but not in terms of `${prefix}', must each be overridden at install
|
||||||
|
time for the entire installation to be relocated. The approach of
|
||||||
|
makefile variable overrides for each directory variable is required by
|
||||||
|
the GNU Coding Standards, and ideally causes no recompilation.
|
||||||
|
However, some platforms have known limitations with the semantics of
|
||||||
|
shared libraries that end up requiring recompilation when using this
|
||||||
|
method, particularly noticeable in packages that use GNU Libtool.
|
||||||
|
|
||||||
|
The second method involves providing the `DESTDIR' variable. For
|
||||||
|
example, `make install DESTDIR=/alternate/directory' will prepend
|
||||||
|
`/alternate/directory' before all installation names. The approach of
|
||||||
|
`DESTDIR' overrides is not required by the GNU Coding Standards, and
|
||||||
|
does not work on platforms that have drive letters. On the other hand,
|
||||||
|
it does better at avoiding recompilation issues, and works well even
|
||||||
|
when some directory options were not specified in terms of `${prefix}'
|
||||||
|
at `configure' time.
|
||||||
|
|
||||||
|
Optional Features
|
||||||
|
=================
|
||||||
|
|
||||||
|
If the package supports it, you can cause programs to be installed
|
||||||
|
with an extra prefix or suffix on their names by giving `configure' the
|
||||||
|
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
||||||
|
|
||||||
|
Some packages pay attention to `--enable-FEATURE' options to
|
||||||
|
`configure', where FEATURE indicates an optional part of the package.
|
||||||
|
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
||||||
|
is something like `gnu-as' or `x' (for the X Window System). The
|
||||||
|
`README' should mention any `--enable-' and `--with-' options that the
|
||||||
|
package recognizes.
|
||||||
|
|
||||||
|
For packages that use the X Window System, `configure' can usually
|
||||||
|
find the X include and library files automatically, but if it doesn't,
|
||||||
|
you can use the `configure' options `--x-includes=DIR' and
|
||||||
|
`--x-libraries=DIR' to specify their locations.
|
||||||
|
|
||||||
|
Some packages offer the ability to configure how verbose the
|
||||||
|
execution of `make' will be. For these packages, running `./configure
|
||||||
|
--enable-silent-rules' sets the default to minimal output, which can be
|
||||||
|
overridden with `make V=1'; while running `./configure
|
||||||
|
--disable-silent-rules' sets the default to verbose, which can be
|
||||||
|
overridden with `make V=0'.
|
||||||
|
|
||||||
|
Particular systems
|
||||||
|
==================
|
||||||
|
|
||||||
|
On HP-UX, the default C compiler is not ANSI C compatible. If GNU
|
||||||
|
CC is not installed, it is recommended to use the following options in
|
||||||
|
order to use an ANSI C compiler:
|
||||||
|
|
||||||
|
./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
|
||||||
|
|
||||||
|
and if that doesn't work, install pre-built binaries of GCC for HP-UX.
|
||||||
|
|
||||||
|
On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
|
||||||
|
parse its `<wchar.h>' header file. The option `-nodtk' can be used as
|
||||||
|
a workaround. If GNU CC is not installed, it is therefore recommended
|
||||||
|
to try
|
||||||
|
|
||||||
|
./configure CC="cc"
|
||||||
|
|
||||||
|
and if that doesn't work, try
|
||||||
|
|
||||||
|
./configure CC="cc -nodtk"
|
||||||
|
|
||||||
|
On Solaris, don't put `/usr/ucb' early in your `PATH'. This
|
||||||
|
directory contains several dysfunctional programs; working variants of
|
||||||
|
these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
|
||||||
|
in your `PATH', put it _after_ `/usr/bin'.
|
||||||
|
|
||||||
|
On Haiku, software installed for all users goes in `/boot/common',
|
||||||
|
not `/usr/local'. It is recommended to use the following options:
|
||||||
|
|
||||||
|
./configure --prefix=/boot/common
|
||||||
|
|
||||||
|
Specifying the System Type
|
||||||
|
==========================
|
||||||
|
|
||||||
|
There may be some features `configure' cannot figure out
|
||||||
|
automatically, but needs to determine by the type of machine the package
|
||||||
|
will run on. Usually, assuming the package is built to be run on the
|
||||||
|
_same_ architectures, `configure' can figure that out, but if it prints
|
||||||
|
a message saying it cannot guess the machine type, give it the
|
||||||
|
`--build=TYPE' option. TYPE can either be a short name for the system
|
||||||
|
type, such as `sun4', or a canonical name which has the form:
|
||||||
|
|
||||||
|
CPU-COMPANY-SYSTEM
|
||||||
|
|
||||||
|
where SYSTEM can have one of these forms:
|
||||||
|
|
||||||
|
OS
|
||||||
|
KERNEL-OS
|
||||||
|
|
||||||
|
See the file `config.sub' for the possible values of each field. If
|
||||||
|
`config.sub' isn't included in this package, then this package doesn't
|
||||||
|
need to know the machine type.
|
||||||
|
|
||||||
|
If you are _building_ compiler tools for cross-compiling, you should
|
||||||
|
use the option `--target=TYPE' to select the type of system they will
|
||||||
|
produce code for.
|
||||||
|
|
||||||
|
If you want to _use_ a cross compiler, that generates code for a
|
||||||
|
platform different from the build platform, you should specify the
|
||||||
|
"host" platform (i.e., that on which the generated programs will
|
||||||
|
eventually be run) with `--host=TYPE'.
|
||||||
|
|
||||||
|
Sharing Defaults
|
||||||
|
================
|
||||||
|
|
||||||
|
If you want to set default values for `configure' scripts to share,
|
||||||
|
you can create a site shell script called `config.site' that gives
|
||||||
|
default values for variables like `CC', `cache_file', and `prefix'.
|
||||||
|
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
||||||
|
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
||||||
|
`CONFIG_SITE' environment variable to the location of the site script.
|
||||||
|
A warning: not all `configure' scripts look for a site script.
|
||||||
|
|
||||||
|
Defining Variables
|
||||||
|
==================
|
||||||
|
|
||||||
|
Variables not defined in a site shell script can be set in the
|
||||||
|
environment passed to `configure'. However, some packages may run
|
||||||
|
configure again during the build, and the customized values of these
|
||||||
|
variables may be lost. In order to avoid this problem, you should set
|
||||||
|
them in the `configure' command line, using `VAR=value'. For example:
|
||||||
|
|
||||||
|
./configure CC=/usr/local2/bin/gcc
|
||||||
|
|
||||||
|
causes the specified `gcc' to be used as the C compiler (unless it is
|
||||||
|
overridden in the site shell script).
|
||||||
|
|
||||||
|
Unfortunately, this technique does not work for `CONFIG_SHELL' due to
|
||||||
|
an Autoconf bug. Until the bug is fixed you can use this workaround:
|
||||||
|
|
||||||
|
CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
|
||||||
|
|
||||||
|
`configure' Invocation
|
||||||
|
======================
|
||||||
|
|
||||||
|
`configure' recognizes the following options to control how it
|
||||||
|
operates.
|
||||||
|
|
||||||
|
`--help'
|
||||||
|
`-h'
|
||||||
|
Print a summary of all of the options to `configure', and exit.
|
||||||
|
|
||||||
|
`--help=short'
|
||||||
|
`--help=recursive'
|
||||||
|
Print a summary of the options unique to this package's
|
||||||
|
`configure', and exit. The `short' variant lists options used
|
||||||
|
only in the top level, while the `recursive' variant lists options
|
||||||
|
also present in any nested packages.
|
||||||
|
|
||||||
|
`--version'
|
||||||
|
`-V'
|
||||||
|
Print the version of Autoconf used to generate the `configure'
|
||||||
|
script, and exit.
|
||||||
|
|
||||||
|
`--cache-file=FILE'
|
||||||
|
Enable the cache: use and save the results of the tests in FILE,
|
||||||
|
traditionally `config.cache'. FILE defaults to `/dev/null' to
|
||||||
|
disable caching.
|
||||||
|
|
||||||
|
`--config-cache'
|
||||||
|
`-C'
|
||||||
|
Alias for `--cache-file=config.cache'.
|
||||||
|
|
||||||
|
`--quiet'
|
||||||
|
`--silent'
|
||||||
|
`-q'
|
||||||
|
Do not print messages saying which checks are being made. To
|
||||||
|
suppress all normal output, redirect it to `/dev/null' (any error
|
||||||
|
messages will still be shown).
|
||||||
|
|
||||||
|
`--srcdir=DIR'
|
||||||
|
Look for the package's source code in directory DIR. Usually
|
||||||
|
`configure' can determine that directory automatically.
|
||||||
|
|
||||||
|
`--prefix=DIR'
|
||||||
|
Use DIR as the installation prefix. *note Installation Names::
|
||||||
|
for more details, including other options available for fine-tuning
|
||||||
|
the installation locations.
|
||||||
|
|
||||||
|
`--no-create'
|
||||||
|
`-n'
|
||||||
|
Run the configure checks, but stop before creating any output
|
||||||
|
files.
|
||||||
|
|
||||||
|
`configure' also accepts some other, not widely useful, options. Run
|
||||||
|
`configure --help' for more details.
|
||||||
|
|
||||||
52
Makefile.am
Normal file
52
Makefile.am
Normal file
|
|
@ -0,0 +1,52 @@
|
||||||
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
|
MAINTAINERCLEANFILES = \
|
||||||
|
Makefile.in \
|
||||||
|
aclocal.m4 \
|
||||||
|
config.guess \
|
||||||
|
config.h.in \
|
||||||
|
config.h.in~ \
|
||||||
|
config.sub \
|
||||||
|
configure \
|
||||||
|
depcomp \
|
||||||
|
install-sh \
|
||||||
|
ltconfig \
|
||||||
|
ltmain.sh \
|
||||||
|
missing \
|
||||||
|
$(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz \
|
||||||
|
$(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.bz2 \
|
||||||
|
$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-doc.tar.bz2 \
|
||||||
|
m4/libtool.m4 \
|
||||||
|
m4/lt~obsolete.m4 \
|
||||||
|
m4/ltoptions.m4 \
|
||||||
|
m4/ltsugar.m4 \
|
||||||
|
m4/ltversion.m4
|
||||||
|
|
||||||
|
SUBDIRS = lzma man
|
||||||
|
|
||||||
|
AM_CFLAGS = -I lzma/C -DNDEBUG
|
||||||
|
|
||||||
|
lrztardir = @bindir@
|
||||||
|
lrztar_SCRIPTS = lrztar
|
||||||
|
|
||||||
|
bin_PROGRAMS = lrzip
|
||||||
|
lrzip_SOURCES = \
|
||||||
|
zpipe.cpp \
|
||||||
|
main.c \
|
||||||
|
rzip.c \
|
||||||
|
runzip.c \
|
||||||
|
stream.c \
|
||||||
|
util.c \
|
||||||
|
md5.c
|
||||||
|
lrzip_LDADD = lzma/C/liblzma.la
|
||||||
|
|
||||||
|
|
||||||
|
dist_doc_DATA = \
|
||||||
|
AUTHORS \
|
||||||
|
BUGS \
|
||||||
|
ChangeLog \
|
||||||
|
COPYING \
|
||||||
|
README \
|
||||||
|
README-NOT-BACKWARD-COMPATIBLE \
|
||||||
|
TODO \
|
||||||
|
WHATS-NEW
|
||||||
|
|
||||||
145
Makefile.in
145
Makefile.in
|
|
@ -1,145 +0,0 @@
|
||||||
# Makefile for
|
|
||||||
# lrzip. This is processed by configure to produce the final
|
|
||||||
# Makefile
|
|
||||||
# See README.Assembler for notes about ASM module.
|
|
||||||
|
|
||||||
prefix=@prefix@
|
|
||||||
exec_prefix=@exec_prefix@
|
|
||||||
datarootdir=@datarootdir@
|
|
||||||
#ASM_OBJ=@ASM_OBJ@
|
|
||||||
ASM_OBJ=7zCrc.o
|
|
||||||
PACKAGE_TARNAME=@PACKAGE_TARNAME@
|
|
||||||
INSTALL_BIN=$(exec_prefix)/bin
|
|
||||||
INSTALL_MAN1=@mandir@/man1
|
|
||||||
INSTALL_MAN5=@mandir@/man5
|
|
||||||
INSTALL_DOC=@docdir@
|
|
||||||
INSTALL_DOC_LZMA=@docdir@/lzma
|
|
||||||
LIBS=@LIBS@
|
|
||||||
LDFLAGS=@LDFLAGS@
|
|
||||||
CC=@CC@
|
|
||||||
CXX=@CXX@
|
|
||||||
CFLAGS=@CFLAGS@ -I. -I$(srcdir) -c
|
|
||||||
CXXFLAGS=@CXXFLAGS@ -I. -I$(srcdir) -c
|
|
||||||
LZMA_CFLAGS=-I@top_srcdir@/lzma/C -DCOMPRESS_MF_MT -D_REENTRANT
|
|
||||||
|
|
||||||
INSTALLCMD=@INSTALL@
|
|
||||||
LN_S=@LN_S@
|
|
||||||
RM=rm -f
|
|
||||||
|
|
||||||
ifneq ($(NO_ASSEMBLER),)
|
|
||||||
ASM=@ASM@
|
|
||||||
else
|
|
||||||
ASM=7zCrc.o
|
|
||||||
endif
|
|
||||||
|
|
||||||
VPATH=@srcdir@
|
|
||||||
srcdir=@srcdir@
|
|
||||||
SHELL=/bin/sh
|
|
||||||
|
|
||||||
.SUFFIXES:
|
|
||||||
.SUFFIXES: .c .o
|
|
||||||
|
|
||||||
OBJS= main.o rzip.o runzip.o stream.o util.o \
|
|
||||||
7zCrc.o \
|
|
||||||
zpipe.o \
|
|
||||||
Threads.o \
|
|
||||||
LzFind.o \
|
|
||||||
LzFindMt.o \
|
|
||||||
LzmaDec.o \
|
|
||||||
LzmaEnc.o \
|
|
||||||
LzmaLib.o \
|
|
||||||
md5.o
|
|
||||||
|
|
||||||
DOCFILES= AUTHORS BUGS ChangeLog COPYING README README-NOT-BACKWARD-COMPATIBLE \
|
|
||||||
TODO WHATS-NEW \
|
|
||||||
doc/README.Assembler doc/README.benchmarks \
|
|
||||||
doc/README.lzo_compresses.test.txt \
|
|
||||||
doc/magic.header.txt doc/lrzip.conf.example
|
|
||||||
DOCFILES_LZMA= lzma/7zC.txt lzma/7zFormat.txt lzma/Methods.txt \
|
|
||||||
lzma/history.txt lzma/lzma.txt lzma/README lzma/README-Alloc
|
|
||||||
|
|
||||||
MAN1FILES= man/lrzip.1 man/lrunzip.1 man/lrztar.1 man/lrzuntar.1
|
|
||||||
MAN5FILES= man/lrzip.conf.5
|
|
||||||
|
|
||||||
#note that the -I. is needed to handle config.h when using VPATH
|
|
||||||
.c.o:
|
|
||||||
$(CC) $(CFLAGS) $(LZMA_CFLAGS) $< -o $@
|
|
||||||
|
|
||||||
all: lrzip make-man man doc
|
|
||||||
|
|
||||||
make-man:
|
|
||||||
$(MAKE) -C man
|
|
||||||
|
|
||||||
.PHONY: make-man
|
|
||||||
|
|
||||||
7zCrcT8.o: @top_srcdir@/lzma/C/7zCrcT8.c
|
|
||||||
$(CC) $(CFLAGS) $(LZMA_CFLAGS) @top_srcdir@/lzma/C/7zCrcT8.c
|
|
||||||
|
|
||||||
7zCrcT8U.o: @top_srcdir@/lzma/ASM/x86/7zCrcT8U.s
|
|
||||||
$(ASM) -o 7zCrcT8U.o @top_srcdir@/lzma/ASM/x86/7zCrcT8U.s
|
|
||||||
|
|
||||||
7zCrcT8U_64.o: @top_srcdir@/lzma/ASM/x86_64/7zCrcT8U_64.s
|
|
||||||
$(ASM) -o 7zCrcT8U_64.o @top_srcdir@/lzma/ASM/x86_64/7zCrcT8U_64.s
|
|
||||||
|
|
||||||
7zCrc.o: @top_srcdir@/lzma/C/7zCrc.c
|
|
||||||
$(CC) $(CFLAGS) $(LZMA_CFLAGS) @top_srcdir@/lzma/C/7zCrc.c
|
|
||||||
|
|
||||||
LzmaLib.o: @top_srcdir@/lzma/C/LzmaLib.c
|
|
||||||
$(CC) $(CFLAGS) $(LZMA_CFLAGS) @top_srcdir@/lzma/C/LzmaLib.c
|
|
||||||
|
|
||||||
LzmaDec.o: @top_srcdir@/lzma/C/LzmaDec.c
|
|
||||||
$(CC) $(CFLAGS) $(LZMA_CFLAGS) @top_srcdir@/lzma/C/LzmaDec.c
|
|
||||||
|
|
||||||
LzmaEnc.o: @top_srcdir@/lzma/C/LzmaEnc.c
|
|
||||||
$(CC) $(CFLAGS) $(LZMA_CFLAGS) @top_srcdir@/lzma/C/LzmaEnc.c
|
|
||||||
|
|
||||||
Threads.o: @top_srcdir@/lzma/C/Threads.c
|
|
||||||
$(CC) $(CFLAGS) $(LZMA_CFLAGS) @top_srcdir@/lzma/C/Threads.c
|
|
||||||
|
|
||||||
LzFind.o: @top_srcdir@/lzma/C/LzFind.c
|
|
||||||
$(CC) $(CFLAGS) $(LZMA_CFLAGS) @top_srcdir@/lzma/C/LzFind.c
|
|
||||||
|
|
||||||
LzFindMt.o: @top_srcdir@/lzma/C/LzFindMt.c
|
|
||||||
$(CC) $(CFLAGS) $(LZMA_CFLAGS) @top_srcdir@/lzma/C/LzFindMt.c
|
|
||||||
|
|
||||||
zpipe.o: zpipe.cpp
|
|
||||||
$(CXX) $(CXXFLAGS) -DNDEBUG zpipe.cpp
|
|
||||||
|
|
||||||
md5.o: md5.c
|
|
||||||
$(CC) $(CFLAGS) md5.c
|
|
||||||
|
|
||||||
install: all
|
|
||||||
mkdir -p $(DESTDIR)${INSTALL_BIN}
|
|
||||||
${INSTALLCMD} -m 755 lrzip $(DESTDIR)${INSTALL_BIN}
|
|
||||||
${INSTALLCMD} -m 755 lrztar $(DESTDIR)${INSTALL_BIN}
|
|
||||||
(cd $(DESTDIR)${INSTALL_BIN} && ${LN_S} -f lrzip lrunzip )
|
|
||||||
(cd $(DESTDIR)${INSTALL_BIN} && ${LN_S} -f lrztar lrzuntar)
|
|
||||||
chmod 755 $(DESTDIR)${INSTALL_BIN}/lrzuntar
|
|
||||||
mkdir -p $(DESTDIR)${INSTALL_MAN1}
|
|
||||||
${INSTALLCMD} -m 644 $(MAN1FILES) $(DESTDIR)${INSTALL_MAN1}
|
|
||||||
mkdir -p $(DESTDIR)${INSTALL_MAN5}
|
|
||||||
${INSTALLCMD} -m 644 $(MAN5FILES) $(DESTDIR)${INSTALL_MAN5}
|
|
||||||
mkdir -p $(DESTDIR)${INSTALL_DOC}
|
|
||||||
${INSTALLCMD} -m 644 $(DOCFILES) $(DESTDIR)${INSTALL_DOC}
|
|
||||||
mkdir -p $(DESTDIR)${INSTALL_DOC_LZMA}
|
|
||||||
${INSTALLCMD} -m 644 $(DOCFILES_LZMA) $(DESTDIR)${INSTALL_DOC_LZMA}
|
|
||||||
uninstall:
|
|
||||||
rm -rf $(DESTDIR)${INSTALL_BIN}/{lrztar,lrzuntar,lrunzip,lrzip}
|
|
||||||
rm -rf $(DESTDIR)${INSTALL_DOC}
|
|
||||||
rm -rf $(DESTDIR)${INSTALL_MAN1}/{lrunzip.1,lrzip.1,lrztar.1,lrzuntar.1}
|
|
||||||
rm -rf $(DESTDIR)${INSTALL_MAN5}/lrzip.conf.5
|
|
||||||
lrzip: $(OBJS)
|
|
||||||
$(CXX) $(LDFLAGS) -o lrzip $(OBJS) $(LIBS)
|
|
||||||
|
|
||||||
static: $(OBJS)
|
|
||||||
$(CXX) $(LDFLAGS) -static -o lrzip $(OBJS) $(LIBS)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
-${RM} *~ $(OBJS) lrzip config.cache config.log config.status *.o \
|
|
||||||
man/lrunzip.1 man/lrztar.1 man/lrzuntar.1
|
|
||||||
|
|
||||||
distclean: clean
|
|
||||||
-rm -rf autom4te.cache config.h Makefile
|
|
||||||
|
|
||||||
maintainer-clean: distclean
|
|
||||||
-rm -f configure
|
|
||||||
15
autogen.sh
Executable file
15
autogen.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
||||||
|
#!/bin/sh
|
||||||
|
cwd="$PWD"
|
||||||
|
bs_dir="$(dirname $(readlink -f $0))"
|
||||||
|
rm -rf "${bs_dir}"/autom4te.cache
|
||||||
|
rm -f "${bs_dir}"/aclocal.m4 "${bs_dir}"/ltmain.sh
|
||||||
|
|
||||||
|
echo 'Running autoreconf -if...'
|
||||||
|
autoreconf -if || exit 1
|
||||||
|
if test -n "$NOCONFIGURE" ; then
|
||||||
|
echo 'Configuring...'
|
||||||
|
cd "${bs_dir}" &> /dev/null
|
||||||
|
test "$?" = "0" || e=1
|
||||||
|
test "$cwd" != "$bs_dir" && cd "$cwd" &> /dev/null
|
||||||
|
test "$e" = "1" && exit 1
|
||||||
|
fi
|
||||||
1502
config.guess
vendored
1502
config.guess
vendored
File diff suppressed because it is too large
Load diff
134
config.h.in
134
config.h.in
|
|
@ -1,134 +0,0 @@
|
||||||
/* config.h.in. Generated from configure.in by autoheader. */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <ctype.h> header file. */
|
|
||||||
#undef HAVE_CTYPE_H
|
|
||||||
|
|
||||||
/* Define to 1 if errno.h present */
|
|
||||||
#undef HAVE_ERRNO_DECL
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <fcntl.h> header file. */
|
|
||||||
#undef HAVE_FCNTL_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `getopt_long' function. */
|
|
||||||
#undef HAVE_GETOPT_LONG
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
|
||||||
#undef HAVE_INTTYPES_H
|
|
||||||
|
|
||||||
/* */
|
|
||||||
#undef HAVE_LARGE_FILES
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `bz2' library (-lbz2). */
|
|
||||||
#undef HAVE_LIBBZ2
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `lzo2' library (-llzo2). */
|
|
||||||
#undef HAVE_LIBLZO2
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `m' library (-lm). */
|
|
||||||
#undef HAVE_LIBM
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `pthread' library (-lpthread). */
|
|
||||||
#undef HAVE_LIBPTHREAD
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `z' library (-lz). */
|
|
||||||
#undef HAVE_LIBZ
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <memory.h> header file. */
|
|
||||||
#undef HAVE_MEMORY_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `mmap' function. */
|
|
||||||
#undef HAVE_MMAP
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <stdint.h> header file. */
|
|
||||||
#undef HAVE_STDINT_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
|
||||||
#undef HAVE_STDLIB_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `strerror' function. */
|
|
||||||
#undef HAVE_STRERROR
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <strings.h> header file. */
|
|
||||||
#undef HAVE_STRINGS_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <string.h> header file. */
|
|
||||||
#undef HAVE_STRING_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/ioctl.h> header file. */
|
|
||||||
#undef HAVE_SYS_IOCTL_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/param.h> header file. */
|
|
||||||
#undef HAVE_SYS_PARAM_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
|
||||||
#undef HAVE_SYS_STAT_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/time.h> header file. */
|
|
||||||
#undef HAVE_SYS_TIME_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
|
||||||
#undef HAVE_SYS_TYPES_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/unistd.h> header file. */
|
|
||||||
#undef HAVE_SYS_UNISTD_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/wait.h> header file. */
|
|
||||||
#undef HAVE_SYS_WAIT_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <unistd.h> header file. */
|
|
||||||
#undef HAVE_UNISTD_H
|
|
||||||
|
|
||||||
/* Define to the address where bug reports for this package should be sent. */
|
|
||||||
#undef PACKAGE_BUGREPORT
|
|
||||||
|
|
||||||
/* Define to the full name of this package. */
|
|
||||||
#undef PACKAGE_NAME
|
|
||||||
|
|
||||||
/* Define to the full name and version of this package. */
|
|
||||||
#undef PACKAGE_STRING
|
|
||||||
|
|
||||||
/* Define to the one symbol short name of this package. */
|
|
||||||
#undef PACKAGE_TARNAME
|
|
||||||
|
|
||||||
/* Define to the version of this package. */
|
|
||||||
#undef PACKAGE_VERSION
|
|
||||||
|
|
||||||
/* The size of `int', as computed by sizeof. */
|
|
||||||
#undef SIZEOF_INT
|
|
||||||
|
|
||||||
/* The size of `long', as computed by sizeof. */
|
|
||||||
#undef SIZEOF_LONG
|
|
||||||
|
|
||||||
/* The size of `short', as computed by sizeof. */
|
|
||||||
#undef SIZEOF_SHORT
|
|
||||||
|
|
||||||
/* Define to 1 if you have the ANSI C header files. */
|
|
||||||
#undef STDC_HEADERS
|
|
||||||
|
|
||||||
/* Number of bits in a file offset, on hosts where this is settable. */
|
|
||||||
#undef _FILE_OFFSET_BITS
|
|
||||||
|
|
||||||
/* Define to make ftello visible on some hosts (e.g. HP-UX 10.20). */
|
|
||||||
#undef _LARGEFILE_SOURCE
|
|
||||||
|
|
||||||
/* Define for large files, on AIX-style hosts. */
|
|
||||||
#undef _LARGE_FILES
|
|
||||||
|
|
||||||
/* Define to make ftello visible on some hosts (e.g. glibc 2.1.3). */
|
|
||||||
#undef _XOPEN_SOURCE
|
|
||||||
|
|
||||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
|
||||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
|
||||||
#ifndef __cplusplus
|
|
||||||
#undef inline
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Define to `long int' if <sys/types.h> does not define. */
|
|
||||||
#undef off_t
|
|
||||||
|
|
||||||
/* Define to `unsigned int' if <sys/types.h> does not define. */
|
|
||||||
#undef size_t
|
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
|
||||||
#define _LARGEFILE64_SOURCE
|
|
||||||
#define _FILE_OFFSET_BITS 64
|
|
||||||
1714
config.sub
vendored
1714
config.sub
vendored
File diff suppressed because it is too large
Load diff
116
configure.ac
116
configure.ac
|
|
@ -1,9 +1,55 @@
|
||||||
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
||||||
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
||||||
|
m4_define([v_maj], [0])
|
||||||
|
m4_define([v_min], [570])
|
||||||
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
||||||
|
m4_define([v_ver], [v_maj.v_min])
|
||||||
|
m4_define([lt_rev], m4_eval(v_maj + v_min))
|
||||||
|
m4_define([lt_age], v_min)
|
||||||
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
||||||
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
||||||
|
|
||||||
|
|
||||||
dnl Process this file with autoconf to produce a configure script.
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
AC_INIT([lrzip],[0.570],[kernel@kolivas.org],[lrzip-0.570])
|
AC_INIT([lrzip],[v_ver],[kernel@kolivas.org])
|
||||||
AC_CONFIG_HEADER(config.h)
|
AC_PREREQ([2.59])
|
||||||
# see what our system is!
|
AC_CONFIG_SRCDIR([configure.ac])
|
||||||
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
|
AC_CONFIG_HEADERS([config.h])
|
||||||
|
|
||||||
|
AM_INIT_AUTOMAKE([1.6 dist-bzip2 foreign])
|
||||||
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
||||||
|
AC_GNU_SOURCE
|
||||||
|
|
||||||
|
AC_PROG_LIBTOOL
|
||||||
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
||||||
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
||||||
|
m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
|
||||||
|
m4_ifdef([v_rel], , [m4_define([v_rel], [])])
|
||||||
|
AC_DEFINE_UNQUOTED(VMAJ, [v_maj], [Major version])
|
||||||
|
AC_DEFINE_UNQUOTED(VMIN, [v_min], [Minor version])
|
||||||
|
AC_DEFINE_UNQUOTED(VREV, [v_rev], [Revison])
|
||||||
|
version_info="lt_rev:lt_age"
|
||||||
|
release_info="v_rel"
|
||||||
|
AC_SUBST(version_info)
|
||||||
|
AC_SUBST(release_info)
|
||||||
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
||||||
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
||||||
|
VMAJ=v_maj
|
||||||
|
AC_SUBST(VMAJ)
|
||||||
|
|
||||||
|
AC_CANONICAL_BUILD
|
||||||
AC_CANONICAL_HOST
|
AC_CANONICAL_HOST
|
||||||
|
|
||||||
|
dnl Checks for programs.
|
||||||
|
AC_PROG_CC
|
||||||
|
AC_PROG_CXX
|
||||||
|
PKG_PROG_PKG_CONFIG
|
||||||
|
AC_PROG_INSTALL
|
||||||
|
AC_PROG_LN_S
|
||||||
|
AC_SUBST(SHELL)
|
||||||
|
AC_SYS_LARGEFILE
|
||||||
|
|
||||||
AC_ARG_ENABLE(
|
AC_ARG_ENABLE(
|
||||||
asm,
|
asm,
|
||||||
[AC_HELP_STRING([--enable-asm],[Enable native Assembly code])],
|
[AC_HELP_STRING([--enable-asm],[Enable native Assembly code])],
|
||||||
|
|
@ -17,22 +63,8 @@ if test x"$ASM" = xyes; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Checks for programs.
|
AC_CHECK_HEADERS(fcntl.h sys/time.h sys/unistd.h unistd.h sys/mman.h)
|
||||||
AC_PROG_CC
|
AC_CHECK_HEADERS(sys/param.h ctype.h sys/wait.h sys/ioctl.h errno.h)
|
||||||
AC_PROG_CXX
|
|
||||||
AC_PROG_INSTALL
|
|
||||||
AC_PROG_LN_S
|
|
||||||
AC_SUBST(SHELL)
|
|
||||||
AC_SYS_LARGEFILE
|
|
||||||
|
|
||||||
if test x"$GCC" = xyes; then
|
|
||||||
CFLAGS="-Wall -W -s -O2 $CFLAGS"
|
|
||||||
CXXFLAGS="-Wall -W -s -O2 $CXXFLAGS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_CHECK_HEADERS(fcntl.h sys/time.h sys/unistd.h unistd.h)
|
|
||||||
AC_CHECK_HEADERS(sys/param.h ctype.h sys/wait.h sys/ioctl.h)
|
|
||||||
AC_CHECK_HEADERS(string.h stdlib.h sys/types.h)
|
|
||||||
|
|
||||||
AC_TYPE_OFF_T
|
AC_TYPE_OFF_T
|
||||||
AC_TYPE_SIZE_T
|
AC_TYPE_SIZE_T
|
||||||
|
|
@ -50,7 +82,6 @@ if test x"$rzip_cv_HAVE_LARGE_FILES" = x"yes"; then
|
||||||
AC_DEFINE(HAVE_LARGE_FILES, 1, [ ])
|
AC_DEFINE(HAVE_LARGE_FILES, 1, [ ])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
AC_C_INLINE
|
AC_C_INLINE
|
||||||
|
|
||||||
AC_CHECK_LIB(pthread, pthread_create, ,
|
AC_CHECK_LIB(pthread, pthread_create, ,
|
||||||
|
|
@ -64,33 +95,56 @@ AC_CHECK_LIB(bz2, BZ2_bzBuffToBuffCompress, ,
|
||||||
AC_CHECK_LIB(lzo2, lzo1x_1_compress, ,
|
AC_CHECK_LIB(lzo2, lzo1x_1_compress, ,
|
||||||
AC_MSG_ERROR([Could not find lzo2 library - please install liblzo2-dev]))
|
AC_MSG_ERROR([Could not find lzo2 library - please install liblzo2-dev]))
|
||||||
|
|
||||||
AC_DEFINE([HAVE_ERRNO_DECL],[0],[Define to 1 if errno.h present])
|
|
||||||
|
|
||||||
echo $ECHO_N "checking for errno in errno.h... $ECHO_C"
|
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <errno.h>]], [[int i = errno]])],[echo yes; AC_DEFINE(HAVE_ERRNO_DECL)],[echo no])
|
|
||||||
|
|
||||||
AC_CHECK_FUNCS(mmap strerror)
|
AC_CHECK_FUNCS(mmap strerror)
|
||||||
AC_CHECK_FUNCS(getopt_long)
|
AC_CHECK_FUNCS(getopt_long)
|
||||||
|
|
||||||
# final checks for x86 and/or assembler
|
# final checks for x86 and/or assembler
|
||||||
if test x"$ASM" = x"no"; then
|
if test x"$ASM" = x"no"; then
|
||||||
ASM_OBJ=7zCrc.o
|
ASM_OBJ=7zCrc.o
|
||||||
ASM=
|
ASM=no
|
||||||
else
|
else
|
||||||
case $host in
|
case $host in
|
||||||
i?86-*)
|
i?86-*)
|
||||||
ASM_OBJ="7zCrcT8.o 7zCrcT8U.o"
|
ASM_OBJ="7zCrcT8.o 7zCrcT8U.o"
|
||||||
ASM="nasm -f elf" ;;
|
ASM_CMD="$ASM_PROG -f elf" ;;
|
||||||
# x86_64 code is broken still
|
# x86_64 code is broken still
|
||||||
# x86_64-*)
|
# x86_64-*)
|
||||||
# ASM_OBJ="7zCrcT8.o 7zCrcT8U_64.o"
|
# ASM_OBJ="7zCrcT8.o 7zCrcT8U_64.o"
|
||||||
# ASM="nasm -f elf64" ;;
|
# ASM_CMD="$ASM_PROG -f elf64" ;;
|
||||||
*) ASM_OBJ=7zCrc.o ;;
|
*) ASM_OBJ=7zCrc.o ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
AM_CONDITIONAL([USE_ASM], [test "x$ASM" != "xyes" -a "x$ASM" != "xno"])
|
||||||
AC_SUBST([ASM_OBJ])
|
AC_SUBST([ASM_OBJ])
|
||||||
AC_SUBST([ASM])
|
AC_SUBST([ASM_CMD])
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile])
|
AC_CONFIG_FILES([
|
||||||
|
Makefile
|
||||||
|
lzma/Makefile
|
||||||
|
lzma/C/Makefile
|
||||||
|
doc/Makefile
|
||||||
|
man/Makefile
|
||||||
|
])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo
|
||||||
|
echo
|
||||||
|
echo "------------------------------------------------------------------------"
|
||||||
|
echo "$PACKAGE $VERSION"
|
||||||
|
echo "------------------------------------------------------------------------"
|
||||||
|
echo
|
||||||
|
echo
|
||||||
|
echo "Configuration Options Summary:"
|
||||||
|
echo
|
||||||
|
echo " ASM................: $ASM"
|
||||||
|
echo
|
||||||
|
echo "Compilation............: make (or gmake)"
|
||||||
|
echo " CPPFLAGS.............: $CPPFLAGS"
|
||||||
|
echo " CFLAGS...............: $CFLAGS"
|
||||||
|
echo " CXXFLAGS.............: $CXXFLAGS"
|
||||||
|
echo " LDFLAGS..............: $LDFLAGS"
|
||||||
|
echo
|
||||||
|
echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
|
||||||
|
echo " prefix...............: $prefix"
|
||||||
|
echo
|
||||||
|
|
|
||||||
8
doc/Makefile.am
Normal file
8
doc/Makefile.am
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
MAINTAINERCLEANFILES = Makefile.in
|
||||||
|
|
||||||
|
dist_doc_DATA = \
|
||||||
|
README.Assembler \
|
||||||
|
README.benchmarks \
|
||||||
|
README.lzo_compresses.test.txt \
|
||||||
|
magic.header.txt \
|
||||||
|
lrzip.conf.example
|
||||||
238
install-sh
238
install-sh
|
|
@ -1,238 +0,0 @@
|
||||||
#! /bin/sh
|
|
||||||
#
|
|
||||||
# install - install a program, script, or datafile
|
|
||||||
# This comes from X11R5.
|
|
||||||
#
|
|
||||||
# Calling this script install-sh is preferred over install.sh, to prevent
|
|
||||||
# `make' implicit rules from creating a file called install from it
|
|
||||||
# when there is no Makefile.
|
|
||||||
#
|
|
||||||
# This script is compatible with the BSD install script, but was written
|
|
||||||
# from scratch.
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
# set DOITPROG to echo to test this script
|
|
||||||
|
|
||||||
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
|
||||||
doit="${DOITPROG-}"
|
|
||||||
|
|
||||||
|
|
||||||
# put in absolute paths if you don't have them in your path; or use env. vars.
|
|
||||||
|
|
||||||
mvprog="${MVPROG-mv}"
|
|
||||||
cpprog="${CPPROG-cp}"
|
|
||||||
chmodprog="${CHMODPROG-chmod}"
|
|
||||||
chownprog="${CHOWNPROG-chown}"
|
|
||||||
chgrpprog="${CHGRPPROG-chgrp}"
|
|
||||||
stripprog="${STRIPPROG-strip}"
|
|
||||||
rmprog="${RMPROG-rm}"
|
|
||||||
mkdirprog="${MKDIRPROG-mkdir}"
|
|
||||||
|
|
||||||
transformbasename=""
|
|
||||||
transform_arg=""
|
|
||||||
instcmd="$mvprog"
|
|
||||||
chmodcmd="$chmodprog 0755"
|
|
||||||
chowncmd=""
|
|
||||||
chgrpcmd=""
|
|
||||||
stripcmd=""
|
|
||||||
rmcmd="$rmprog -f"
|
|
||||||
mvcmd="$mvprog"
|
|
||||||
src=""
|
|
||||||
dst=""
|
|
||||||
dir_arg=""
|
|
||||||
|
|
||||||
while [ x"$1" != x ]; do
|
|
||||||
case $1 in
|
|
||||||
-c) instcmd="$cpprog"
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-d) dir_arg=true
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-m) chmodcmd="$chmodprog $2"
|
|
||||||
shift
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-o) chowncmd="$chownprog $2"
|
|
||||||
shift
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-g) chgrpcmd="$chgrpprog $2"
|
|
||||||
shift
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-s) stripcmd="$stripprog"
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-t=*) transformarg=`echo $1 | sed 's/-t=//'`
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
*) if [ x"$src" = x ]
|
|
||||||
then
|
|
||||||
src=$1
|
|
||||||
else
|
|
||||||
# this colon is to work around a 386BSD /bin/sh bug
|
|
||||||
:
|
|
||||||
dst=$1
|
|
||||||
fi
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ x"$src" = x ]
|
|
||||||
then
|
|
||||||
echo "install: no input file specified"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
true
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ x"$dir_arg" != x ]; then
|
|
||||||
dst=$src
|
|
||||||
src=""
|
|
||||||
|
|
||||||
if [ -d $dst ]; then
|
|
||||||
instcmd=:
|
|
||||||
else
|
|
||||||
instcmd=mkdir
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
|
|
||||||
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
|
|
||||||
# might cause directories to be created, which would be especially bad
|
|
||||||
# if $src (and thus $dsttmp) contains '*'.
|
|
||||||
|
|
||||||
if [ -f $src -o -d $src ]
|
|
||||||
then
|
|
||||||
true
|
|
||||||
else
|
|
||||||
echo "install: $src does not exist"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ x"$dst" = x ]
|
|
||||||
then
|
|
||||||
echo "install: no destination specified"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
true
|
|
||||||
fi
|
|
||||||
|
|
||||||
# If destination is a directory, append the input filename; if your system
|
|
||||||
# does not like double slashes in filenames, you may need to add some logic
|
|
||||||
|
|
||||||
if [ -d $dst ]
|
|
||||||
then
|
|
||||||
dst="$dst"/`basename $src`
|
|
||||||
else
|
|
||||||
true
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
## this sed command emulates the dirname command
|
|
||||||
dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
|
|
||||||
|
|
||||||
# Make sure that the destination directory exists.
|
|
||||||
# this part is taken from Noah Friedman's mkinstalldirs script
|
|
||||||
|
|
||||||
# Skip lots of stat calls in the usual case.
|
|
||||||
if [ ! -d "$dstdir" ]; then
|
|
||||||
defaultIFS='
|
|
||||||
'
|
|
||||||
IFS="${IFS-${defaultIFS}}"
|
|
||||||
|
|
||||||
oIFS="${IFS}"
|
|
||||||
# Some sh's can't handle IFS=/ for some reason.
|
|
||||||
IFS='%'
|
|
||||||
set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
|
|
||||||
IFS="${oIFS}"
|
|
||||||
|
|
||||||
pathcomp=''
|
|
||||||
|
|
||||||
while [ $# -ne 0 ] ; do
|
|
||||||
pathcomp="${pathcomp}${1}"
|
|
||||||
shift
|
|
||||||
|
|
||||||
if [ ! -d "${pathcomp}" ] ;
|
|
||||||
then
|
|
||||||
$mkdirprog "${pathcomp}"
|
|
||||||
else
|
|
||||||
true
|
|
||||||
fi
|
|
||||||
|
|
||||||
pathcomp="${pathcomp}/"
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ x"$dir_arg" != x ]
|
|
||||||
then
|
|
||||||
$doit $instcmd $dst &&
|
|
||||||
|
|
||||||
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
|
|
||||||
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
|
|
||||||
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
|
|
||||||
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
|
|
||||||
else
|
|
||||||
|
|
||||||
# If we're going to rename the final executable, determine the name now.
|
|
||||||
|
|
||||||
if [ x"$transformarg" = x ]
|
|
||||||
then
|
|
||||||
dstfile=`basename $dst`
|
|
||||||
else
|
|
||||||
dstfile=`basename $dst $transformbasename |
|
|
||||||
sed $transformarg`$transformbasename
|
|
||||||
fi
|
|
||||||
|
|
||||||
# don't allow the sed command to completely eliminate the filename
|
|
||||||
|
|
||||||
if [ x"$dstfile" = x ]
|
|
||||||
then
|
|
||||||
dstfile=`basename $dst`
|
|
||||||
else
|
|
||||||
true
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Make a temp file name in the proper directory.
|
|
||||||
|
|
||||||
dsttmp=$dstdir/#inst.$$#
|
|
||||||
|
|
||||||
# Move or copy the file name to the temp name
|
|
||||||
|
|
||||||
$doit $instcmd $src $dsttmp &&
|
|
||||||
|
|
||||||
trap "rm -f ${dsttmp}" 0 &&
|
|
||||||
|
|
||||||
# and set any options; do chmod last to preserve setuid bits
|
|
||||||
|
|
||||||
# If any of these fail, we abort the whole thing. If we want to
|
|
||||||
# ignore errors from any of these, just make sure not to ignore
|
|
||||||
# errors from the above "$doit $instcmd $src $dsttmp" command.
|
|
||||||
|
|
||||||
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
|
|
||||||
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
|
|
||||||
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
|
|
||||||
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
|
|
||||||
|
|
||||||
# Now rename the file to the real destination.
|
|
||||||
|
|
||||||
$doit $rmcmd -f $dstdir/$dstfile &&
|
|
||||||
$doit $mvcmd $dsttmp $dstdir/$dstfile
|
|
||||||
|
|
||||||
fi &&
|
|
||||||
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
31
lzma/C/Makefile.am
Normal file
31
lzma/C/Makefile.am
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
MAINTAINERCLEANFILES = Makefile.in
|
||||||
|
|
||||||
|
ASM_LIBS =
|
||||||
|
ASM_S =
|
||||||
|
if USE_ASM
|
||||||
|
ASM_LIBS += @ASM_OBJ@
|
||||||
|
else
|
||||||
|
ASM_S += 7zCrc.c
|
||||||
|
endif
|
||||||
|
|
||||||
|
noinst_LTLIBRARIES = liblzma.la
|
||||||
|
liblzma_la_SOURCES = \
|
||||||
|
$(ASM_S) \
|
||||||
|
Threads.c \
|
||||||
|
LzFind.c \
|
||||||
|
LzFindMt.c \
|
||||||
|
LzmaDec.c \
|
||||||
|
LzmaEnc.c \
|
||||||
|
LzmaLib.c
|
||||||
|
liblzma_so_LIBS = $(ASM_LIBS)
|
||||||
|
|
||||||
|
liblzma_so_CFLAGS = \
|
||||||
|
-DCOMPRESS_MF_MT \
|
||||||
|
-D_REENTRANT \
|
||||||
|
-I@top_builddir@
|
||||||
|
|
||||||
|
7zCrcT8U.o: @top_srcdir@/lzma/ASM/x86/7zCrcT8U.s
|
||||||
|
@ASM_CMD@ -o 7zCrcT8U.o @top_srcdir@/lzma/ASM/x86/7zCrcT8U.s
|
||||||
|
|
||||||
|
7zCrcT8U_64.o: @top_srcdir@/lzma/ASM/x86_64/7zCrcT8U_64.s
|
||||||
|
@ASM_CMD@ -o 7zCrcT8U_64.o @top_srcdir@/lzma/ASM/x86_64/7zCrcT8U_64.s
|
||||||
12
lzma/Makefile.am
Normal file
12
lzma/Makefile.am
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
SUBDIRS = C
|
||||||
|
MAINTAINERCLEANFILES = Makefile.in
|
||||||
|
|
||||||
|
lzmadocdir = @docdir@/lzma
|
||||||
|
lzmadoc_DATA = \
|
||||||
|
7zC.txt \
|
||||||
|
7zFormat.txt \
|
||||||
|
Methods.txt \
|
||||||
|
history.txt \
|
||||||
|
lzma.txt \
|
||||||
|
README \
|
||||||
|
README-Alloc
|
||||||
0
m4/.gitignore
vendored
Normal file
0
m4/.gitignore
vendored
Normal file
39
man/Makefile
39
man/Makefile
|
|
@ -1,39 +0,0 @@
|
||||||
#!/usr/bin/make -f
|
|
||||||
#
|
|
||||||
# Copyright information
|
|
||||||
#
|
|
||||||
# Copyright (C) 2010 Con Kolivas
|
|
||||||
# Copyright (C) 2010 Jari Aalto
|
|
||||||
#
|
|
||||||
# License
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation; either version 2 of the License, or
|
|
||||||
# (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
PODCENTER = Lrzip
|
|
||||||
|
|
||||||
all: lrunzip.1 lrztar.1 lrzuntar.1
|
|
||||||
|
|
||||||
lrunzip.1: lrunzip.1.pod
|
|
||||||
podchecker $<
|
|
||||||
$(MAKE) -f pod2man.mk PACKAGE=lrunzip PODCENTER=$(PODCENTER) makeman
|
|
||||||
|
|
||||||
lrztar.1: lrztar.1.pod
|
|
||||||
podchecker $<
|
|
||||||
$(MAKE) -f pod2man.mk PACKAGE=lrztar PODCENTER=$(PODCENTER) makeman
|
|
||||||
|
|
||||||
lrzuntar.1: lrzuntar.1.pod
|
|
||||||
podchecker $<
|
|
||||||
$(MAKE) -f pod2man.mk PACKAGE=lrzuntar PODCENTER=$(PODCENTER) makeman
|
|
||||||
|
|
||||||
# End of file
|
|
||||||
4
man/Makefile.am
Normal file
4
man/Makefile.am
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
MAINTAINERCLEANFILES = Makefile.in lrunzip.1 lrztar.1 lrzuntar.1
|
||||||
|
|
||||||
|
man1_MANS = lrzip.1 lrunzip.1.pod lrztar.1.pod lrzuntar.1.pod
|
||||||
|
man5_MANS = lrzip.conf.5
|
||||||
4
rzip.h
4
rzip.h
|
|
@ -67,7 +67,9 @@
|
||||||
#ifdef HAVE_CTYPE_H
|
#ifdef HAVE_CTYPE_H
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef HAVE_ERRNO_H
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#endif
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
|
||||||
/* needed for CRC routines */
|
/* needed for CRC routines */
|
||||||
|
|
@ -116,7 +118,7 @@ extern char *sys_errlist[];
|
||||||
#define strerror(i) sys_errlist[i]
|
#define strerror(i) sys_errlist[i]
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_ERRNO_DECL
|
#ifndef HAVE_ERRNO_H
|
||||||
extern int errno;
|
extern int errno;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue