mirror of https://github.com/google/snappy.git
Revision created by MOE tool push_codebase.
MOE_MIGRATION= git-svn-id: https://snappy.googlecode.com/svn/trunk@2 03e5f5b5-db94-4691-08a0-1a8bf15f6143
This commit is contained in:
parent
7c3c6077b7
commit
28a6440239
|
@ -0,0 +1,28 @@
|
||||||
|
Copyright (c) 2011, Google Inc.
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are
|
||||||
|
met:
|
||||||
|
|
||||||
|
* Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
* Redistributions in binary form must reproduce the above
|
||||||
|
copyright notice, this list of conditions and the following disclaimer
|
||||||
|
in the documentation and/or other materials provided with the
|
||||||
|
distribution.
|
||||||
|
* Neither the name of Google Inc. nor the names of its
|
||||||
|
contributors may be used to endorse or promote products derived from
|
||||||
|
this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@ -0,0 +1,230 @@
|
||||||
|
Copyright 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software
|
||||||
|
Foundation, Inc.
|
||||||
|
|
||||||
|
This file is free documentation; the Free Software Foundation gives
|
||||||
|
unlimited permission to copy, distribute and modify it.
|
||||||
|
|
||||||
|
|
||||||
|
Basic Installation
|
||||||
|
==================
|
||||||
|
|
||||||
|
These are generic installation instructions.
|
||||||
|
|
||||||
|
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 only 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. If you're
|
||||||
|
using `csh' on an old version of System V, you might need to type
|
||||||
|
`sh ./configure' instead to prevent `csh' from trying to execute
|
||||||
|
`configure' itself.
|
||||||
|
|
||||||
|
Running `configure' takes awhile. 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.
|
||||||
|
|
||||||
|
4. Type `make install' to install the programs and any data files and
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
5. 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.
|
||||||
|
|
||||||
|
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=c89 CFLAGS=-O2 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 must use a version of `make' that
|
||||||
|
supports the `VPATH' variable, such as 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 `..'.
|
||||||
|
|
||||||
|
If you have to use a `make' that does not support the `VPATH'
|
||||||
|
variable, you have 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.
|
||||||
|
|
||||||
|
Installation Names
|
||||||
|
==================
|
||||||
|
|
||||||
|
By default, `make install' will install the package's files in
|
||||||
|
`/usr/local/bin', `/usr/local/man', etc. You can specify an
|
||||||
|
installation prefix other than `/usr/local' by giving `configure' the
|
||||||
|
option `--prefix=PATH'.
|
||||||
|
|
||||||
|
You can specify separate installation prefixes for
|
||||||
|
architecture-specific files and architecture-independent files. If you
|
||||||
|
give `configure' the option `--exec-prefix=PATH', the package will use
|
||||||
|
PATH as the prefix for installing programs and libraries.
|
||||||
|
Documentation and other data files will still use the regular prefix.
|
||||||
|
|
||||||
|
In addition, if you use an unusual directory layout you can give
|
||||||
|
options like `--bindir=PATH' 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.
|
||||||
|
|
||||||
|
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'.
|
||||||
|
|
||||||
|
Optional Features
|
||||||
|
=================
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
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 `--target=TYPE' option 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
|
||||||
|
|
||||||
|
will cause the specified gcc to be used as the C compiler (unless it is
|
||||||
|
overridden in the site shell script).
|
||||||
|
|
||||||
|
`configure' Invocation
|
||||||
|
======================
|
||||||
|
|
||||||
|
`configure' recognizes the following options to control how it
|
||||||
|
operates.
|
||||||
|
|
||||||
|
`--help'
|
||||||
|
`-h'
|
||||||
|
Print a summary of the options to `configure', and exit.
|
||||||
|
|
||||||
|
`--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.
|
||||||
|
|
||||||
|
`configure' also accepts some other, not widely useful, options. Run
|
||||||
|
`configure --help' for more details.
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
|
|
||||||
|
# Library.
|
||||||
|
lib_LTLIBRARIES = libsnappy.la
|
||||||
|
libsnappy_la_SOURCES = snappy.cc snappy-sinksource.cc snappy-stubs-internal.cc
|
||||||
|
libsnappy_la_LDFLAGS = $(EXTRA_LIBSNAPPY_LDFLAGS)
|
||||||
|
|
||||||
|
include_HEADERS = snappy.h snappy-sinksource.h snappy-stubs-public.h
|
||||||
|
noinst_HEADERS = snappy-internal.h snappy-stubs-internal.h snappy-test.h
|
||||||
|
|
||||||
|
# Unit tests and benchmarks.
|
||||||
|
snappy_unittest_CPPFLAGS = $(gflags_CFLAGS) $(GTEST_CPPFLAGS)
|
||||||
|
snappy_unittest_CXXFLAGS = $(GTEST_CPPFLAGS)
|
||||||
|
snappy_unittest_SOURCES = snappy_unittest.cc snappy-test.cc
|
||||||
|
snappy_unittest_LDFLAGS = $(GTEST_LDFLAGS)
|
||||||
|
snappy_unittest_LDADD = libsnappy.la $(gflags_LIBS) $(GTEST_LIBS)
|
||||||
|
TESTS = snappy_unittest
|
||||||
|
noinst_PROGRAMS = $(TESTS)
|
||||||
|
|
||||||
|
EXTRA_DIST = autogen.sh testdata/alice29.txt testdata/asyoulik.txt testdata/baddata1.snappy testdata/baddata2.snappy testdata/baddata3.snappy testdata/cp.html testdata/fields.c testdata/geo.protodata testdata/grammar.lsp testdata/house.jpg testdata/html testdata/html_x_4 testdata/kennedy.xls testdata/kppkn.gtb testdata/lcet10.txt testdata/mapreduce-osdi-1.pdf testdata/plrabn12.txt testdata/ptt5 testdata/sum testdata/urls.10K testdata/xargs.1
|
||||||
|
dist_doc_DATA = ChangeLog COPYING INSTALL NEWS README
|
||||||
|
|
||||||
|
libtool: $(LIBTOOL_DEPS)
|
||||||
|
$(SHELL) ./config.status --recheck
|
|
@ -0,0 +1,926 @@
|
||||||
|
# Makefile.in generated by automake 1.11.1 from Makefile.am.
|
||||||
|
# @configure_input@
|
||||||
|
|
||||||
|
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||||
|
# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
|
||||||
|
# Inc.
|
||||||
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||||
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
@SET_MAKE@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
VPATH = @srcdir@
|
||||||
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
|
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||||
|
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||||
|
install_sh_DATA = $(install_sh) -c -m 644
|
||||||
|
install_sh_PROGRAM = $(install_sh) -c
|
||||||
|
install_sh_SCRIPT = $(install_sh) -c
|
||||||
|
INSTALL_HEADER = $(INSTALL_DATA)
|
||||||
|
transform = $(program_transform_name)
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
build_triplet = @build@
|
||||||
|
host_triplet = @host@
|
||||||
|
TESTS = snappy_unittest$(EXEEXT)
|
||||||
|
noinst_PROGRAMS = $(am__EXEEXT_1)
|
||||||
|
subdir = .
|
||||||
|
DIST_COMMON = README $(am__configure_deps) $(dist_doc_DATA) \
|
||||||
|
$(include_HEADERS) $(noinst_HEADERS) $(srcdir)/Makefile.am \
|
||||||
|
$(srcdir)/Makefile.in $(srcdir)/config.h.in \
|
||||||
|
$(srcdir)/snappy-stubs-public.h.in $(top_srcdir)/configure \
|
||||||
|
AUTHORS COPYING ChangeLog INSTALL NEWS compile config.guess \
|
||||||
|
config.sub depcomp install-sh ltmain.sh missing mkinstalldirs
|
||||||
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
|
am__aclocal_m4_deps = $(top_srcdir)/m4/gtest.m4 \
|
||||||
|
$(top_srcdir)/configure.ac
|
||||||
|
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||||
|
$(ACLOCAL_M4)
|
||||||
|
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
||||||
|
configure.lineno config.status.lineno
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||||
|
CONFIG_HEADER = config.h
|
||||||
|
CONFIG_CLEAN_FILES = snappy-stubs-public.h
|
||||||
|
CONFIG_CLEAN_VPATH_FILES =
|
||||||
|
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||||
|
am__vpath_adj = case $$p in \
|
||||||
|
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||||
|
*) f=$$p;; \
|
||||||
|
esac;
|
||||||
|
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
|
||||||
|
am__install_max = 40
|
||||||
|
am__nobase_strip_setup = \
|
||||||
|
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
|
||||||
|
am__nobase_strip = \
|
||||||
|
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
|
||||||
|
am__nobase_list = $(am__nobase_strip_setup); \
|
||||||
|
for p in $$list; do echo "$$p $$p"; done | \
|
||||||
|
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
|
||||||
|
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
|
||||||
|
if (++n[$$2] == $(am__install_max)) \
|
||||||
|
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
|
||||||
|
END { for (dir in files) print dir, files[dir] }'
|
||||||
|
am__base_list = \
|
||||||
|
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
||||||
|
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||||
|
am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(docdir)" \
|
||||||
|
"$(DESTDIR)$(includedir)"
|
||||||
|
LTLIBRARIES = $(lib_LTLIBRARIES)
|
||||||
|
libsnappy_la_LIBADD =
|
||||||
|
am_libsnappy_la_OBJECTS = snappy.lo snappy-sinksource.lo \
|
||||||
|
snappy-stubs-internal.lo
|
||||||
|
libsnappy_la_OBJECTS = $(am_libsnappy_la_OBJECTS)
|
||||||
|
libsnappy_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
|
||||||
|
$(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
|
||||||
|
$(CXXFLAGS) $(libsnappy_la_LDFLAGS) $(LDFLAGS) -o $@
|
||||||
|
am__EXEEXT_1 = snappy_unittest$(EXEEXT)
|
||||||
|
PROGRAMS = $(noinst_PROGRAMS)
|
||||||
|
am_snappy_unittest_OBJECTS = \
|
||||||
|
snappy_unittest-snappy_unittest.$(OBJEXT) \
|
||||||
|
snappy_unittest-snappy-test.$(OBJEXT)
|
||||||
|
snappy_unittest_OBJECTS = $(am_snappy_unittest_OBJECTS)
|
||||||
|
am__DEPENDENCIES_1 =
|
||||||
|
snappy_unittest_DEPENDENCIES = libsnappy.la $(am__DEPENDENCIES_1) \
|
||||||
|
$(am__DEPENDENCIES_1)
|
||||||
|
snappy_unittest_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
|
||||||
|
$(LIBTOOLFLAGS) --mode=link $(CXXLD) \
|
||||||
|
$(snappy_unittest_CXXFLAGS) $(CXXFLAGS) \
|
||||||
|
$(snappy_unittest_LDFLAGS) $(LDFLAGS) -o $@
|
||||||
|
DEFAULT_INCLUDES = -I.@am__isrc@
|
||||||
|
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
||||||
|
am__depfiles_maybe = depfiles
|
||||||
|
am__mv = mv -f
|
||||||
|
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||||||
|
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
|
||||||
|
LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
||||||
|
--mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||||||
|
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
|
||||||
|
CXXLD = $(CXX)
|
||||||
|
CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
||||||
|
--mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
|
||||||
|
$(LDFLAGS) -o $@
|
||||||
|
SOURCES = $(libsnappy_la_SOURCES) $(snappy_unittest_SOURCES)
|
||||||
|
DIST_SOURCES = $(libsnappy_la_SOURCES) $(snappy_unittest_SOURCES)
|
||||||
|
DATA = $(dist_doc_DATA)
|
||||||
|
HEADERS = $(include_HEADERS) $(noinst_HEADERS)
|
||||||
|
ETAGS = etags
|
||||||
|
CTAGS = ctags
|
||||||
|
am__tty_colors = \
|
||||||
|
red=; grn=; lgn=; blu=; std=
|
||||||
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
distdir = $(PACKAGE)-$(VERSION)
|
||||||
|
top_distdir = $(distdir)
|
||||||
|
am__remove_distdir = \
|
||||||
|
{ test ! -d "$(distdir)" \
|
||||||
|
|| { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
|
||||||
|
&& rm -fr "$(distdir)"; }; }
|
||||||
|
DIST_ARCHIVES = $(distdir).tar.gz
|
||||||
|
GZIP_ENV = --best
|
||||||
|
distuninstallcheck_listfiles = find . -type f -print
|
||||||
|
distcleancheck_listfiles = find . -type f -print
|
||||||
|
ACLOCAL = @ACLOCAL@
|
||||||
|
AMTAR = @AMTAR@
|
||||||
|
AR = @AR@
|
||||||
|
AUTOCONF = @AUTOCONF@
|
||||||
|
AUTOHEADER = @AUTOHEADER@
|
||||||
|
AUTOMAKE = @AUTOMAKE@
|
||||||
|
AWK = @AWK@
|
||||||
|
CC = @CC@
|
||||||
|
CCDEPMODE = @CCDEPMODE@
|
||||||
|
CFLAGS = @CFLAGS@
|
||||||
|
CPP = @CPP@
|
||||||
|
CPPFLAGS = @CPPFLAGS@
|
||||||
|
CXX = @CXX@
|
||||||
|
CXXCPP = @CXXCPP@
|
||||||
|
CXXDEPMODE = @CXXDEPMODE@
|
||||||
|
CXXFLAGS = @CXXFLAGS@
|
||||||
|
CYGPATH_W = @CYGPATH_W@
|
||||||
|
DEFS = @DEFS@
|
||||||
|
DEPDIR = @DEPDIR@
|
||||||
|
DSYMUTIL = @DSYMUTIL@
|
||||||
|
DUMPBIN = @DUMPBIN@
|
||||||
|
ECHO_C = @ECHO_C@
|
||||||
|
ECHO_N = @ECHO_N@
|
||||||
|
ECHO_T = @ECHO_T@
|
||||||
|
EGREP = @EGREP@
|
||||||
|
EXEEXT = @EXEEXT@
|
||||||
|
EXTRA_LIBSNAPPY_LDFLAGS = @EXTRA_LIBSNAPPY_LDFLAGS@
|
||||||
|
FGREP = @FGREP@
|
||||||
|
GREP = @GREP@
|
||||||
|
GTEST_CONFIG = @GTEST_CONFIG@
|
||||||
|
GTEST_CPPFLAGS = @GTEST_CPPFLAGS@
|
||||||
|
GTEST_CXXFLAGS = @GTEST_CXXFLAGS@
|
||||||
|
GTEST_LDFLAGS = @GTEST_LDFLAGS@
|
||||||
|
GTEST_LIBS = @GTEST_LIBS@
|
||||||
|
GTEST_VERSION = @GTEST_VERSION@
|
||||||
|
HAVE_GTEST = @HAVE_GTEST@
|
||||||
|
INSTALL = @INSTALL@
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||||
|
LD = @LD@
|
||||||
|
LDFLAGS = @LDFLAGS@
|
||||||
|
LIBOBJS = @LIBOBJS@
|
||||||
|
LIBS = @LIBS@
|
||||||
|
LIBTOOL = @LIBTOOL@
|
||||||
|
LIPO = @LIPO@
|
||||||
|
LN_S = @LN_S@
|
||||||
|
LTLIBOBJS = @LTLIBOBJS@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
MKDIR_P = @MKDIR_P@
|
||||||
|
NM = @NM@
|
||||||
|
NMEDIT = @NMEDIT@
|
||||||
|
OBJDUMP = @OBJDUMP@
|
||||||
|
OBJEXT = @OBJEXT@
|
||||||
|
OTOOL = @OTOOL@
|
||||||
|
OTOOL64 = @OTOOL64@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
|
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||||
|
PACKAGE_NAME = @PACKAGE_NAME@
|
||||||
|
PACKAGE_STRING = @PACKAGE_STRING@
|
||||||
|
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||||
|
PACKAGE_URL = @PACKAGE_URL@
|
||||||
|
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||||
|
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||||
|
PKG_CONFIG = @PKG_CONFIG@
|
||||||
|
RANLIB = @RANLIB@
|
||||||
|
SED = @SED@
|
||||||
|
SET_MAKE = @SET_MAKE@
|
||||||
|
SHELL = @SHELL@
|
||||||
|
SNAPPY_MAJOR = @SNAPPY_MAJOR@
|
||||||
|
SNAPPY_MINOR = @SNAPPY_MINOR@
|
||||||
|
SNAPPY_PATCHLEVEL = @SNAPPY_PATCHLEVEL@
|
||||||
|
STRIP = @STRIP@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
abs_builddir = @abs_builddir@
|
||||||
|
abs_srcdir = @abs_srcdir@
|
||||||
|
abs_top_builddir = @abs_top_builddir@
|
||||||
|
abs_top_srcdir = @abs_top_srcdir@
|
||||||
|
ac_ct_CC = @ac_ct_CC@
|
||||||
|
ac_ct_CXX = @ac_ct_CXX@
|
||||||
|
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||||
|
ac_cv_have_stddef_h = @ac_cv_have_stddef_h@
|
||||||
|
ac_cv_have_stdint_h = @ac_cv_have_stdint_h@
|
||||||
|
am__include = @am__include@
|
||||||
|
am__leading_dot = @am__leading_dot@
|
||||||
|
am__quote = @am__quote@
|
||||||
|
am__tar = @am__tar@
|
||||||
|
am__untar = @am__untar@
|
||||||
|
bindir = @bindir@
|
||||||
|
build = @build@
|
||||||
|
build_alias = @build_alias@
|
||||||
|
build_cpu = @build_cpu@
|
||||||
|
build_os = @build_os@
|
||||||
|
build_vendor = @build_vendor@
|
||||||
|
builddir = @builddir@
|
||||||
|
datadir = @datadir@
|
||||||
|
datarootdir = @datarootdir@
|
||||||
|
docdir = @docdir@
|
||||||
|
dvidir = @dvidir@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
gflags_CFLAGS = @gflags_CFLAGS@
|
||||||
|
gflags_LIBS = @gflags_LIBS@
|
||||||
|
host = @host@
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_cpu = @host_cpu@
|
||||||
|
host_os = @host_os@
|
||||||
|
host_vendor = @host_vendor@
|
||||||
|
htmldir = @htmldir@
|
||||||
|
includedir = @includedir@
|
||||||
|
infodir = @infodir@
|
||||||
|
install_sh = @install_sh@
|
||||||
|
libdir = @libdir@
|
||||||
|
libexecdir = @libexecdir@
|
||||||
|
localedir = @localedir@
|
||||||
|
localstatedir = @localstatedir@
|
||||||
|
lt_ECHO = @lt_ECHO@
|
||||||
|
mandir = @mandir@
|
||||||
|
mkdir_p = @mkdir_p@
|
||||||
|
oldincludedir = @oldincludedir@
|
||||||
|
pdfdir = @pdfdir@
|
||||||
|
prefix = @prefix@
|
||||||
|
program_transform_name = @program_transform_name@
|
||||||
|
psdir = @psdir@
|
||||||
|
sbindir = @sbindir@
|
||||||
|
sharedstatedir = @sharedstatedir@
|
||||||
|
srcdir = @srcdir@
|
||||||
|
sysconfdir = @sysconfdir@
|
||||||
|
target_alias = @target_alias@
|
||||||
|
top_build_prefix = @top_build_prefix@
|
||||||
|
top_builddir = @top_builddir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
|
|
||||||
|
# Library.
|
||||||
|
lib_LTLIBRARIES = libsnappy.la
|
||||||
|
libsnappy_la_SOURCES = snappy.cc snappy-sinksource.cc snappy-stubs-internal.cc
|
||||||
|
libsnappy_la_LDFLAGS = $(EXTRA_LIBSNAPPY_LDFLAGS)
|
||||||
|
include_HEADERS = snappy.h snappy-sinksource.h snappy-stubs-public.h
|
||||||
|
noinst_HEADERS = snappy-internal.h snappy-stubs-internal.h snappy-test.h
|
||||||
|
|
||||||
|
# Unit tests and benchmarks.
|
||||||
|
snappy_unittest_CPPFLAGS = $(gflags_CFLAGS) $(GTEST_CPPFLAGS)
|
||||||
|
snappy_unittest_CXXFLAGS = $(GTEST_CPPFLAGS)
|
||||||
|
snappy_unittest_SOURCES = snappy_unittest.cc snappy-test.cc
|
||||||
|
snappy_unittest_LDFLAGS = $(GTEST_LDFLAGS)
|
||||||
|
snappy_unittest_LDADD = libsnappy.la $(gflags_LIBS) $(GTEST_LIBS)
|
||||||
|
EXTRA_DIST = autogen.sh testdata/alice29.txt testdata/asyoulik.txt testdata/baddata1.snappy testdata/baddata2.snappy testdata/baddata3.snappy testdata/cp.html testdata/fields.c testdata/geo.protodata testdata/grammar.lsp testdata/house.jpg testdata/html testdata/html_x_4 testdata/kennedy.xls testdata/kppkn.gtb testdata/lcet10.txt testdata/mapreduce-osdi-1.pdf testdata/plrabn12.txt testdata/ptt5 testdata/sum testdata/urls.10K testdata/xargs.1
|
||||||
|
dist_doc_DATA = ChangeLog COPYING INSTALL NEWS README
|
||||||
|
all: config.h
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) all-am
|
||||||
|
|
||||||
|
.SUFFIXES:
|
||||||
|
.SUFFIXES: .cc .lo .o .obj
|
||||||
|
am--refresh:
|
||||||
|
@:
|
||||||
|
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||||
|
@for dep in $?; do \
|
||||||
|
case '$(am__configure_deps)' in \
|
||||||
|
*$$dep*) \
|
||||||
|
echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
|
||||||
|
$(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
|
||||||
|
&& exit 0; \
|
||||||
|
exit 1;; \
|
||||||
|
esac; \
|
||||||
|
done; \
|
||||||
|
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
|
||||||
|
$(am__cd) $(top_srcdir) && \
|
||||||
|
$(AUTOMAKE) --gnu Makefile
|
||||||
|
.PRECIOUS: Makefile
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||||
|
@case '$?' in \
|
||||||
|
*config.status*) \
|
||||||
|
echo ' $(SHELL) ./config.status'; \
|
||||||
|
$(SHELL) ./config.status;; \
|
||||||
|
*) \
|
||||||
|
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
|
||||||
|
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
|
||||||
|
esac;
|
||||||
|
|
||||||
|
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||||
|
$(SHELL) ./config.status --recheck
|
||||||
|
|
||||||
|
$(top_srcdir)/configure: $(am__configure_deps)
|
||||||
|
$(am__cd) $(srcdir) && $(AUTOCONF)
|
||||||
|
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||||
|
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
||||||
|
$(am__aclocal_m4_deps):
|
||||||
|
|
||||||
|
config.h: stamp-h1
|
||||||
|
@if test ! -f $@; then \
|
||||||
|
rm -f stamp-h1; \
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
|
||||||
|
else :; fi
|
||||||
|
|
||||||
|
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
|
||||||
|
@rm -f stamp-h1
|
||||||
|
cd $(top_builddir) && $(SHELL) ./config.status config.h
|
||||||
|
$(srcdir)/config.h.in: $(am__configure_deps)
|
||||||
|
($(am__cd) $(top_srcdir) && $(AUTOHEADER))
|
||||||
|
rm -f stamp-h1
|
||||||
|
touch $@
|
||||||
|
|
||||||
|
distclean-hdr:
|
||||||
|
-rm -f config.h stamp-h1
|
||||||
|
snappy-stubs-public.h: $(top_builddir)/config.status $(srcdir)/snappy-stubs-public.h.in
|
||||||
|
cd $(top_builddir) && $(SHELL) ./config.status $@
|
||||||
|
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
|
||||||
|
@$(NORMAL_INSTALL)
|
||||||
|
test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
|
||||||
|
@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
|
||||||
|
list2=; for p in $$list; do \
|
||||||
|
if test -f $$p; then \
|
||||||
|
list2="$$list2 $$p"; \
|
||||||
|
else :; fi; \
|
||||||
|
done; \
|
||||||
|
test -z "$$list2" || { \
|
||||||
|
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
|
||||||
|
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
|
||||||
|
}
|
||||||
|
|
||||||
|
uninstall-libLTLIBRARIES:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
|
||||||
|
for p in $$list; do \
|
||||||
|
$(am__strip_dir) \
|
||||||
|
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
|
||||||
|
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
|
||||||
|
done
|
||||||
|
|
||||||
|
clean-libLTLIBRARIES:
|
||||||
|
-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
|
||||||
|
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||||
|
dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
|
||||||
|
test "$$dir" != "$$p" || dir=.; \
|
||||||
|
echo "rm -f \"$${dir}/so_locations\""; \
|
||||||
|
rm -f "$${dir}/so_locations"; \
|
||||||
|
done
|
||||||
|
libsnappy.la: $(libsnappy_la_OBJECTS) $(libsnappy_la_DEPENDENCIES)
|
||||||
|
$(libsnappy_la_LINK) -rpath $(libdir) $(libsnappy_la_OBJECTS) $(libsnappy_la_LIBADD) $(LIBS)
|
||||||
|
|
||||||
|
clean-noinstPROGRAMS:
|
||||||
|
@list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
|
||||||
|
echo " rm -f" $$list; \
|
||||||
|
rm -f $$list || exit $$?; \
|
||||||
|
test -n "$(EXEEXT)" || exit 0; \
|
||||||
|
list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
|
||||||
|
echo " rm -f" $$list; \
|
||||||
|
rm -f $$list
|
||||||
|
snappy_unittest$(EXEEXT): $(snappy_unittest_OBJECTS) $(snappy_unittest_DEPENDENCIES)
|
||||||
|
@rm -f snappy_unittest$(EXEEXT)
|
||||||
|
$(snappy_unittest_LINK) $(snappy_unittest_OBJECTS) $(snappy_unittest_LDADD) $(LIBS)
|
||||||
|
|
||||||
|
mostlyclean-compile:
|
||||||
|
-rm -f *.$(OBJEXT)
|
||||||
|
|
||||||
|
distclean-compile:
|
||||||
|
-rm -f *.tab.c
|
||||||
|
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/snappy-sinksource.Plo@am__quote@
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/snappy-stubs-internal.Plo@am__quote@
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/snappy.Plo@am__quote@
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/snappy_unittest-snappy-test.Po@am__quote@
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/snappy_unittest-snappy_unittest.Po@am__quote@
|
||||||
|
|
||||||
|
.cc.o:
|
||||||
|
@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||||
|
@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
|
||||||
|
|
||||||
|
.cc.obj:
|
||||||
|
@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
|
||||||
|
@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
|
||||||
|
|
||||||
|
.cc.lo:
|
||||||
|
@am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||||
|
@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $<
|
||||||
|
|
||||||
|
snappy_unittest-snappy_unittest.o: snappy_unittest.cc
|
||||||
|
@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(snappy_unittest_CPPFLAGS) $(CPPFLAGS) $(snappy_unittest_CXXFLAGS) $(CXXFLAGS) -MT snappy_unittest-snappy_unittest.o -MD -MP -MF $(DEPDIR)/snappy_unittest-snappy_unittest.Tpo -c -o snappy_unittest-snappy_unittest.o `test -f 'snappy_unittest.cc' || echo '$(srcdir)/'`snappy_unittest.cc
|
||||||
|
@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/snappy_unittest-snappy_unittest.Tpo $(DEPDIR)/snappy_unittest-snappy_unittest.Po
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='snappy_unittest.cc' object='snappy_unittest-snappy_unittest.o' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(snappy_unittest_CPPFLAGS) $(CPPFLAGS) $(snappy_unittest_CXXFLAGS) $(CXXFLAGS) -c -o snappy_unittest-snappy_unittest.o `test -f 'snappy_unittest.cc' || echo '$(srcdir)/'`snappy_unittest.cc
|
||||||
|
|
||||||
|
snappy_unittest-snappy_unittest.obj: snappy_unittest.cc
|
||||||
|
@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(snappy_unittest_CPPFLAGS) $(CPPFLAGS) $(snappy_unittest_CXXFLAGS) $(CXXFLAGS) -MT snappy_unittest-snappy_unittest.obj -MD -MP -MF $(DEPDIR)/snappy_unittest-snappy_unittest.Tpo -c -o snappy_unittest-snappy_unittest.obj `if test -f 'snappy_unittest.cc'; then $(CYGPATH_W) 'snappy_unittest.cc'; else $(CYGPATH_W) '$(srcdir)/snappy_unittest.cc'; fi`
|
||||||
|
@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/snappy_unittest-snappy_unittest.Tpo $(DEPDIR)/snappy_unittest-snappy_unittest.Po
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='snappy_unittest.cc' object='snappy_unittest-snappy_unittest.obj' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(snappy_unittest_CPPFLAGS) $(CPPFLAGS) $(snappy_unittest_CXXFLAGS) $(CXXFLAGS) -c -o snappy_unittest-snappy_unittest.obj `if test -f 'snappy_unittest.cc'; then $(CYGPATH_W) 'snappy_unittest.cc'; else $(CYGPATH_W) '$(srcdir)/snappy_unittest.cc'; fi`
|
||||||
|
|
||||||
|
snappy_unittest-snappy-test.o: snappy-test.cc
|
||||||
|
@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(snappy_unittest_CPPFLAGS) $(CPPFLAGS) $(snappy_unittest_CXXFLAGS) $(CXXFLAGS) -MT snappy_unittest-snappy-test.o -MD -MP -MF $(DEPDIR)/snappy_unittest-snappy-test.Tpo -c -o snappy_unittest-snappy-test.o `test -f 'snappy-test.cc' || echo '$(srcdir)/'`snappy-test.cc
|
||||||
|
@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/snappy_unittest-snappy-test.Tpo $(DEPDIR)/snappy_unittest-snappy-test.Po
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='snappy-test.cc' object='snappy_unittest-snappy-test.o' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(snappy_unittest_CPPFLAGS) $(CPPFLAGS) $(snappy_unittest_CXXFLAGS) $(CXXFLAGS) -c -o snappy_unittest-snappy-test.o `test -f 'snappy-test.cc' || echo '$(srcdir)/'`snappy-test.cc
|
||||||
|
|
||||||
|
snappy_unittest-snappy-test.obj: snappy-test.cc
|
||||||
|
@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(snappy_unittest_CPPFLAGS) $(CPPFLAGS) $(snappy_unittest_CXXFLAGS) $(CXXFLAGS) -MT snappy_unittest-snappy-test.obj -MD -MP -MF $(DEPDIR)/snappy_unittest-snappy-test.Tpo -c -o snappy_unittest-snappy-test.obj `if test -f 'snappy-test.cc'; then $(CYGPATH_W) 'snappy-test.cc'; else $(CYGPATH_W) '$(srcdir)/snappy-test.cc'; fi`
|
||||||
|
@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/snappy_unittest-snappy-test.Tpo $(DEPDIR)/snappy_unittest-snappy-test.Po
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='snappy-test.cc' object='snappy_unittest-snappy-test.obj' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(snappy_unittest_CPPFLAGS) $(CPPFLAGS) $(snappy_unittest_CXXFLAGS) $(CXXFLAGS) -c -o snappy_unittest-snappy-test.obj `if test -f 'snappy-test.cc'; then $(CYGPATH_W) 'snappy-test.cc'; else $(CYGPATH_W) '$(srcdir)/snappy-test.cc'; fi`
|
||||||
|
|
||||||
|
mostlyclean-libtool:
|
||||||
|
-rm -f *.lo
|
||||||
|
|
||||||
|
clean-libtool:
|
||||||
|
-rm -rf .libs _libs
|
||||||
|
|
||||||
|
distclean-libtool:
|
||||||
|
-rm -f libtool config.lt
|
||||||
|
install-dist_docDATA: $(dist_doc_DATA)
|
||||||
|
@$(NORMAL_INSTALL)
|
||||||
|
test -z "$(docdir)" || $(MKDIR_P) "$(DESTDIR)$(docdir)"
|
||||||
|
@list='$(dist_doc_DATA)'; test -n "$(docdir)" || list=; \
|
||||||
|
for p in $$list; do \
|
||||||
|
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||||
|
echo "$$d$$p"; \
|
||||||
|
done | $(am__base_list) | \
|
||||||
|
while read files; do \
|
||||||
|
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(docdir)'"; \
|
||||||
|
$(INSTALL_DATA) $$files "$(DESTDIR)$(docdir)" || exit $$?; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-dist_docDATA:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
@list='$(dist_doc_DATA)'; test -n "$(docdir)" || list=; \
|
||||||
|
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
||||||
|
test -n "$$files" || exit 0; \
|
||||||
|
echo " ( cd '$(DESTDIR)$(docdir)' && rm -f" $$files ")"; \
|
||||||
|
cd "$(DESTDIR)$(docdir)" && rm -f $$files
|
||||||
|
install-includeHEADERS: $(include_HEADERS)
|
||||||
|
@$(NORMAL_INSTALL)
|
||||||
|
test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
|
||||||
|
@list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
|
||||||
|
for p in $$list; do \
|
||||||
|
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||||
|
echo "$$d$$p"; \
|
||||||
|
done | $(am__base_list) | \
|
||||||
|
while read files; do \
|
||||||
|
echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
|
||||||
|
$(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-includeHEADERS:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
@list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
|
||||||
|
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
||||||
|
test -n "$$files" || exit 0; \
|
||||||
|
echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
|
||||||
|
cd "$(DESTDIR)$(includedir)" && rm -f $$files
|
||||||
|
|
||||||
|
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||||
|
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||||
|
unique=`for i in $$list; do \
|
||||||
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
|
done | \
|
||||||
|
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||||
|
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||||
|
mkid -fID $$unique
|
||||||
|
tags: TAGS
|
||||||
|
|
||||||
|
TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
|
||||||
|
$(TAGS_FILES) $(LISP)
|
||||||
|
set x; \
|
||||||
|
here=`pwd`; \
|
||||||
|
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
|
||||||
|
unique=`for i in $$list; do \
|
||||||
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
|
done | \
|
||||||
|
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||||
|
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||||
|
shift; \
|
||||||
|
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
||||||
|
test -n "$$unique" || unique=$$empty_fix; \
|
||||||
|
if test $$# -gt 0; then \
|
||||||
|
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||||
|
"$$@" $$unique; \
|
||||||
|
else \
|
||||||
|
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||||
|
$$unique; \
|
||||||
|
fi; \
|
||||||
|
fi
|
||||||
|
ctags: CTAGS
|
||||||
|
CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
|
||||||
|
$(TAGS_FILES) $(LISP)
|
||||||
|
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
|
||||||
|
unique=`for i in $$list; do \
|
||||||
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
|
done | \
|
||||||
|
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||||
|
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||||
|
test -z "$(CTAGS_ARGS)$$unique" \
|
||||||
|
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||||
|
$$unique
|
||||||
|
|
||||||
|
GTAGS:
|
||||||
|
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||||
|
&& $(am__cd) $(top_srcdir) \
|
||||||
|
&& gtags -i $(GTAGS_ARGS) "$$here"
|
||||||
|
|
||||||
|
distclean-tags:
|
||||||
|
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||||
|
|
||||||
|
check-TESTS: $(TESTS)
|
||||||
|
@failed=0; all=0; xfail=0; xpass=0; skip=0; \
|
||||||
|
srcdir=$(srcdir); export srcdir; \
|
||||||
|
list=' $(TESTS) '; \
|
||||||
|
$(am__tty_colors); \
|
||||||
|
if test -n "$$list"; then \
|
||||||
|
for tst in $$list; do \
|
||||||
|
if test -f ./$$tst; then dir=./; \
|
||||||
|
elif test -f $$tst; then dir=; \
|
||||||
|
else dir="$(srcdir)/"; fi; \
|
||||||
|
if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
|
||||||
|
all=`expr $$all + 1`; \
|
||||||
|
case " $(XFAIL_TESTS) " in \
|
||||||
|
*[\ \ ]$$tst[\ \ ]*) \
|
||||||
|
xpass=`expr $$xpass + 1`; \
|
||||||
|
failed=`expr $$failed + 1`; \
|
||||||
|
col=$$red; res=XPASS; \
|
||||||
|
;; \
|
||||||
|
*) \
|
||||||
|
col=$$grn; res=PASS; \
|
||||||
|
;; \
|
||||||
|
esac; \
|
||||||
|
elif test $$? -ne 77; then \
|
||||||
|
all=`expr $$all + 1`; \
|
||||||
|
case " $(XFAIL_TESTS) " in \
|
||||||
|
*[\ \ ]$$tst[\ \ ]*) \
|
||||||
|
xfail=`expr $$xfail + 1`; \
|
||||||
|
col=$$lgn; res=XFAIL; \
|
||||||
|
;; \
|
||||||
|
*) \
|
||||||
|
failed=`expr $$failed + 1`; \
|
||||||
|
col=$$red; res=FAIL; \
|
||||||
|
;; \
|
||||||
|
esac; \
|
||||||
|
else \
|
||||||
|
skip=`expr $$skip + 1`; \
|
||||||
|
col=$$blu; res=SKIP; \
|
||||||
|
fi; \
|
||||||
|
echo "$${col}$$res$${std}: $$tst"; \
|
||||||
|
done; \
|
||||||
|
if test "$$all" -eq 1; then \
|
||||||
|
tests="test"; \
|
||||||
|
All=""; \
|
||||||
|
else \
|
||||||
|
tests="tests"; \
|
||||||
|
All="All "; \
|
||||||
|
fi; \
|
||||||
|
if test "$$failed" -eq 0; then \
|
||||||
|
if test "$$xfail" -eq 0; then \
|
||||||
|
banner="$$All$$all $$tests passed"; \
|
||||||
|
else \
|
||||||
|
if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
|
||||||
|
banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
|
||||||
|
fi; \
|
||||||
|
else \
|
||||||
|
if test "$$xpass" -eq 0; then \
|
||||||
|
banner="$$failed of $$all $$tests failed"; \
|
||||||
|
else \
|
||||||
|
if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
|
||||||
|
banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
|
||||||
|
fi; \
|
||||||
|
fi; \
|
||||||
|
dashes="$$banner"; \
|
||||||
|
skipped=""; \
|
||||||
|
if test "$$skip" -ne 0; then \
|
||||||
|
if test "$$skip" -eq 1; then \
|
||||||
|
skipped="($$skip test was not run)"; \
|
||||||
|
else \
|
||||||
|
skipped="($$skip tests were not run)"; \
|
||||||
|
fi; \
|
||||||
|
test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
|
||||||
|
dashes="$$skipped"; \
|
||||||
|
fi; \
|
||||||
|
report=""; \
|
||||||
|
if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
|
||||||
|
report="Please report to $(PACKAGE_BUGREPORT)"; \
|
||||||
|
test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
|
||||||
|
dashes="$$report"; \
|
||||||
|
fi; \
|
||||||
|
dashes=`echo "$$dashes" | sed s/./=/g`; \
|
||||||
|
if test "$$failed" -eq 0; then \
|
||||||
|
echo "$$grn$$dashes"; \
|
||||||
|
else \
|
||||||
|
echo "$$red$$dashes"; \
|
||||||
|
fi; \
|
||||||
|
echo "$$banner"; \
|
||||||
|
test -z "$$skipped" || echo "$$skipped"; \
|
||||||
|
test -z "$$report" || echo "$$report"; \
|
||||||
|
echo "$$dashes$$std"; \
|
||||||
|
test "$$failed" -eq 0; \
|
||||||
|
else :; fi
|
||||||
|
|
||||||
|
distdir: $(DISTFILES)
|
||||||
|
$(am__remove_distdir)
|
||||||
|
test -d "$(distdir)" || mkdir "$(distdir)"
|
||||||
|
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||||
|
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||||
|
list='$(DISTFILES)'; \
|
||||||
|
dist_files=`for file in $$list; do echo $$file; done | \
|
||||||
|
sed -e "s|^$$srcdirstrip/||;t" \
|
||||||
|
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||||
|
case $$dist_files in \
|
||||||
|
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||||
|
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||||
|
sort -u` ;; \
|
||||||
|
esac; \
|
||||||
|
for file in $$dist_files; do \
|
||||||
|
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||||
|
if test -d $$d/$$file; then \
|
||||||
|
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||||
|
if test -d "$(distdir)/$$file"; then \
|
||||||
|
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||||
|
fi; \
|
||||||
|
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||||
|
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||||
|
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||||
|
fi; \
|
||||||
|
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||||
|
else \
|
||||||
|
test -f "$(distdir)/$$file" \
|
||||||
|
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||||
|
|| exit 1; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
-test -n "$(am__skip_mode_fix)" \
|
||||||
|
|| find "$(distdir)" -type d ! -perm -755 \
|
||||||
|
-exec chmod u+rwx,go+rx {} \; -o \
|
||||||
|
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
||||||
|
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
||||||
|
! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
|
||||||
|
|| chmod -R a+r "$(distdir)"
|
||||||
|
dist-gzip: distdir
|
||||||
|
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-bzip2: distdir
|
||||||
|
tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-lzma: distdir
|
||||||
|
tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-xz: distdir
|
||||||
|
tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-tarZ: distdir
|
||||||
|
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-shar: distdir
|
||||||
|
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-zip: distdir
|
||||||
|
-rm -f $(distdir).zip
|
||||||
|
zip -rq $(distdir).zip $(distdir)
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist dist-all: distdir
|
||||||
|
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
# This target untars the dist file and tries a VPATH configuration. Then
|
||||||
|
# it guarantees that the distribution is self-contained by making another
|
||||||
|
# tarfile.
|
||||||
|
distcheck: dist
|
||||||
|
case '$(DIST_ARCHIVES)' in \
|
||||||
|
*.tar.gz*) \
|
||||||
|
GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
|
||||||
|
*.tar.bz2*) \
|
||||||
|
bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
|
||||||
|
*.tar.lzma*) \
|
||||||
|
lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
|
||||||
|
*.tar.xz*) \
|
||||||
|
xz -dc $(distdir).tar.xz | $(am__untar) ;;\
|
||||||
|
*.tar.Z*) \
|
||||||
|
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
|
||||||
|
*.shar.gz*) \
|
||||||
|
GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
|
||||||
|
*.zip*) \
|
||||||
|
unzip $(distdir).zip ;;\
|
||||||
|
esac
|
||||||
|
chmod -R a-w $(distdir); chmod a+w $(distdir)
|
||||||
|
mkdir $(distdir)/_build
|
||||||
|
mkdir $(distdir)/_inst
|
||||||
|
chmod a-w $(distdir)
|
||||||
|
test -d $(distdir)/_build || exit 0; \
|
||||||
|
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
|
||||||
|
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
|
||||||
|
&& am__cwd=`pwd` \
|
||||||
|
&& $(am__cd) $(distdir)/_build \
|
||||||
|
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
|
||||||
|
$(DISTCHECK_CONFIGURE_FLAGS) \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
|
||||||
|
distuninstallcheck \
|
||||||
|
&& chmod -R a-w "$$dc_install_base" \
|
||||||
|
&& ({ \
|
||||||
|
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
|
||||||
|
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
|
||||||
|
} || { rm -rf "$$dc_destdir"; exit 1; }) \
|
||||||
|
&& rm -rf "$$dc_destdir" \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) dist \
|
||||||
|
&& rm -rf $(DIST_ARCHIVES) \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
|
||||||
|
&& cd "$$am__cwd" \
|
||||||
|
|| exit 1
|
||||||
|
$(am__remove_distdir)
|
||||||
|
@(echo "$(distdir) archives ready for distribution: "; \
|
||||||
|
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
|
||||||
|
sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
|
||||||
|
distuninstallcheck:
|
||||||
|
@$(am__cd) '$(distuninstallcheck_dir)' \
|
||||||
|
&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
|
||||||
|
|| { echo "ERROR: files left after uninstall:" ; \
|
||||||
|
if test -n "$(DESTDIR)"; then \
|
||||||
|
echo " (check DESTDIR support)"; \
|
||||||
|
fi ; \
|
||||||
|
$(distuninstallcheck_listfiles) ; \
|
||||||
|
exit 1; } >&2
|
||||||
|
distcleancheck: distclean
|
||||||
|
@if test '$(srcdir)' = . ; then \
|
||||||
|
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
|
||||||
|
exit 1 ; \
|
||||||
|
fi
|
||||||
|
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|
||||||
|
|| { echo "ERROR: files left in build directory after distclean:" ; \
|
||||||
|
$(distcleancheck_listfiles) ; \
|
||||||
|
exit 1; } >&2
|
||||||
|
check-am: all-am
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) check-TESTS
|
||||||
|
check: check-am
|
||||||
|
all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(DATA) $(HEADERS) \
|
||||||
|
config.h
|
||||||
|
installdirs:
|
||||||
|
for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(docdir)" "$(DESTDIR)$(includedir)"; do \
|
||||||
|
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||||
|
done
|
||||||
|
install: install-am
|
||||||
|
install-exec: install-exec-am
|
||||||
|
install-data: install-data-am
|
||||||
|
uninstall: uninstall-am
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
|
||||||
|
installcheck: installcheck-am
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||||
|
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||||
|
`test -z '$(STRIP)' || \
|
||||||
|
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||||
|
mostlyclean-generic:
|
||||||
|
|
||||||
|
clean-generic:
|
||||||
|
|
||||||
|
distclean-generic:
|
||||||
|
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||||
|
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||||
|
|
||||||
|
maintainer-clean-generic:
|
||||||
|
@echo "This command is intended for maintainers to use"
|
||||||
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
|
clean: clean-am
|
||||||
|
|
||||||
|
clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
|
||||||
|
clean-noinstPROGRAMS mostlyclean-am
|
||||||
|
|
||||||
|
distclean: distclean-am
|
||||||
|
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||||
|
-rm -rf ./$(DEPDIR)
|
||||||
|
-rm -f Makefile
|
||||||
|
distclean-am: clean-am distclean-compile distclean-generic \
|
||||||
|
distclean-hdr distclean-libtool distclean-tags
|
||||||
|
|
||||||
|
dvi: dvi-am
|
||||||
|
|
||||||
|
dvi-am:
|
||||||
|
|
||||||
|
html: html-am
|
||||||
|
|
||||||
|
html-am:
|
||||||
|
|
||||||
|
info: info-am
|
||||||
|
|
||||||
|
info-am:
|
||||||
|
|
||||||
|
install-data-am: install-dist_docDATA install-includeHEADERS
|
||||||
|
|
||||||
|
install-dvi: install-dvi-am
|
||||||
|
|
||||||
|
install-dvi-am:
|
||||||
|
|
||||||
|
install-exec-am: install-libLTLIBRARIES
|
||||||
|
|
||||||
|
install-html: install-html-am
|
||||||
|
|
||||||
|
install-html-am:
|
||||||
|
|
||||||
|
install-info: install-info-am
|
||||||
|
|
||||||
|
install-info-am:
|
||||||
|
|
||||||
|
install-man:
|
||||||
|
|
||||||
|
install-pdf: install-pdf-am
|
||||||
|
|
||||||
|
install-pdf-am:
|
||||||
|
|
||||||
|
install-ps: install-ps-am
|
||||||
|
|
||||||
|
install-ps-am:
|
||||||
|
|
||||||
|
installcheck-am:
|
||||||
|
|
||||||
|
maintainer-clean: maintainer-clean-am
|
||||||
|
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||||
|
-rm -rf $(top_srcdir)/autom4te.cache
|
||||||
|
-rm -rf ./$(DEPDIR)
|
||||||
|
-rm -f Makefile
|
||||||
|
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||||
|
|
||||||
|
mostlyclean: mostlyclean-am
|
||||||
|
|
||||||
|
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
|
||||||
|
mostlyclean-libtool
|
||||||
|
|
||||||
|
pdf: pdf-am
|
||||||
|
|
||||||
|
pdf-am:
|
||||||
|
|
||||||
|
ps: ps-am
|
||||||
|
|
||||||
|
ps-am:
|
||||||
|
|
||||||
|
uninstall-am: uninstall-dist_docDATA uninstall-includeHEADERS \
|
||||||
|
uninstall-libLTLIBRARIES
|
||||||
|
|
||||||
|
.MAKE: all check-am install-am install-strip
|
||||||
|
|
||||||
|
.PHONY: CTAGS GTAGS all all-am am--refresh check check-TESTS check-am \
|
||||||
|
clean clean-generic clean-libLTLIBRARIES clean-libtool \
|
||||||
|
clean-noinstPROGRAMS ctags dist dist-all dist-bzip2 dist-gzip \
|
||||||
|
dist-lzma dist-shar dist-tarZ dist-xz dist-zip distcheck \
|
||||||
|
distclean distclean-compile distclean-generic distclean-hdr \
|
||||||
|
distclean-libtool distclean-tags distcleancheck distdir \
|
||||||
|
distuninstallcheck dvi dvi-am html html-am info info-am \
|
||||||
|
install install-am install-data install-data-am \
|
||||||
|
install-dist_docDATA install-dvi install-dvi-am install-exec \
|
||||||
|
install-exec-am install-html install-html-am \
|
||||||
|
install-includeHEADERS install-info install-info-am \
|
||||||
|
install-libLTLIBRARIES install-man install-pdf install-pdf-am \
|
||||||
|
install-ps install-ps-am install-strip installcheck \
|
||||||
|
installcheck-am installdirs maintainer-clean \
|
||||||
|
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
||||||
|
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
||||||
|
tags uninstall uninstall-am uninstall-dist_docDATA \
|
||||||
|
uninstall-includeHEADERS uninstall-libLTLIBRARIES
|
||||||
|
|
||||||
|
|
||||||
|
libtool: $(LIBTOOL_DEPS)
|
||||||
|
$(SHELL) ./config.status --recheck
|
||||||
|
|
||||||
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
.NOEXPORT:
|
|
@ -0,0 +1,132 @@
|
||||||
|
Snappy, a fast compressor/decompressor.
|
||||||
|
|
||||||
|
|
||||||
|
Introduction
|
||||||
|
============
|
||||||
|
|
||||||
|
Snappy is a compression/decompression library. It does not aim for maximum
|
||||||
|
compression, or compatibility with any other compression library; instead,
|
||||||
|
it aims for very high speeds and reasonable compression. For instance,
|
||||||
|
compared to the fastest mode of zlib, Snappy is an order of magnitude faster
|
||||||
|
for most inputs, but the resulting compressed files are anywhere from 20% to
|
||||||
|
100% bigger. (For more information, see "Performance", below.)
|
||||||
|
|
||||||
|
Snappy has the following properties:
|
||||||
|
|
||||||
|
* Fast: Compression speeds at 250 MB/sec and beyond, with no assembler code.
|
||||||
|
See "Performance" below.
|
||||||
|
* Stable: Over the last few years, Snappy has compressed and decompressed
|
||||||
|
petabytes of data in Google's production environment. The Snappy bitstream
|
||||||
|
format is stable and will not change between versions.
|
||||||
|
* Robust: The Snappy decompressor is designed no to crash in the face of
|
||||||
|
corrupted or malicious input.
|
||||||
|
* Free and open source software: Snappy is licensed under the Apache license,
|
||||||
|
version 2.0. For more information, see the included COPYING file.
|
||||||
|
|
||||||
|
Snappy has previously been called "Zippy" in some Google presentations
|
||||||
|
and the like.
|
||||||
|
|
||||||
|
|
||||||
|
Performance
|
||||||
|
===========
|
||||||
|
|
||||||
|
Snappy is intended to be fast. On a single core of a Core i7 processor
|
||||||
|
in 64-bit mode, it compresses at about 250 MB/sec or more and decompresses at
|
||||||
|
about 500 MB/sec or more. (These numbers are for the slowest inputs in our
|
||||||
|
benchmark suite; others are much faster.) In our tests, Snappy usually
|
||||||
|
is faster than algorithms in the same class (e.g. LZO, LZF, FastLZ, QuickLZ,
|
||||||
|
etc.) while achieving comparable compression ratios.
|
||||||
|
|
||||||
|
Typical compression ratios (based on the benchmark suite) are about 1.5-1.7x
|
||||||
|
for plain text, about 2-4x for HTML, and of course 1.0x for JPEGs, PNGs and
|
||||||
|
other already-compressed data. Similar numbers for zlib in its fastest mode
|
||||||
|
are 2.6-2.8x, 3-7x and 1.0x, respectively. More sophisticated algorithms are
|
||||||
|
capable of achieving yet higher compression rates, although usually at the
|
||||||
|
expense of speed. Of course, compression ratio will vary significantly with
|
||||||
|
the input.
|
||||||
|
|
||||||
|
Although Snappy should be fairly portable, it is primarily optimized
|
||||||
|
for 64-bit x86-compatible processors, and may run slower in other environments.
|
||||||
|
In particular:
|
||||||
|
|
||||||
|
- Snappy uses 64-bit operations in several places to process more data at
|
||||||
|
once than would otherwise be possible.
|
||||||
|
- Snappy assumes unaligned 32- and 64-bit loads and stores are cheap.
|
||||||
|
On some platforms, these must be emulated with single-byte loads
|
||||||
|
and stores, which is much slower.
|
||||||
|
- Snappy assumes little-endian throughout, and needs to byte-swap data in
|
||||||
|
several places if running on a big-endian platform.
|
||||||
|
|
||||||
|
Experience has shown that even heavily tuned code can be improved.
|
||||||
|
Performance optimizations, whether for 64-bit x86 or other platforms,
|
||||||
|
are of course most welcome; see "Contact", below.
|
||||||
|
|
||||||
|
|
||||||
|
Usage
|
||||||
|
=====
|
||||||
|
|
||||||
|
Note that Snappy, both the implementation and the interface,
|
||||||
|
is written in C++.
|
||||||
|
|
||||||
|
To use Snappy from your own program, include the file "snappy.h" from
|
||||||
|
your calling file, and link against the compiled library.
|
||||||
|
|
||||||
|
There are many ways to call Snappy, but the simplest possible is
|
||||||
|
|
||||||
|
snappy::Compress(input, &output);
|
||||||
|
|
||||||
|
and similarly
|
||||||
|
|
||||||
|
snappy::Uncompress(input, &output);
|
||||||
|
|
||||||
|
where "input" and "output" are both instances of std::string.
|
||||||
|
|
||||||
|
There are other interfaces that are more flexible in various ways, including
|
||||||
|
support for custom (non-array) input sources. See the header file for more
|
||||||
|
information.
|
||||||
|
|
||||||
|
|
||||||
|
Tests and benchmarks
|
||||||
|
====================
|
||||||
|
|
||||||
|
When you compile Snappy, snappy_unittest is compiled in addition to the
|
||||||
|
library itself. You do not need it to use the compressor from your own library,
|
||||||
|
but it contains several useful components for Snappy development.
|
||||||
|
|
||||||
|
First of all, it contains unit tests, verifying correctness on your machine in
|
||||||
|
various scenarios. If you want to change or optimize Snappy, please run the
|
||||||
|
tests to verify you have not broken anything. Note that if you have the
|
||||||
|
Google Test library installed, unit test behavior (especially failures) will be
|
||||||
|
significantly more user-friendly. You can find Google Test at
|
||||||
|
|
||||||
|
http://code.google.com/p/googletest/
|
||||||
|
|
||||||
|
You probably also want the gflags library for handling of command-line flags;
|
||||||
|
you can find it at
|
||||||
|
|
||||||
|
http://code.google.com/p/google-gflags/
|
||||||
|
|
||||||
|
In addition to the unit tests, snappy contains microbenchmarks used to
|
||||||
|
tune compression and decompression performance. These are automatically run
|
||||||
|
before the unit tests, but you can disable them using the flag
|
||||||
|
--run_microbenchmarks=false if you have gflags installed (otherwise you will
|
||||||
|
need to edit the source).
|
||||||
|
|
||||||
|
Finally, snappy can benchmark Snappy against a few other compression libraries
|
||||||
|
(zlib, LZO, LZF, FastLZ and QuickLZ), if they were detected at configure time.
|
||||||
|
To benchmark using a given file, give the compression algorithm you want to test
|
||||||
|
Snappy against (e.g. --zlib) and then a list of one or more file names on the
|
||||||
|
command line. The testdata/ directory contains the files used by the
|
||||||
|
microbenchmark, which should provide a reasonably balanced starting point for
|
||||||
|
benchmarking. (Note that baddata[1-3].snappy are not intended as benchmarks; they
|
||||||
|
are used to verify correctness in the presence of corrupted data in the unit
|
||||||
|
test.)
|
||||||
|
|
||||||
|
|
||||||
|
Contact
|
||||||
|
=======
|
||||||
|
|
||||||
|
Snappy is distributed through Google Code. For the latest version, a bug tracker,
|
||||||
|
and other information, see
|
||||||
|
|
||||||
|
http://code.google.com/p/snappy/
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,8 @@
|
||||||
|
#! /bin/sh -e
|
||||||
|
export PATH=/bin:/usr/bin # Local hack.
|
||||||
|
rm -rf autom4te.cache
|
||||||
|
aclocal -I m4
|
||||||
|
autoheader
|
||||||
|
libtoolize --copy
|
||||||
|
automake --add-missing --copy
|
||||||
|
autoconf
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,279 @@
|
||||||
|
# This file was generated by Autom4te Tue Dec 22 07:01:21 UTC 2009.
|
||||||
|
# It contains the lists of macros which have been traced.
|
||||||
|
# It can be safely removed.
|
||||||
|
|
||||||
|
@request = (
|
||||||
|
bless( [
|
||||||
|
'0',
|
||||||
|
1,
|
||||||
|
[
|
||||||
|
'/usr/share/autoconf'
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'/usr/share/autoconf/autoconf/autoconf.m4f',
|
||||||
|
'/usr/share/aclocal/argz.m4',
|
||||||
|
'/usr/share/aclocal/libtool.m4',
|
||||||
|
'/usr/share/aclocal/ltdl.m4',
|
||||||
|
'/usr/share/aclocal/ltoptions.m4',
|
||||||
|
'/usr/share/aclocal/ltsugar.m4',
|
||||||
|
'/usr/share/aclocal/ltversion.m4',
|
||||||
|
'/usr/share/aclocal/lt~obsolete.m4',
|
||||||
|
'/usr/share/aclocal/pkg.m4',
|
||||||
|
'/usr/share/aclocal-1.11/amversion.m4',
|
||||||
|
'/usr/share/aclocal-1.11/auxdir.m4',
|
||||||
|
'/usr/share/aclocal-1.11/cond.m4',
|
||||||
|
'/usr/share/aclocal-1.11/depend.m4',
|
||||||
|
'/usr/share/aclocal-1.11/depout.m4',
|
||||||
|
'/usr/share/aclocal-1.11/init.m4',
|
||||||
|
'/usr/share/aclocal-1.11/install-sh.m4',
|
||||||
|
'/usr/share/aclocal-1.11/lead-dot.m4',
|
||||||
|
'/usr/share/aclocal-1.11/make.m4',
|
||||||
|
'/usr/share/aclocal-1.11/missing.m4',
|
||||||
|
'/usr/share/aclocal-1.11/mkdirp.m4',
|
||||||
|
'/usr/share/aclocal-1.11/options.m4',
|
||||||
|
'/usr/share/aclocal-1.11/runlog.m4',
|
||||||
|
'/usr/share/aclocal-1.11/sanity.m4',
|
||||||
|
'/usr/share/aclocal-1.11/silent.m4',
|
||||||
|
'/usr/share/aclocal-1.11/strip.m4',
|
||||||
|
'/usr/share/aclocal-1.11/substnot.m4',
|
||||||
|
'/usr/share/aclocal-1.11/tar.m4',
|
||||||
|
'm4/gtest.m4',
|
||||||
|
'configure.ac'
|
||||||
|
],
|
||||||
|
{
|
||||||
|
'AM_ENABLE_STATIC' => 1,
|
||||||
|
'AC_LIBTOOL_LANG_RC_CONFIG' => 1,
|
||||||
|
'_LT_AC_SHELL_INIT' => 1,
|
||||||
|
'AC_DEFUN' => 1,
|
||||||
|
'_LT_AC_LANG_CXX_CONFIG' => 1,
|
||||||
|
'AC_PROG_LIBTOOL' => 1,
|
||||||
|
'AM_PROG_MKDIR_P' => 1,
|
||||||
|
'AM_AUTOMAKE_VERSION' => 1,
|
||||||
|
'AM_SUBST_NOTMAKE' => 1,
|
||||||
|
'AM_MISSING_PROG' => 1,
|
||||||
|
'AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH' => 1,
|
||||||
|
'_LT_AC_LANG_C_CONFIG' => 1,
|
||||||
|
'AM_PROG_INSTALL_STRIP' => 1,
|
||||||
|
'_m4_warn' => 1,
|
||||||
|
'AC_LIBTOOL_OBJDIR' => 1,
|
||||||
|
'gl_FUNC_ARGZ' => 1,
|
||||||
|
'LTOBSOLETE_VERSION' => 1,
|
||||||
|
'AM_SANITY_CHECK' => 1,
|
||||||
|
'AC_LIBTOOL_LANG_GCJ_CONFIG' => 1,
|
||||||
|
'AC_LIBTOOL_PROG_COMPILER_PIC' => 1,
|
||||||
|
'LT_LIB_M' => 1,
|
||||||
|
'_LT_AC_CHECK_DLFCN' => 1,
|
||||||
|
'AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE' => 1,
|
||||||
|
'LTSUGAR_VERSION' => 1,
|
||||||
|
'_LT_PROG_LTMAIN' => 1,
|
||||||
|
'LT_SYS_SYMBOL_USCORE' => 1,
|
||||||
|
'_AM_PROG_TAR' => 1,
|
||||||
|
'AC_LIBTOOL_GCJ' => 1,
|
||||||
|
'LT_SYS_DLOPEN_DEPLIBS' => 1,
|
||||||
|
'LT_FUNC_DLSYM_USCORE' => 1,
|
||||||
|
'_LT_AC_LANG_F77' => 1,
|
||||||
|
'AC_LIBTOOL_CONFIG' => 1,
|
||||||
|
'_AM_SUBST_NOTMAKE' => 1,
|
||||||
|
'AC_LTDL_DLLIB' => 1,
|
||||||
|
'_AM_AUTOCONF_VERSION' => 1,
|
||||||
|
'AM_DISABLE_SHARED' => 1,
|
||||||
|
'_LTDL_SETUP' => 1,
|
||||||
|
'_LT_AC_LANG_CXX' => 1,
|
||||||
|
'AM_PROG_LIBTOOL' => 1,
|
||||||
|
'AC_LIB_LTDL' => 1,
|
||||||
|
'_LT_AC_FILE_LTDLL_C' => 1,
|
||||||
|
'AM_PROG_LD' => 1,
|
||||||
|
'AU_DEFUN' => 1,
|
||||||
|
'AC_PROG_NM' => 1,
|
||||||
|
'AC_LIBTOOL_DLOPEN' => 1,
|
||||||
|
'AC_PROG_LD' => 1,
|
||||||
|
'AC_PROG_LD_GNU' => 1,
|
||||||
|
'AC_ENABLE_FAST_INSTALL' => 1,
|
||||||
|
'AC_LIBTOOL_FC' => 1,
|
||||||
|
'LTDL_CONVENIENCE' => 1,
|
||||||
|
'_AM_SET_OPTION' => 1,
|
||||||
|
'AC_LTDL_PREOPEN' => 1,
|
||||||
|
'_LT_LINKER_BOILERPLATE' => 1,
|
||||||
|
'AC_LIBTOOL_LANG_CXX_CONFIG' => 1,
|
||||||
|
'AC_LIBTOOL_PROG_CC_C_O' => 1,
|
||||||
|
'gl_PREREQ_ARGZ' => 1,
|
||||||
|
'LT_SUPPORTED_TAG' => 1,
|
||||||
|
'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1,
|
||||||
|
'LT_PROG_RC' => 1,
|
||||||
|
'LT_SYS_MODULE_EXT' => 1,
|
||||||
|
'AC_DEFUN_ONCE' => 1,
|
||||||
|
'_LT_AC_LANG_GCJ' => 1,
|
||||||
|
'AC_LTDL_OBJDIR' => 1,
|
||||||
|
'_LT_PATH_TOOL_PREFIX' => 1,
|
||||||
|
'AC_LIBTOOL_RC' => 1,
|
||||||
|
'AM_SILENT_RULES' => 1,
|
||||||
|
'AC_DISABLE_FAST_INSTALL' => 1,
|
||||||
|
'_LT_AC_PROG_ECHO_BACKSLASH' => 1,
|
||||||
|
'_LT_AC_SYS_LIBPATH_AIX' => 1,
|
||||||
|
'_LT_AC_TRY_DLOPEN_SELF' => 1,
|
||||||
|
'include' => 1,
|
||||||
|
'LT_AC_PROG_SED' => 1,
|
||||||
|
'AM_ENABLE_SHARED' => 1,
|
||||||
|
'LTDL_INSTALLABLE' => 1,
|
||||||
|
'_LT_AC_LANG_GCJ_CONFIG' => 1,
|
||||||
|
'AC_ENABLE_SHARED' => 1,
|
||||||
|
'AC_ENABLE_STATIC' => 1,
|
||||||
|
'AC_LIBTOOL_SYS_HARD_LINK_LOCKS' => 1,
|
||||||
|
'_LT_AC_TAGVAR' => 1,
|
||||||
|
'AC_LIBTOOL_LANG_F77_CONFIG' => 1,
|
||||||
|
'AM_CONDITIONAL' => 1,
|
||||||
|
'LT_LIB_DLLOAD' => 1,
|
||||||
|
'LTDL_INIT' => 1,
|
||||||
|
'LTVERSION_VERSION' => 1,
|
||||||
|
'AM_PROG_INSTALL_SH' => 1,
|
||||||
|
'm4_include' => 1,
|
||||||
|
'AC_PROG_EGREP' => 1,
|
||||||
|
'GTEST_LIB_CHECK' => 1,
|
||||||
|
'_AC_AM_CONFIG_HEADER_HOOK' => 1,
|
||||||
|
'AC_PATH_MAGIC' => 1,
|
||||||
|
'AC_LTDL_SYSSEARCHPATH' => 1,
|
||||||
|
'AM_MAKE_INCLUDE' => 1,
|
||||||
|
'LT_CMD_MAX_LEN' => 1,
|
||||||
|
'_LT_AC_TAGCONFIG' => 1,
|
||||||
|
'm4_pattern_forbid' => 1,
|
||||||
|
'_LT_LINKER_OPTION' => 1,
|
||||||
|
'AC_LIBTOOL_COMPILER_OPTION' => 1,
|
||||||
|
'AC_DISABLE_SHARED' => 1,
|
||||||
|
'_LT_COMPILER_BOILERPLATE' => 1,
|
||||||
|
'AC_LIBTOOL_WIN32_DLL' => 1,
|
||||||
|
'AC_LIBTOOL_SETUP' => 1,
|
||||||
|
'AC_PROG_LD_RELOAD_FLAG' => 1,
|
||||||
|
'AC_LTDL_DLSYM_USCORE' => 1,
|
||||||
|
'AM_MISSING_HAS_RUN' => 1,
|
||||||
|
'LT_LANG' => 1,
|
||||||
|
'LT_SYS_DLSEARCH_PATH' => 1,
|
||||||
|
'LT_CONFIG_LTDL_DIR' => 1,
|
||||||
|
'AC_LIBTOOL_DLOPEN_SELF' => 1,
|
||||||
|
'LT_OUTPUT' => 1,
|
||||||
|
'AC_LIBTOOL_PROG_LD_SHLIBS' => 1,
|
||||||
|
'_PKG_SHORT_ERRORS_SUPPORTED' => 1,
|
||||||
|
'AC_WITH_LTDL' => 1,
|
||||||
|
'AC_LIBTOOL_LINKER_OPTION' => 1,
|
||||||
|
'PKG_CHECK_EXISTS' => 1,
|
||||||
|
'LT_AC_PROG_RC' => 1,
|
||||||
|
'AC_LIBTOOL_CXX' => 1,
|
||||||
|
'LT_INIT' => 1,
|
||||||
|
'LT_AC_PROG_GCJ' => 1,
|
||||||
|
'LT_SYS_DLOPEN_SELF' => 1,
|
||||||
|
'AM_DEP_TRACK' => 1,
|
||||||
|
'AM_DISABLE_STATIC' => 1,
|
||||||
|
'_AC_PROG_LIBTOOL' => 1,
|
||||||
|
'_AM_IF_OPTION' => 1,
|
||||||
|
'AC_PATH_TOOL_PREFIX' => 1,
|
||||||
|
'm4_pattern_allow' => 1,
|
||||||
|
'AC_LIBTOOL_F77' => 1,
|
||||||
|
'AM_SET_LEADING_DOT' => 1,
|
||||||
|
'LT_AC_PROG_EGREP' => 1,
|
||||||
|
'_AM_DEPENDENCIES' => 1,
|
||||||
|
'AC_LIBTOOL_LANG_C_CONFIG' => 1,
|
||||||
|
'LTOPTIONS_VERSION' => 1,
|
||||||
|
'_LT_AC_SYS_COMPILER' => 1,
|
||||||
|
'AM_PROG_NM' => 1,
|
||||||
|
'PKG_CHECK_MODULES' => 1,
|
||||||
|
'AC_LIBLTDL_CONVENIENCE' => 1,
|
||||||
|
'AC_DEPLIBS_CHECK_METHOD' => 1,
|
||||||
|
'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1,
|
||||||
|
'AC_LIBLTDL_INSTALLABLE' => 1,
|
||||||
|
'AC_LTDL_ENABLE_INSTALL' => 1,
|
||||||
|
'AC_LIBTOOL_SYS_DYNAMIC_LINKER' => 1,
|
||||||
|
'LT_PROG_GCJ' => 1,
|
||||||
|
'AM_INIT_AUTOMAKE' => 1,
|
||||||
|
'AC_DISABLE_STATIC' => 1,
|
||||||
|
'LT_PATH_NM' => 1,
|
||||||
|
'AC_LTDL_SHLIBEXT' => 1,
|
||||||
|
'_LT_AC_LOCK' => 1,
|
||||||
|
'_LT_AC_LANG_RC_CONFIG' => 1,
|
||||||
|
'LT_SYS_MODULE_PATH' => 1,
|
||||||
|
'AC_LIBTOOL_POSTDEP_PREDEP' => 1,
|
||||||
|
'LT_WITH_LTDL' => 1,
|
||||||
|
'AC_LTDL_SHLIBPATH' => 1,
|
||||||
|
'AM_AUX_DIR_EXPAND' => 1,
|
||||||
|
'_LT_AC_LANG_F77_CONFIG' => 1,
|
||||||
|
'AC_LIBTOOL_PROG_COMPILER_NO_RTTI' => 1,
|
||||||
|
'_AM_SET_OPTIONS' => 1,
|
||||||
|
'_LT_COMPILER_OPTION' => 1,
|
||||||
|
'_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1,
|
||||||
|
'AM_RUN_LOG' => 1,
|
||||||
|
'AC_LIBTOOL_PICMODE' => 1,
|
||||||
|
'AC_LIBTOOL_SYS_OLD_ARCHIVE' => 1,
|
||||||
|
'AC_LTDL_SYS_DLOPEN_DEPLIBS' => 1,
|
||||||
|
'LT_PATH_LD' => 1,
|
||||||
|
'AC_CHECK_LIBM' => 1,
|
||||||
|
'AC_LIBTOOL_SYS_LIB_STRIP' => 1,
|
||||||
|
'_AM_MANGLE_OPTION' => 1,
|
||||||
|
'AC_LTDL_SYMBOL_USCORE' => 1,
|
||||||
|
'AC_LIBTOOL_SYS_MAX_CMD_LEN' => 1,
|
||||||
|
'AM_SET_DEPDIR' => 1,
|
||||||
|
'_LT_CC_BASENAME' => 1,
|
||||||
|
'PKG_PROG_PKG_CONFIG' => 1,
|
||||||
|
'_LT_LIBOBJ' => 1
|
||||||
|
}
|
||||||
|
], 'Autom4te::Request' ),
|
||||||
|
bless( [
|
||||||
|
'1',
|
||||||
|
1,
|
||||||
|
[
|
||||||
|
'/usr/share/autoconf'
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'/usr/share/autoconf/autoconf/autoconf.m4f',
|
||||||
|
'aclocal.m4',
|
||||||
|
'configure.ac'
|
||||||
|
],
|
||||||
|
{
|
||||||
|
'_LT_AC_TAGCONFIG' => 1,
|
||||||
|
'AM_PROG_F77_C_O' => 1,
|
||||||
|
'AC_INIT' => 1,
|
||||||
|
'm4_pattern_forbid' => 1,
|
||||||
|
'_AM_COND_IF' => 1,
|
||||||
|
'AC_CANONICAL_TARGET' => 1,
|
||||||
|
'AC_SUBST' => 1,
|
||||||
|
'AC_CONFIG_LIBOBJ_DIR' => 1,
|
||||||
|
'AC_FC_SRCEXT' => 1,
|
||||||
|
'AC_CANONICAL_HOST' => 1,
|
||||||
|
'AC_PROG_LIBTOOL' => 1,
|
||||||
|
'AM_INIT_AUTOMAKE' => 1,
|
||||||
|
'AC_CONFIG_SUBDIRS' => 1,
|
||||||
|
'AM_AUTOMAKE_VERSION' => 1,
|
||||||
|
'LT_CONFIG_LTDL_DIR' => 1,
|
||||||
|
'AC_REQUIRE_AUX_FILE' => 1,
|
||||||
|
'AC_CONFIG_LINKS' => 1,
|
||||||
|
'm4_sinclude' => 1,
|
||||||
|
'LT_SUPPORTED_TAG' => 1,
|
||||||
|
'AM_MAINTAINER_MODE' => 1,
|
||||||
|
'AM_GNU_GETTEXT_INTL_SUBDIR' => 1,
|
||||||
|
'_m4_warn' => 1,
|
||||||
|
'AM_PROG_CXX_C_O' => 1,
|
||||||
|
'_AM_COND_ENDIF' => 1,
|
||||||
|
'AM_ENABLE_MULTILIB' => 1,
|
||||||
|
'AM_SILENT_RULES' => 1,
|
||||||
|
'AC_CONFIG_FILES' => 1,
|
||||||
|
'include' => 1,
|
||||||
|
'LT_INIT' => 1,
|
||||||
|
'AM_GNU_GETTEXT' => 1,
|
||||||
|
'AC_LIBSOURCE' => 1,
|
||||||
|
'AM_PROG_FC_C_O' => 1,
|
||||||
|
'AC_CANONICAL_BUILD' => 1,
|
||||||
|
'AC_FC_FREEFORM' => 1,
|
||||||
|
'AH_OUTPUT' => 1,
|
||||||
|
'_AM_SUBST_NOTMAKE' => 1,
|
||||||
|
'AC_CONFIG_AUX_DIR' => 1,
|
||||||
|
'sinclude' => 1,
|
||||||
|
'AM_PROG_CC_C_O' => 1,
|
||||||
|
'm4_pattern_allow' => 1,
|
||||||
|
'AC_CANONICAL_SYSTEM' => 1,
|
||||||
|
'AM_CONDITIONAL' => 1,
|
||||||
|
'AC_CONFIG_HEADERS' => 1,
|
||||||
|
'AC_DEFINE_TRACE_LITERAL' => 1,
|
||||||
|
'm4_include' => 1,
|
||||||
|
'_AM_COND_ELSE' => 1,
|
||||||
|
'AC_SUBST_TRACE' => 1
|
||||||
|
}
|
||||||
|
], 'Autom4te::Request' )
|
||||||
|
);
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,694 @@
|
||||||
|
m4trace:aclocal.m4:9076: -1- m4_include([m4/gtest.m4])
|
||||||
|
m4trace:configure.ac:10: -1- AC_INIT([snappy], [snappy_major.snappy_minor.snappy_patchlevel])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_forbid([^_?A[CHUM]_])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_forbid([_AC_])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^AS_FLAGS$])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_forbid([^_?m4_])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_forbid([^dnl$])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_forbid([^_?AS_])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([SHELL])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([SHELL])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^SHELL$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([PATH_SEPARATOR])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([PATH_SEPARATOR])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^PATH_SEPARATOR$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([PACKAGE_NAME])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^PACKAGE_NAME$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([PACKAGE_TARNAME])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^PACKAGE_TARNAME$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([PACKAGE_VERSION])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^PACKAGE_VERSION$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([PACKAGE_STRING])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^PACKAGE_STRING$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([PACKAGE_BUGREPORT])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([PACKAGE_URL], [m4_ifdef([AC_PACKAGE_URL], ['AC_PACKAGE_URL'])])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([PACKAGE_URL])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^PACKAGE_URL$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([exec_prefix], [NONE])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([exec_prefix])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^exec_prefix$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([prefix], [NONE])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([prefix])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^prefix$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([program_transform_name], [s,x,x,])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([program_transform_name])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^program_transform_name$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([bindir], ['${exec_prefix}/bin'])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([bindir])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^bindir$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin'])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([sbindir])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^sbindir$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec'])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([libexecdir])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^libexecdir$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([datarootdir], ['${prefix}/share'])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([datarootdir])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^datarootdir$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([datadir], ['${datarootdir}'])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([datadir])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^datadir$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([sysconfdir], ['${prefix}/etc'])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([sysconfdir])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^sysconfdir$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([sharedstatedir], ['${prefix}/com'])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([sharedstatedir])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^sharedstatedir$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([localstatedir], ['${prefix}/var'])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([localstatedir])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^localstatedir$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([includedir], ['${prefix}/include'])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([includedir])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^includedir$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([oldincludedir], ['/usr/include'])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([oldincludedir])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^oldincludedir$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([docdir], [m4_ifset([AC_PACKAGE_TARNAME],
|
||||||
|
['${datarootdir}/doc/${PACKAGE_TARNAME}'],
|
||||||
|
['${datarootdir}/doc/${PACKAGE}'])])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([docdir])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^docdir$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([infodir], ['${datarootdir}/info'])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([infodir])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^infodir$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([htmldir], ['${docdir}'])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([htmldir])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^htmldir$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([dvidir], ['${docdir}'])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([dvidir])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^dvidir$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([pdfdir], ['${docdir}'])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([pdfdir])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^pdfdir$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([psdir], ['${docdir}'])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([psdir])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^psdir$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([libdir], ['${exec_prefix}/lib'])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([libdir])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^libdir$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([localedir], ['${datarootdir}/locale'])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([localedir])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^localedir$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([mandir], ['${datarootdir}/man'])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([mandir])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^mandir$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^PACKAGE_NAME$])
|
||||||
|
m4trace:configure.ac:10: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */
|
||||||
|
@%:@undef PACKAGE_NAME])
|
||||||
|
m4trace:configure.ac:10: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^PACKAGE_TARNAME$])
|
||||||
|
m4trace:configure.ac:10: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */
|
||||||
|
@%:@undef PACKAGE_TARNAME])
|
||||||
|
m4trace:configure.ac:10: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^PACKAGE_VERSION$])
|
||||||
|
m4trace:configure.ac:10: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */
|
||||||
|
@%:@undef PACKAGE_VERSION])
|
||||||
|
m4trace:configure.ac:10: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^PACKAGE_STRING$])
|
||||||
|
m4trace:configure.ac:10: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */
|
||||||
|
@%:@undef PACKAGE_STRING])
|
||||||
|
m4trace:configure.ac:10: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$])
|
||||||
|
m4trace:configure.ac:10: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */
|
||||||
|
@%:@undef PACKAGE_BUGREPORT])
|
||||||
|
m4trace:configure.ac:10: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_URL])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^PACKAGE_URL$])
|
||||||
|
m4trace:configure.ac:10: -1- AH_OUTPUT([PACKAGE_URL], [/* Define to the home page for this package. */
|
||||||
|
@%:@undef PACKAGE_URL])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([DEFS])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([DEFS])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^DEFS$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([ECHO_C])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([ECHO_C])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^ECHO_C$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([ECHO_N])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([ECHO_N])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^ECHO_N$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([ECHO_T])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([ECHO_T])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^ECHO_T$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([LIBS])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([LIBS])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^LIBS$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([build_alias])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([build_alias])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^build_alias$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([host_alias])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([host_alias])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^host_alias$])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST([target_alias])
|
||||||
|
m4trace:configure.ac:10: -1- AC_SUBST_TRACE([target_alias])
|
||||||
|
m4trace:configure.ac:10: -1- m4_pattern_allow([^target_alias$])
|
||||||
|
m4trace:configure.ac:12: -1- AM_INIT_AUTOMAKE
|
||||||
|
m4trace:configure.ac:12: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$])
|
||||||
|
m4trace:configure.ac:12: -1- AM_AUTOMAKE_VERSION([1.11.1])
|
||||||
|
m4trace:configure.ac:12: -1- AC_REQUIRE_AUX_FILE([install-sh])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST([INSTALL_PROGRAM])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST_TRACE([INSTALL_PROGRAM])
|
||||||
|
m4trace:configure.ac:12: -1- m4_pattern_allow([^INSTALL_PROGRAM$])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST([INSTALL_SCRIPT])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST_TRACE([INSTALL_SCRIPT])
|
||||||
|
m4trace:configure.ac:12: -1- m4_pattern_allow([^INSTALL_SCRIPT$])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST([INSTALL_DATA])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST_TRACE([INSTALL_DATA])
|
||||||
|
m4trace:configure.ac:12: -1- m4_pattern_allow([^INSTALL_DATA$])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST([am__isrc], [' -I$(srcdir)'])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST_TRACE([am__isrc])
|
||||||
|
m4trace:configure.ac:12: -1- m4_pattern_allow([^am__isrc$])
|
||||||
|
m4trace:configure.ac:12: -1- _AM_SUBST_NOTMAKE([am__isrc])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST([CYGPATH_W])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST_TRACE([CYGPATH_W])
|
||||||
|
m4trace:configure.ac:12: -1- m4_pattern_allow([^CYGPATH_W$])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST_TRACE([PACKAGE])
|
||||||
|
m4trace:configure.ac:12: -1- m4_pattern_allow([^PACKAGE$])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST_TRACE([VERSION])
|
||||||
|
m4trace:configure.ac:12: -1- m4_pattern_allow([^VERSION$])
|
||||||
|
m4trace:configure.ac:12: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE])
|
||||||
|
m4trace:configure.ac:12: -1- m4_pattern_allow([^PACKAGE$])
|
||||||
|
m4trace:configure.ac:12: -1- AH_OUTPUT([PACKAGE], [/* Name of package */
|
||||||
|
@%:@undef PACKAGE])
|
||||||
|
m4trace:configure.ac:12: -1- AC_DEFINE_TRACE_LITERAL([VERSION])
|
||||||
|
m4trace:configure.ac:12: -1- m4_pattern_allow([^VERSION$])
|
||||||
|
m4trace:configure.ac:12: -1- AH_OUTPUT([VERSION], [/* Version number of package */
|
||||||
|
@%:@undef VERSION])
|
||||||
|
m4trace:configure.ac:12: -1- AC_REQUIRE_AUX_FILE([missing])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST([ACLOCAL])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST_TRACE([ACLOCAL])
|
||||||
|
m4trace:configure.ac:12: -1- m4_pattern_allow([^ACLOCAL$])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST([AUTOCONF])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST_TRACE([AUTOCONF])
|
||||||
|
m4trace:configure.ac:12: -1- m4_pattern_allow([^AUTOCONF$])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST([AUTOMAKE])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST_TRACE([AUTOMAKE])
|
||||||
|
m4trace:configure.ac:12: -1- m4_pattern_allow([^AUTOMAKE$])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST([AUTOHEADER])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST_TRACE([AUTOHEADER])
|
||||||
|
m4trace:configure.ac:12: -1- m4_pattern_allow([^AUTOHEADER$])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST([MAKEINFO])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST_TRACE([MAKEINFO])
|
||||||
|
m4trace:configure.ac:12: -1- m4_pattern_allow([^MAKEINFO$])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST([install_sh])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST_TRACE([install_sh])
|
||||||
|
m4trace:configure.ac:12: -1- m4_pattern_allow([^install_sh$])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST([STRIP])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST_TRACE([STRIP])
|
||||||
|
m4trace:configure.ac:12: -1- m4_pattern_allow([^STRIP$])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST([INSTALL_STRIP_PROGRAM])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST_TRACE([INSTALL_STRIP_PROGRAM])
|
||||||
|
m4trace:configure.ac:12: -1- m4_pattern_allow([^INSTALL_STRIP_PROGRAM$])
|
||||||
|
m4trace:configure.ac:12: -1- AC_REQUIRE_AUX_FILE([install-sh])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST([MKDIR_P])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST_TRACE([MKDIR_P])
|
||||||
|
m4trace:configure.ac:12: -1- m4_pattern_allow([^MKDIR_P$])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST([mkdir_p], ["$MKDIR_P"])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST_TRACE([mkdir_p])
|
||||||
|
m4trace:configure.ac:12: -1- m4_pattern_allow([^mkdir_p$])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST([AWK])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST_TRACE([AWK])
|
||||||
|
m4trace:configure.ac:12: -1- m4_pattern_allow([^AWK$])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST([SET_MAKE])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST_TRACE([SET_MAKE])
|
||||||
|
m4trace:configure.ac:12: -1- m4_pattern_allow([^SET_MAKE$])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST([am__leading_dot])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST_TRACE([am__leading_dot])
|
||||||
|
m4trace:configure.ac:12: -1- m4_pattern_allow([^am__leading_dot$])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST([AMTAR])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST_TRACE([AMTAR])
|
||||||
|
m4trace:configure.ac:12: -1- m4_pattern_allow([^AMTAR$])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST([am__tar])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST_TRACE([am__tar])
|
||||||
|
m4trace:configure.ac:12: -1- m4_pattern_allow([^am__tar$])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST([am__untar])
|
||||||
|
m4trace:configure.ac:12: -1- AC_SUBST_TRACE([am__untar])
|
||||||
|
m4trace:configure.ac:12: -1- m4_pattern_allow([^am__untar$])
|
||||||
|
m4trace:configure.ac:13: -1- LT_INIT
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_forbid([^_?LT_[A-Z_]+$])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_REQUIRE_AUX_FILE([ltmain.sh])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([LIBTOOL])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([LIBTOOL])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^LIBTOOL$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_CANONICAL_HOST
|
||||||
|
m4trace:configure.ac:13: -1- AC_CANONICAL_BUILD
|
||||||
|
m4trace:configure.ac:13: -1- AC_REQUIRE_AUX_FILE([config.sub])
|
||||||
|
m4trace:configure.ac:13: -1- AC_REQUIRE_AUX_FILE([config.guess])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([build], [$ac_cv_build])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([build])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^build$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([build_cpu], [$[1]])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([build_cpu])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^build_cpu$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([build_vendor], [$[2]])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([build_vendor])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^build_vendor$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([build_os])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([build_os])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^build_os$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([host], [$ac_cv_host])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([host])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^host$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([host_cpu], [$[1]])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([host_cpu])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^host_cpu$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([host_vendor], [$[2]])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([host_vendor])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^host_vendor$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([host_os])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([host_os])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^host_os$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([CC])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([CC])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^CC$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([CFLAGS])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([CFLAGS])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^CFLAGS$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([LDFLAGS])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([LDFLAGS])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^LDFLAGS$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([LIBS])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([LIBS])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^LIBS$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([CPPFLAGS])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([CPPFLAGS])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^CPPFLAGS$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([CC])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([CC])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^CC$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([CC])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([CC])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^CC$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([CC])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([CC])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^CC$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([CC])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([CC])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^CC$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([ac_ct_CC])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([ac_ct_CC])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^ac_ct_CC$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([EXEEXT])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^EXEEXT$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([OBJEXT], [$ac_cv_objext])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([OBJEXT])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^OBJEXT$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([DEPDIR])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^DEPDIR$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([am__include])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([am__include])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^am__include$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([am__quote])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([am__quote])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^am__quote$])
|
||||||
|
m4trace:configure.ac:13: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([AMDEP_TRUE])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([AMDEP_TRUE])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^AMDEP_TRUE$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([AMDEP_FALSE])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([AMDEP_FALSE])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^AMDEP_FALSE$])
|
||||||
|
m4trace:configure.ac:13: -1- _AM_SUBST_NOTMAKE([AMDEP_TRUE])
|
||||||
|
m4trace:configure.ac:13: -1- _AM_SUBST_NOTMAKE([AMDEP_FALSE])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([AMDEPBACKSLASH])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([AMDEPBACKSLASH])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^AMDEPBACKSLASH$])
|
||||||
|
m4trace:configure.ac:13: -1- _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([CCDEPMODE], [depmode=$am_cv_CC_dependencies_compiler_type])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([CCDEPMODE])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^CCDEPMODE$])
|
||||||
|
m4trace:configure.ac:13: -1- AM_CONDITIONAL([am__fastdepCC], [
|
||||||
|
test "x$enable_dependency_tracking" != xno \
|
||||||
|
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([am__fastdepCC_TRUE])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([am__fastdepCC_TRUE])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^am__fastdepCC_TRUE$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([am__fastdepCC_FALSE])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([am__fastdepCC_FALSE])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^am__fastdepCC_FALSE$])
|
||||||
|
m4trace:configure.ac:13: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_TRUE])
|
||||||
|
m4trace:configure.ac:13: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_FALSE])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([SED])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([SED])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^SED$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([GREP])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([GREP])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^GREP$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([EGREP])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([EGREP])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^EGREP$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([FGREP])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([FGREP])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^FGREP$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([GREP])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([GREP])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^GREP$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([LD])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([LD])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^LD$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([DUMPBIN])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([DUMPBIN])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^DUMPBIN$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([ac_ct_DUMPBIN])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([ac_ct_DUMPBIN])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^ac_ct_DUMPBIN$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([DUMPBIN])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([DUMPBIN])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^DUMPBIN$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([NM])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([NM])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^NM$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([LN_S], [$as_ln_s])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([LN_S])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^LN_S$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([OBJDUMP])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([OBJDUMP])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^OBJDUMP$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([OBJDUMP])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([OBJDUMP])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^OBJDUMP$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([AR])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([AR])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^AR$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([STRIP])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([STRIP])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^STRIP$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([RANLIB])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([RANLIB])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^RANLIB$])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([LT_OBJDIR])
|
||||||
|
m4trace:configure.ac:13: -1- AC_DEFINE_TRACE_LITERAL([LT_OBJDIR])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^LT_OBJDIR$])
|
||||||
|
m4trace:configure.ac:13: -1- AH_OUTPUT([LT_OBJDIR], [/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
||||||
|
*/
|
||||||
|
@%:@undef LT_OBJDIR])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([lt_ECHO])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([lt_ECHO])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^lt_ECHO$])
|
||||||
|
m4trace:configure.ac:13: -1- LT_SUPPORTED_TAG([CC])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([DSYMUTIL])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([DSYMUTIL])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^DSYMUTIL$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([NMEDIT])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([NMEDIT])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^NMEDIT$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([LIPO])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([LIPO])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^LIPO$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([OTOOL])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([OTOOL])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^OTOOL$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([OTOOL64])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([OTOOL64])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^OTOOL64$])
|
||||||
|
m4trace:configure.ac:13: -1- AH_OUTPUT([HAVE_DLFCN_H], [/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||||
|
@%:@undef HAVE_DLFCN_H])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([CPP])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([CPP])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^CPP$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([CPPFLAGS])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([CPPFLAGS])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^CPPFLAGS$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST([CPP])
|
||||||
|
m4trace:configure.ac:13: -1- AC_SUBST_TRACE([CPP])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^CPP$])
|
||||||
|
m4trace:configure.ac:13: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^STDC_HEADERS$])
|
||||||
|
m4trace:configure.ac:13: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */
|
||||||
|
@%:@undef STDC_HEADERS])
|
||||||
|
m4trace:configure.ac:13: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the <sys/types.h> header file. */
|
||||||
|
@%:@undef HAVE_SYS_TYPES_H])
|
||||||
|
m4trace:configure.ac:13: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||||
|
@%:@undef HAVE_SYS_STAT_H])
|
||||||
|
m4trace:configure.ac:13: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the <stdlib.h> header file. */
|
||||||
|
@%:@undef HAVE_STDLIB_H])
|
||||||
|
m4trace:configure.ac:13: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the <string.h> header file. */
|
||||||
|
@%:@undef HAVE_STRING_H])
|
||||||
|
m4trace:configure.ac:13: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the <memory.h> header file. */
|
||||||
|
@%:@undef HAVE_MEMORY_H])
|
||||||
|
m4trace:configure.ac:13: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the <strings.h> header file. */
|
||||||
|
@%:@undef HAVE_STRINGS_H])
|
||||||
|
m4trace:configure.ac:13: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the <inttypes.h> header file. */
|
||||||
|
@%:@undef HAVE_INTTYPES_H])
|
||||||
|
m4trace:configure.ac:13: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the <stdint.h> header file. */
|
||||||
|
@%:@undef HAVE_STDINT_H])
|
||||||
|
m4trace:configure.ac:13: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the <unistd.h> header file. */
|
||||||
|
@%:@undef HAVE_UNISTD_H])
|
||||||
|
m4trace:configure.ac:13: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DLFCN_H])
|
||||||
|
m4trace:configure.ac:13: -1- m4_pattern_allow([^HAVE_DLFCN_H$])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST([CXX])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST_TRACE([CXX])
|
||||||
|
m4trace:configure.ac:14: -1- m4_pattern_allow([^CXX$])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST([CXXFLAGS])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST_TRACE([CXXFLAGS])
|
||||||
|
m4trace:configure.ac:14: -1- m4_pattern_allow([^CXXFLAGS$])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST([LDFLAGS])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST_TRACE([LDFLAGS])
|
||||||
|
m4trace:configure.ac:14: -1- m4_pattern_allow([^LDFLAGS$])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST([LIBS])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST_TRACE([LIBS])
|
||||||
|
m4trace:configure.ac:14: -1- m4_pattern_allow([^LIBS$])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST([CPPFLAGS])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST_TRACE([CPPFLAGS])
|
||||||
|
m4trace:configure.ac:14: -1- m4_pattern_allow([^CPPFLAGS$])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST([CXX])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST_TRACE([CXX])
|
||||||
|
m4trace:configure.ac:14: -1- m4_pattern_allow([^CXX$])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST([ac_ct_CXX])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST_TRACE([ac_ct_CXX])
|
||||||
|
m4trace:configure.ac:14: -1- m4_pattern_allow([^ac_ct_CXX$])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST([CXXDEPMODE], [depmode=$am_cv_CXX_dependencies_compiler_type])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST_TRACE([CXXDEPMODE])
|
||||||
|
m4trace:configure.ac:14: -1- m4_pattern_allow([^CXXDEPMODE$])
|
||||||
|
m4trace:configure.ac:14: -1- AM_CONDITIONAL([am__fastdepCXX], [
|
||||||
|
test "x$enable_dependency_tracking" != xno \
|
||||||
|
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST([am__fastdepCXX_TRUE])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST_TRACE([am__fastdepCXX_TRUE])
|
||||||
|
m4trace:configure.ac:14: -1- m4_pattern_allow([^am__fastdepCXX_TRUE$])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST([am__fastdepCXX_FALSE])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST_TRACE([am__fastdepCXX_FALSE])
|
||||||
|
m4trace:configure.ac:14: -1- m4_pattern_allow([^am__fastdepCXX_FALSE$])
|
||||||
|
m4trace:configure.ac:14: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_TRUE])
|
||||||
|
m4trace:configure.ac:14: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_FALSE])
|
||||||
|
m4trace:configure.ac:14: -1- LT_SUPPORTED_TAG([CXX])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST([CXX])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST_TRACE([CXX])
|
||||||
|
m4trace:configure.ac:14: -1- m4_pattern_allow([^CXX$])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST([CXXFLAGS])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST_TRACE([CXXFLAGS])
|
||||||
|
m4trace:configure.ac:14: -1- m4_pattern_allow([^CXXFLAGS$])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST([LDFLAGS])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST_TRACE([LDFLAGS])
|
||||||
|
m4trace:configure.ac:14: -1- m4_pattern_allow([^LDFLAGS$])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST([LIBS])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST_TRACE([LIBS])
|
||||||
|
m4trace:configure.ac:14: -1- m4_pattern_allow([^LIBS$])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST([CPPFLAGS])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST_TRACE([CPPFLAGS])
|
||||||
|
m4trace:configure.ac:14: -1- m4_pattern_allow([^CPPFLAGS$])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST([CXX])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST_TRACE([CXX])
|
||||||
|
m4trace:configure.ac:14: -1- m4_pattern_allow([^CXX$])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST([ac_ct_CXX])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST_TRACE([ac_ct_CXX])
|
||||||
|
m4trace:configure.ac:14: -1- m4_pattern_allow([^ac_ct_CXX$])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST([CXXDEPMODE], [depmode=$am_cv_CXX_dependencies_compiler_type])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST_TRACE([CXXDEPMODE])
|
||||||
|
m4trace:configure.ac:14: -1- m4_pattern_allow([^CXXDEPMODE$])
|
||||||
|
m4trace:configure.ac:14: -1- AM_CONDITIONAL([am__fastdepCXX], [
|
||||||
|
test "x$enable_dependency_tracking" != xno \
|
||||||
|
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST([am__fastdepCXX_TRUE])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST_TRACE([am__fastdepCXX_TRUE])
|
||||||
|
m4trace:configure.ac:14: -1- m4_pattern_allow([^am__fastdepCXX_TRUE$])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST([am__fastdepCXX_FALSE])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST_TRACE([am__fastdepCXX_FALSE])
|
||||||
|
m4trace:configure.ac:14: -1- m4_pattern_allow([^am__fastdepCXX_FALSE$])
|
||||||
|
m4trace:configure.ac:14: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_TRUE])
|
||||||
|
m4trace:configure.ac:14: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_FALSE])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST([CXXCPP])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST_TRACE([CXXCPP])
|
||||||
|
m4trace:configure.ac:14: -1- m4_pattern_allow([^CXXCPP$])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST([CPPFLAGS])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST_TRACE([CPPFLAGS])
|
||||||
|
m4trace:configure.ac:14: -1- m4_pattern_allow([^CPPFLAGS$])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST([CXXCPP])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST_TRACE([CXXCPP])
|
||||||
|
m4trace:configure.ac:14: -1- m4_pattern_allow([^CXXCPP$])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST([LD])
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST_TRACE([LD])
|
||||||
|
m4trace:configure.ac:14: -1- m4_pattern_allow([^LD$])
|
||||||
|
m4trace:configure.ac:16: -1- AH_OUTPUT([WORDS_BIGENDIAN], [/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
||||||
|
significant byte first (like Motorola and SPARC, unlike Intel). */
|
||||||
|
#if defined AC_APPLE_UNIVERSAL_BUILD
|
||||||
|
# if defined __BIG_ENDIAN__
|
||||||
|
# define WORDS_BIGENDIAN 1
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
|
# ifndef WORDS_BIGENDIAN
|
||||||
|
# undef WORDS_BIGENDIAN
|
||||||
|
# endif
|
||||||
|
#endif])
|
||||||
|
m4trace:configure.ac:16: -1- AC_DEFINE_TRACE_LITERAL([WORDS_BIGENDIAN])
|
||||||
|
m4trace:configure.ac:16: -1- m4_pattern_allow([^WORDS_BIGENDIAN$])
|
||||||
|
m4trace:configure.ac:16: -1- AC_DEFINE_TRACE_LITERAL([AC_APPLE_UNIVERSAL_BUILD])
|
||||||
|
m4trace:configure.ac:16: -1- m4_pattern_allow([^AC_APPLE_UNIVERSAL_BUILD$])
|
||||||
|
m4trace:configure.ac:16: -1- AH_OUTPUT([AC_APPLE_UNIVERSAL_BUILD], [/* Define if building universal (internal helper macro) */
|
||||||
|
@%:@undef AC_APPLE_UNIVERSAL_BUILD])
|
||||||
|
m4trace:configure.ac:17: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the <stdint.h> header file. */
|
||||||
|
@%:@undef HAVE_STDINT_H])
|
||||||
|
m4trace:configure.ac:17: -1- AH_OUTPUT([HAVE_STDDEF_H], [/* Define to 1 if you have the <stddef.h> header file. */
|
||||||
|
@%:@undef HAVE_STDDEF_H])
|
||||||
|
m4trace:configure.ac:23: -1- AC_SUBST([GTEST_CONFIG])
|
||||||
|
m4trace:configure.ac:23: -1- AC_SUBST_TRACE([GTEST_CONFIG])
|
||||||
|
m4trace:configure.ac:23: -1- m4_pattern_allow([^GTEST_CONFIG$])
|
||||||
|
m4trace:configure.ac:23: -1- AC_SUBST([GTEST_CPPFLAGS])
|
||||||
|
m4trace:configure.ac:23: -1- AC_SUBST_TRACE([GTEST_CPPFLAGS])
|
||||||
|
m4trace:configure.ac:23: -1- m4_pattern_allow([^GTEST_CPPFLAGS$])
|
||||||
|
m4trace:configure.ac:23: -1- AC_SUBST([GTEST_CXXFLAGS])
|
||||||
|
m4trace:configure.ac:23: -1- AC_SUBST_TRACE([GTEST_CXXFLAGS])
|
||||||
|
m4trace:configure.ac:23: -1- m4_pattern_allow([^GTEST_CXXFLAGS$])
|
||||||
|
m4trace:configure.ac:23: -1- AC_SUBST([GTEST_LDFLAGS])
|
||||||
|
m4trace:configure.ac:23: -1- AC_SUBST_TRACE([GTEST_LDFLAGS])
|
||||||
|
m4trace:configure.ac:23: -1- m4_pattern_allow([^GTEST_LDFLAGS$])
|
||||||
|
m4trace:configure.ac:23: -1- AC_SUBST([GTEST_LIBS])
|
||||||
|
m4trace:configure.ac:23: -1- AC_SUBST_TRACE([GTEST_LIBS])
|
||||||
|
m4trace:configure.ac:23: -1- m4_pattern_allow([^GTEST_LIBS$])
|
||||||
|
m4trace:configure.ac:23: -1- AC_SUBST([GTEST_VERSION])
|
||||||
|
m4trace:configure.ac:23: -1- AC_SUBST_TRACE([GTEST_VERSION])
|
||||||
|
m4trace:configure.ac:23: -1- m4_pattern_allow([^GTEST_VERSION$])
|
||||||
|
m4trace:configure.ac:23: -1- AC_SUBST([GTEST_CONFIG])
|
||||||
|
m4trace:configure.ac:23: -1- AC_SUBST_TRACE([GTEST_CONFIG])
|
||||||
|
m4trace:configure.ac:23: -1- m4_pattern_allow([^GTEST_CONFIG$])
|
||||||
|
m4trace:configure.ac:23: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GTEST])
|
||||||
|
m4trace:configure.ac:23: -1- m4_pattern_allow([^HAVE_GTEST$])
|
||||||
|
m4trace:configure.ac:23: -1- AH_OUTPUT([HAVE_GTEST], [/* Defined when Google Test is available. */
|
||||||
|
@%:@undef HAVE_GTEST])
|
||||||
|
m4trace:configure.ac:23: -1- AC_SUBST([HAVE_GTEST])
|
||||||
|
m4trace:configure.ac:23: -1- AC_SUBST_TRACE([HAVE_GTEST])
|
||||||
|
m4trace:configure.ac:23: -1- m4_pattern_allow([^HAVE_GTEST$])
|
||||||
|
m4trace:configure.ac:23: -1- AM_CONDITIONAL([HAVE_GTEST], [test "x$HAVE_GTEST" = "xyes"])
|
||||||
|
m4trace:configure.ac:23: -1- AC_SUBST([HAVE_GTEST_TRUE])
|
||||||
|
m4trace:configure.ac:23: -1- AC_SUBST_TRACE([HAVE_GTEST_TRUE])
|
||||||
|
m4trace:configure.ac:23: -1- m4_pattern_allow([^HAVE_GTEST_TRUE$])
|
||||||
|
m4trace:configure.ac:23: -1- AC_SUBST([HAVE_GTEST_FALSE])
|
||||||
|
m4trace:configure.ac:23: -1- AC_SUBST_TRACE([HAVE_GTEST_FALSE])
|
||||||
|
m4trace:configure.ac:23: -1- m4_pattern_allow([^HAVE_GTEST_FALSE$])
|
||||||
|
m4trace:configure.ac:23: -1- _AM_SUBST_NOTMAKE([HAVE_GTEST_TRUE])
|
||||||
|
m4trace:configure.ac:23: -1- _AM_SUBST_NOTMAKE([HAVE_GTEST_FALSE])
|
||||||
|
m4trace:configure.ac:24: -1- m4_pattern_forbid([^_?PKG_[A-Z_]+$])
|
||||||
|
m4trace:configure.ac:24: -1- m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
|
||||||
|
m4trace:configure.ac:24: -1- AC_SUBST([PKG_CONFIG])
|
||||||
|
m4trace:configure.ac:24: -1- AC_SUBST_TRACE([PKG_CONFIG])
|
||||||
|
m4trace:configure.ac:24: -1- m4_pattern_allow([^PKG_CONFIG$])
|
||||||
|
m4trace:configure.ac:24: -1- AC_SUBST([PKG_CONFIG])
|
||||||
|
m4trace:configure.ac:24: -1- AC_SUBST_TRACE([PKG_CONFIG])
|
||||||
|
m4trace:configure.ac:24: -1- m4_pattern_allow([^PKG_CONFIG$])
|
||||||
|
m4trace:configure.ac:24: -1- AC_SUBST([gflags_CFLAGS])
|
||||||
|
m4trace:configure.ac:24: -1- AC_SUBST_TRACE([gflags_CFLAGS])
|
||||||
|
m4trace:configure.ac:24: -1- m4_pattern_allow([^gflags_CFLAGS$])
|
||||||
|
m4trace:configure.ac:24: -1- AC_SUBST([gflags_LIBS])
|
||||||
|
m4trace:configure.ac:24: -1- AC_SUBST_TRACE([gflags_LIBS])
|
||||||
|
m4trace:configure.ac:24: -1- m4_pattern_allow([^gflags_LIBS$])
|
||||||
|
m4trace:configure.ac:24: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GFLAGS])
|
||||||
|
m4trace:configure.ac:24: -1- m4_pattern_allow([^HAVE_GFLAGS$])
|
||||||
|
m4trace:configure.ac:24: -1- AH_OUTPUT([HAVE_GFLAGS], [/* Use the gflags package for command-line parsing. */
|
||||||
|
@%:@undef HAVE_GFLAGS])
|
||||||
|
m4trace:configure.ac:33: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete.
|
||||||
|
You should run autoupdate.], [../../lib/autoconf/general.m4:2581: AC_TRY_COMPILE is expanded from...
|
||||||
|
configure.ac:33: the top level])
|
||||||
|
m4trace:configure.ac:43: -1- AC_DEFINE_TRACE_LITERAL([HAVE_BUILTIN_EXPECT])
|
||||||
|
m4trace:configure.ac:43: -1- m4_pattern_allow([^HAVE_BUILTIN_EXPECT$])
|
||||||
|
m4trace:configure.ac:43: -1- AH_OUTPUT([HAVE_BUILTIN_EXPECT], [/* Define to 1 if the compiler supports __builtin_expect. */
|
||||||
|
@%:@undef HAVE_BUILTIN_EXPECT])
|
||||||
|
m4trace:configure.ac:50: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete.
|
||||||
|
You should run autoupdate.], [../../lib/autoconf/general.m4:2581: AC_TRY_COMPILE is expanded from...
|
||||||
|
configure.ac:50: the top level])
|
||||||
|
m4trace:configure.ac:60: -1- AC_DEFINE_TRACE_LITERAL([HAVE_BUILTIN_CTZ])
|
||||||
|
m4trace:configure.ac:60: -1- m4_pattern_allow([^HAVE_BUILTIN_CTZ$])
|
||||||
|
m4trace:configure.ac:60: -1- AH_OUTPUT([HAVE_BUILTIN_CTZ], [/* Define to 1 if the compiler supports __builtin_ctz and friends. */
|
||||||
|
@%:@undef HAVE_BUILTIN_CTZ])
|
||||||
|
m4trace:configure.ac:65: -1- AH_OUTPUT([HAVE_LIBZ], [/* Define to 1 if you have the `z\' library (-lz). */
|
||||||
|
@%:@undef HAVE_LIBZ])
|
||||||
|
m4trace:configure.ac:65: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBZ])
|
||||||
|
m4trace:configure.ac:65: -1- m4_pattern_allow([^HAVE_LIBZ$])
|
||||||
|
m4trace:configure.ac:66: -1- AH_OUTPUT([HAVE_LIBLZO2], [/* Define to 1 if you have the `lzo2\' library (-llzo2). */
|
||||||
|
@%:@undef HAVE_LIBLZO2])
|
||||||
|
m4trace:configure.ac:66: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBLZO2])
|
||||||
|
m4trace:configure.ac:66: -1- m4_pattern_allow([^HAVE_LIBLZO2$])
|
||||||
|
m4trace:configure.ac:67: -1- AH_OUTPUT([HAVE_LIBLZF], [/* Define to 1 if you have the `lzf\' library (-llzf). */
|
||||||
|
@%:@undef HAVE_LIBLZF])
|
||||||
|
m4trace:configure.ac:67: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBLZF])
|
||||||
|
m4trace:configure.ac:67: -1- m4_pattern_allow([^HAVE_LIBLZF$])
|
||||||
|
m4trace:configure.ac:68: -1- AH_OUTPUT([HAVE_LIBFASTLZ], [/* Define to 1 if you have the `fastlz\' library (-lfastlz). */
|
||||||
|
@%:@undef HAVE_LIBFASTLZ])
|
||||||
|
m4trace:configure.ac:68: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBFASTLZ])
|
||||||
|
m4trace:configure.ac:68: -1- m4_pattern_allow([^HAVE_LIBFASTLZ$])
|
||||||
|
m4trace:configure.ac:69: -1- AH_OUTPUT([HAVE_LIBQUICKLZ], [/* Define to 1 if you have the `quicklz\' library (-lquicklz). */
|
||||||
|
@%:@undef HAVE_LIBQUICKLZ])
|
||||||
|
m4trace:configure.ac:69: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBQUICKLZ])
|
||||||
|
m4trace:configure.ac:69: -1- m4_pattern_allow([^HAVE_LIBQUICKLZ$])
|
||||||
|
m4trace:configure.ac:73: -1- AC_SUBST([ac_cv_have_stdint_h], [1])
|
||||||
|
m4trace:configure.ac:73: -1- AC_SUBST_TRACE([ac_cv_have_stdint_h])
|
||||||
|
m4trace:configure.ac:73: -1- m4_pattern_allow([^ac_cv_have_stdint_h$])
|
||||||
|
m4trace:configure.ac:75: -1- AC_SUBST([ac_cv_have_stdint_h], [0])
|
||||||
|
m4trace:configure.ac:75: -1- AC_SUBST_TRACE([ac_cv_have_stdint_h])
|
||||||
|
m4trace:configure.ac:75: -1- m4_pattern_allow([^ac_cv_have_stdint_h$])
|
||||||
|
m4trace:configure.ac:78: -1- AC_SUBST([ac_cv_have_stddef_h], [1])
|
||||||
|
m4trace:configure.ac:78: -1- AC_SUBST_TRACE([ac_cv_have_stddef_h])
|
||||||
|
m4trace:configure.ac:78: -1- m4_pattern_allow([^ac_cv_have_stddef_h$])
|
||||||
|
m4trace:configure.ac:80: -1- AC_SUBST([ac_cv_have_stddef_h], [0])
|
||||||
|
m4trace:configure.ac:80: -1- AC_SUBST_TRACE([ac_cv_have_stddef_h])
|
||||||
|
m4trace:configure.ac:80: -1- m4_pattern_allow([^ac_cv_have_stddef_h$])
|
||||||
|
m4trace:configure.ac:88: -1- AC_SUBST([SNAPPY_MAJOR])
|
||||||
|
m4trace:configure.ac:88: -1- AC_SUBST_TRACE([SNAPPY_MAJOR])
|
||||||
|
m4trace:configure.ac:88: -1- m4_pattern_allow([^SNAPPY_MAJOR$])
|
||||||
|
m4trace:configure.ac:89: -1- AC_SUBST([SNAPPY_MINOR])
|
||||||
|
m4trace:configure.ac:89: -1- AC_SUBST_TRACE([SNAPPY_MINOR])
|
||||||
|
m4trace:configure.ac:89: -1- m4_pattern_allow([^SNAPPY_MINOR$])
|
||||||
|
m4trace:configure.ac:90: -1- AC_SUBST([SNAPPY_PATCHLEVEL])
|
||||||
|
m4trace:configure.ac:90: -1- AC_SUBST_TRACE([SNAPPY_PATCHLEVEL])
|
||||||
|
m4trace:configure.ac:90: -1- m4_pattern_allow([^SNAPPY_PATCHLEVEL$])
|
||||||
|
m4trace:configure.ac:95: -1- AC_SUBST([EXTRA_LIBSNAPPY_LDFLAGS])
|
||||||
|
m4trace:configure.ac:95: -1- AC_SUBST_TRACE([EXTRA_LIBSNAPPY_LDFLAGS])
|
||||||
|
m4trace:configure.ac:95: -1- m4_pattern_allow([^EXTRA_LIBSNAPPY_LDFLAGS$])
|
||||||
|
m4trace:configure.ac:97: -1- AC_CONFIG_HEADERS([config.h])
|
||||||
|
m4trace:configure.ac:98: -1- AC_CONFIG_FILES([Makefile snappy-stubs-public.h])
|
||||||
|
m4trace:configure.ac:99: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs])
|
||||||
|
m4trace:configure.ac:99: -1- AC_SUBST_TRACE([LIB@&t@OBJS])
|
||||||
|
m4trace:configure.ac:99: -1- m4_pattern_allow([^LIB@&t@OBJS$])
|
||||||
|
m4trace:configure.ac:99: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs])
|
||||||
|
m4trace:configure.ac:99: -1- AC_SUBST_TRACE([LTLIBOBJS])
|
||||||
|
m4trace:configure.ac:99: -1- m4_pattern_allow([^LTLIBOBJS$])
|
||||||
|
m4trace:configure.ac:99: -1- AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])
|
||||||
|
m4trace:configure.ac:99: -1- AC_SUBST([am__EXEEXT_TRUE])
|
||||||
|
m4trace:configure.ac:99: -1- AC_SUBST_TRACE([am__EXEEXT_TRUE])
|
||||||
|
m4trace:configure.ac:99: -1- m4_pattern_allow([^am__EXEEXT_TRUE$])
|
||||||
|
m4trace:configure.ac:99: -1- AC_SUBST([am__EXEEXT_FALSE])
|
||||||
|
m4trace:configure.ac:99: -1- AC_SUBST_TRACE([am__EXEEXT_FALSE])
|
||||||
|
m4trace:configure.ac:99: -1- m4_pattern_allow([^am__EXEEXT_FALSE$])
|
||||||
|
m4trace:configure.ac:99: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_TRUE])
|
||||||
|
m4trace:configure.ac:99: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_FALSE])
|
||||||
|
m4trace:configure.ac:99: -1- AC_SUBST_TRACE([top_builddir])
|
||||||
|
m4trace:configure.ac:99: -1- AC_SUBST_TRACE([top_build_prefix])
|
||||||
|
m4trace:configure.ac:99: -1- AC_SUBST_TRACE([srcdir])
|
||||||
|
m4trace:configure.ac:99: -1- AC_SUBST_TRACE([abs_srcdir])
|
||||||
|
m4trace:configure.ac:99: -1- AC_SUBST_TRACE([top_srcdir])
|
||||||
|
m4trace:configure.ac:99: -1- AC_SUBST_TRACE([abs_top_srcdir])
|
||||||
|
m4trace:configure.ac:99: -1- AC_SUBST_TRACE([builddir])
|
||||||
|
m4trace:configure.ac:99: -1- AC_SUBST_TRACE([abs_builddir])
|
||||||
|
m4trace:configure.ac:99: -1- AC_SUBST_TRACE([abs_top_builddir])
|
||||||
|
m4trace:configure.ac:99: -1- AC_SUBST_TRACE([INSTALL])
|
||||||
|
m4trace:configure.ac:99: -1- AC_SUBST_TRACE([MKDIR_P])
|
||||||
|
m4trace:configure.ac:99: -1- AC_REQUIRE_AUX_FILE([ltmain.sh])
|
|
@ -0,0 +1,99 @@
|
||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
# Wrapper for compilers which do not understand `-c -o'.
|
||||||
|
|
||||||
|
# Copyright 1999, 2000 Free Software Foundation, Inc.
|
||||||
|
# Written by Tom Tromey <tromey@cygnus.com>.
|
||||||
|
#
|
||||||
|
# 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, 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, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
# As a special exception to the GNU General Public License, if you
|
||||||
|
# distribute this file as part of a program that contains a
|
||||||
|
# configuration script generated by Autoconf, you may include it under
|
||||||
|
# the same distribution terms that you use for the rest of that program.
|
||||||
|
|
||||||
|
# Usage:
|
||||||
|
# compile PROGRAM [ARGS]...
|
||||||
|
# `-o FOO.o' is removed from the args passed to the actual compile.
|
||||||
|
|
||||||
|
prog=$1
|
||||||
|
shift
|
||||||
|
|
||||||
|
ofile=
|
||||||
|
cfile=
|
||||||
|
args=
|
||||||
|
while test $# -gt 0; do
|
||||||
|
case "$1" in
|
||||||
|
-o)
|
||||||
|
# configure might choose to run compile as `compile cc -o foo foo.c'.
|
||||||
|
# So we do something ugly here.
|
||||||
|
ofile=$2
|
||||||
|
shift
|
||||||
|
case "$ofile" in
|
||||||
|
*.o | *.obj)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
args="$args -o $ofile"
|
||||||
|
ofile=
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
*.c)
|
||||||
|
cfile=$1
|
||||||
|
args="$args $1"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
args="$args $1"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
if test -z "$ofile" || test -z "$cfile"; then
|
||||||
|
# If no `-o' option was seen then we might have been invoked from a
|
||||||
|
# pattern rule where we don't need one. That is ok -- this is a
|
||||||
|
# normal compilation that the losing compiler can handle. If no
|
||||||
|
# `.c' file was seen then we are probably linking. That is also
|
||||||
|
# ok.
|
||||||
|
exec "$prog" $args
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Name of file we expect compiler to create.
|
||||||
|
cofile=`echo $cfile | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
|
||||||
|
|
||||||
|
# Create the lock directory.
|
||||||
|
# Note: use `[/.-]' here to ensure that we don't use the same name
|
||||||
|
# that we are using for the .o file. Also, base the name on the expected
|
||||||
|
# object file name, since that is what matters with a parallel build.
|
||||||
|
lockdir=`echo $cofile | sed -e 's|[/.-]|_|g'`.d
|
||||||
|
while true; do
|
||||||
|
if mkdir $lockdir > /dev/null 2>&1; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
# FIXME: race condition here if user kills between mkdir and trap.
|
||||||
|
trap "rmdir $lockdir; exit 1" 1 2 15
|
||||||
|
|
||||||
|
# Run the compile.
|
||||||
|
"$prog" $args
|
||||||
|
status=$?
|
||||||
|
|
||||||
|
if test -f "$cofile"; then
|
||||||
|
mv "$cofile" "$ofile"
|
||||||
|
fi
|
||||||
|
|
||||||
|
rmdir $lockdir
|
||||||
|
exit $status
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,107 @@
|
||||||
|
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||||
|
|
||||||
|
/* Define if building universal (internal helper macro) */
|
||||||
|
#undef AC_APPLE_UNIVERSAL_BUILD
|
||||||
|
|
||||||
|
/* Define to 1 if the compiler supports __builtin_ctz and friends. */
|
||||||
|
#undef HAVE_BUILTIN_CTZ
|
||||||
|
|
||||||
|
/* Define to 1 if the compiler supports __builtin_expect. */
|
||||||
|
#undef HAVE_BUILTIN_EXPECT
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||||
|
#undef HAVE_DLFCN_H
|
||||||
|
|
||||||
|
/* Use the gflags package for command-line parsing. */
|
||||||
|
#undef HAVE_GFLAGS
|
||||||
|
|
||||||
|
/* Defined when Google Test is available. */
|
||||||
|
#undef HAVE_GTEST
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||||
|
#undef HAVE_INTTYPES_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `fastlz' library (-lfastlz). */
|
||||||
|
#undef HAVE_LIBFASTLZ
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `lzf' library (-llzf). */
|
||||||
|
#undef HAVE_LIBLZF
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `lzo2' library (-llzo2). */
|
||||||
|
#undef HAVE_LIBLZO2
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `quicklz' library (-lquicklz). */
|
||||||
|
#undef HAVE_LIBQUICKLZ
|
||||||
|
|
||||||
|
/* 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 <stddef.h> header file. */
|
||||||
|
#undef HAVE_STDDEF_H
|
||||||
|
|
||||||
|
/* 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 <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/stat.h> header file. */
|
||||||
|
#undef HAVE_SYS_STAT_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 <unistd.h> header file. */
|
||||||
|
#undef HAVE_UNISTD_H
|
||||||
|
|
||||||
|
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
||||||
|
*/
|
||||||
|
#undef LT_OBJDIR
|
||||||
|
|
||||||
|
/* Name of package */
|
||||||
|
#undef PACKAGE
|
||||||
|
|
||||||
|
/* 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 home page for this package. */
|
||||||
|
#undef PACKAGE_URL
|
||||||
|
|
||||||
|
/* Define to the version of this package. */
|
||||||
|
#undef PACKAGE_VERSION
|
||||||
|
|
||||||
|
/* Define to 1 if you have the ANSI C header files. */
|
||||||
|
#undef STDC_HEADERS
|
||||||
|
|
||||||
|
/* Version number of package */
|
||||||
|
#undef VERSION
|
||||||
|
|
||||||
|
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
||||||
|
significant byte first (like Motorola and SPARC, unlike Intel). */
|
||||||
|
#if defined AC_APPLE_UNIVERSAL_BUILD
|
||||||
|
# if defined __BIG_ENDIAN__
|
||||||
|
# define WORDS_BIGENDIAN 1
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
|
# ifndef WORDS_BIGENDIAN
|
||||||
|
# undef WORDS_BIGENDIAN
|
||||||
|
# endif
|
||||||
|
#endif
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,99 @@
|
||||||
|
m4_define(snappy_major, [1])
|
||||||
|
m4_define(snappy_minor, [0])
|
||||||
|
m4_define(snappy_patchlevel, [0])
|
||||||
|
|
||||||
|
# Libtool shared library interface versions (current:revision:age)
|
||||||
|
# Update this value for every release! (A:B:C will map to foo.so.(A-C).C.B)
|
||||||
|
# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
|
||||||
|
m4_define(snappy_version, [1:0:0])
|
||||||
|
|
||||||
|
AC_INIT([snappy], [snappy_major.snappy_minor.snappy_patchlevel])
|
||||||
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
|
AM_INIT_AUTOMAKE
|
||||||
|
LT_INIT
|
||||||
|
AC_PROG_CXX
|
||||||
|
AC_LANG([C++])
|
||||||
|
AC_C_BIGENDIAN
|
||||||
|
AC_CHECK_HEADERS(stdint.h stddef.h)
|
||||||
|
|
||||||
|
# Don't use AC_FUNC_MMAP, as it checks for mappings of already-mapped memory,
|
||||||
|
# which we don't need (and does not exist on Windows).
|
||||||
|
AC_CHECK_FUNC(mmap)
|
||||||
|
|
||||||
|
GTEST_LIB_CHECK([], [true], [true # Ignore; we can live without it.])
|
||||||
|
PKG_CHECK_MODULES([gflags], [libgflags],
|
||||||
|
[AC_DEFINE([HAVE_GFLAGS], [1], [Use the gflags package for command-line parsing.])],
|
||||||
|
[true # Ignore; we can live without it.]
|
||||||
|
)
|
||||||
|
|
||||||
|
# See if we have __builtin_expect.
|
||||||
|
# TODO: Use AC_CACHE.
|
||||||
|
AC_MSG_CHECKING([if the compiler supports __builtin_expect])
|
||||||
|
|
||||||
|
AC_TRY_COMPILE(, [
|
||||||
|
return __builtin_expect(1, 1) ? 1 : 0
|
||||||
|
], [
|
||||||
|
ac_have_builtin_expect=yes
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
], [
|
||||||
|
ac_have_builtin_expect=no
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
|
])
|
||||||
|
if test x$ac_have_builtin_expect = xyes ; then
|
||||||
|
AC_DEFINE(HAVE_BUILTIN_EXPECT, 1, [Define to 1 if the compiler supports __builtin_expect.])
|
||||||
|
fi
|
||||||
|
|
||||||
|
# See if we have working count-trailing-zeros intrinsics.
|
||||||
|
# TODO: Use AC_CACHE.
|
||||||
|
AC_MSG_CHECKING([if the compiler supports __builtin_ctzll])
|
||||||
|
|
||||||
|
AC_TRY_COMPILE(, [
|
||||||
|
return (__builtin_ctzll(0x100000000LL) == 32) ? 1 : 0
|
||||||
|
], [
|
||||||
|
ac_have_builtin_ctz=yes
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
], [
|
||||||
|
ac_have_builtin_ctz=no
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
|
])
|
||||||
|
if test x$ac_have_builtin_ctz = xyes ; then
|
||||||
|
AC_DEFINE(HAVE_BUILTIN_CTZ, 1, [Define to 1 if the compiler supports __builtin_ctz and friends.])
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Other compression libraries; the unit test can use these for comparison
|
||||||
|
# if they are available. If they are not found, just ignore.
|
||||||
|
AC_CHECK_LIB([z], [zlibVersion],, [true])
|
||||||
|
AC_CHECK_LIB([lzo2], [lzo1x_1_15_compress],, [true])
|
||||||
|
AC_CHECK_LIB([lzf], [lzf_compress],, [true])
|
||||||
|
AC_CHECK_LIB([fastlz], [fastlz_compress],, [true])
|
||||||
|
AC_CHECK_LIB([quicklz], [qlz_compress],, [true])
|
||||||
|
|
||||||
|
# These are used by snappy-stubs-public.h.in.
|
||||||
|
if test "$ac_cv_header_stdint_h" = "yes"; then
|
||||||
|
AC_SUBST(ac_cv_have_stdint_h, 1)
|
||||||
|
else
|
||||||
|
AC_SUBST(ac_cv_have_stdint_h, 0)
|
||||||
|
fi
|
||||||
|
if test "$ac_cv_header_stddef_h" = "yes"; then
|
||||||
|
AC_SUBST(ac_cv_have_stddef_h, 1)
|
||||||
|
else
|
||||||
|
AC_SUBST(ac_cv_have_stddef_h, 0)
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Export the version to snappy-stubs-public.h.
|
||||||
|
SNAPPY_MAJOR="snappy_major"
|
||||||
|
SNAPPY_MINOR="snappy_minor"
|
||||||
|
SNAPPY_PATCHLEVEL="snappy_patchlevel"
|
||||||
|
|
||||||
|
AC_SUBST(SNAPPY_MAJOR)
|
||||||
|
AC_SUBST(SNAPPY_MINOR)
|
||||||
|
AC_SUBST(SNAPPY_PATCHLEVEL)
|
||||||
|
|
||||||
|
# Set the libtool version for the library.
|
||||||
|
# (Note: snappy_version is an m4 macro, defined above.)
|
||||||
|
EXTRA_LIBSNAPPY_LDFLAGS="$EXTRA_LIBSNAPPY_LDFLAGS -version-info snappy_version"
|
||||||
|
AC_SUBST(EXTRA_LIBSNAPPY_LDFLAGS)
|
||||||
|
|
||||||
|
AC_CONFIG_HEADERS([config.h])
|
||||||
|
AC_CONFIG_FILES([Makefile snappy-stubs-public.h])
|
||||||
|
AC_OUTPUT
|
|
@ -0,0 +1,530 @@
|
||||||
|
#! /bin/sh
|
||||||
|
# depcomp - compile a program generating dependencies as side-effects
|
||||||
|
|
||||||
|
scriptversion=2005-07-09.11
|
||||||
|
|
||||||
|
# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
# 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, 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, write to the Free Software
|
||||||
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
# 02110-1301, USA.
|
||||||
|
|
||||||
|
# As a special exception to the GNU General Public License, if you
|
||||||
|
# distribute this file as part of a program that contains a
|
||||||
|
# configuration script generated by Autoconf, you may include it under
|
||||||
|
# the same distribution terms that you use for the rest of that program.
|
||||||
|
|
||||||
|
# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
'')
|
||||||
|
echo "$0: No command. Try \`$0 --help' for more information." 1>&2
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
-h | --h*)
|
||||||
|
cat <<\EOF
|
||||||
|
Usage: depcomp [--help] [--version] PROGRAM [ARGS]
|
||||||
|
|
||||||
|
Run PROGRAMS ARGS to compile a file, generating dependencies
|
||||||
|
as side-effects.
|
||||||
|
|
||||||
|
Environment variables:
|
||||||
|
depmode Dependency tracking mode.
|
||||||
|
source Source file read by `PROGRAMS ARGS'.
|
||||||
|
object Object file output by `PROGRAMS ARGS'.
|
||||||
|
DEPDIR directory where to store dependencies.
|
||||||
|
depfile Dependency file to output.
|
||||||
|
tmpdepfile Temporary file to use when outputing dependencies.
|
||||||
|
libtool Whether libtool is used (yes/no).
|
||||||
|
|
||||||
|
Report bugs to <bug-automake@gnu.org>.
|
||||||
|
EOF
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
-v | --v*)
|
||||||
|
echo "depcomp $scriptversion"
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
|
||||||
|
echo "depcomp: Variables source, object and depmode must be set" 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
|
||||||
|
depfile=${depfile-`echo "$object" |
|
||||||
|
sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
|
||||||
|
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
|
||||||
|
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
|
||||||
|
# Some modes work just like other modes, but use different flags. We
|
||||||
|
# parameterize here, but still list the modes in the big case below,
|
||||||
|
# to make depend.m4 easier to write. Note that we *cannot* use a case
|
||||||
|
# here, because this file can only contain one case statement.
|
||||||
|
if test "$depmode" = hp; then
|
||||||
|
# HP compiler uses -M and no extra arg.
|
||||||
|
gccflag=-M
|
||||||
|
depmode=gcc
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$depmode" = dashXmstdout; then
|
||||||
|
# This is just like dashmstdout with a different argument.
|
||||||
|
dashmflag=-xM
|
||||||
|
depmode=dashmstdout
|
||||||
|
fi
|
||||||
|
|
||||||
|
case "$depmode" in
|
||||||
|
gcc3)
|
||||||
|
## gcc 3 implements dependency tracking that does exactly what
|
||||||
|
## we want. Yay! Note: for some reason libtool 1.4 doesn't like
|
||||||
|
## it if -MD -MP comes after the -MF stuff. Hmm.
|
||||||
|
"$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
|
||||||
|
stat=$?
|
||||||
|
if test $stat -eq 0; then :
|
||||||
|
else
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
exit $stat
|
||||||
|
fi
|
||||||
|
mv "$tmpdepfile" "$depfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
gcc)
|
||||||
|
## There are various ways to get dependency output from gcc. Here's
|
||||||
|
## why we pick this rather obscure method:
|
||||||
|
## - Don't want to use -MD because we'd like the dependencies to end
|
||||||
|
## up in a subdir. Having to rename by hand is ugly.
|
||||||
|
## (We might end up doing this anyway to support other compilers.)
|
||||||
|
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
|
||||||
|
## -MM, not -M (despite what the docs say).
|
||||||
|
## - Using -M directly means running the compiler twice (even worse
|
||||||
|
## than renaming).
|
||||||
|
if test -z "$gccflag"; then
|
||||||
|
gccflag=-MD,
|
||||||
|
fi
|
||||||
|
"$@" -Wp,"$gccflag$tmpdepfile"
|
||||||
|
stat=$?
|
||||||
|
if test $stat -eq 0; then :
|
||||||
|
else
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
exit $stat
|
||||||
|
fi
|
||||||
|
rm -f "$depfile"
|
||||||
|
echo "$object : \\" > "$depfile"
|
||||||
|
alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
|
||||||
|
## The second -e expression handles DOS-style file names with drive letters.
|
||||||
|
sed -e 's/^[^:]*: / /' \
|
||||||
|
-e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
|
||||||
|
## This next piece of magic avoids the `deleted header file' problem.
|
||||||
|
## The problem is that when a header file which appears in a .P file
|
||||||
|
## is deleted, the dependency causes make to die (because there is
|
||||||
|
## typically no way to rebuild the header). We avoid this by adding
|
||||||
|
## dummy dependencies for each header file. Too bad gcc doesn't do
|
||||||
|
## this for us directly.
|
||||||
|
tr ' ' '
|
||||||
|
' < "$tmpdepfile" |
|
||||||
|
## Some versions of gcc put a space before the `:'. On the theory
|
||||||
|
## that the space means something, we add a space to the output as
|
||||||
|
## well.
|
||||||
|
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||||
|
## correctly. Breaking it into two sed invocations is a workaround.
|
||||||
|
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
hp)
|
||||||
|
# This case exists only to let depend.m4 do its work. It works by
|
||||||
|
# looking at the text of this script. This case will never be run,
|
||||||
|
# since it is checked for above.
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
|
sgi)
|
||||||
|
if test "$libtool" = yes; then
|
||||||
|
"$@" "-Wp,-MDupdate,$tmpdepfile"
|
||||||
|
else
|
||||||
|
"$@" -MDupdate "$tmpdepfile"
|
||||||
|
fi
|
||||||
|
stat=$?
|
||||||
|
if test $stat -eq 0; then :
|
||||||
|
else
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
exit $stat
|
||||||
|
fi
|
||||||
|
rm -f "$depfile"
|
||||||
|
|
||||||
|
if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
|
||||||
|
echo "$object : \\" > "$depfile"
|
||||||
|
|
||||||
|
# Clip off the initial element (the dependent). Don't try to be
|
||||||
|
# clever and replace this with sed code, as IRIX sed won't handle
|
||||||
|
# lines with more than a fixed number of characters (4096 in
|
||||||
|
# IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
|
||||||
|
# the IRIX cc adds comments like `#:fec' to the end of the
|
||||||
|
# dependency line.
|
||||||
|
tr ' ' '
|
||||||
|
' < "$tmpdepfile" \
|
||||||
|
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
|
||||||
|
tr '
|
||||||
|
' ' ' >> $depfile
|
||||||
|
echo >> $depfile
|
||||||
|
|
||||||
|
# The second pass generates a dummy entry for each header file.
|
||||||
|
tr ' ' '
|
||||||
|
' < "$tmpdepfile" \
|
||||||
|
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
|
||||||
|
>> $depfile
|
||||||
|
else
|
||||||
|
# The sourcefile does not contain any dependencies, so just
|
||||||
|
# store a dummy comment line, to avoid errors with the Makefile
|
||||||
|
# "include basename.Plo" scheme.
|
||||||
|
echo "#dummy" > "$depfile"
|
||||||
|
fi
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
aix)
|
||||||
|
# The C for AIX Compiler uses -M and outputs the dependencies
|
||||||
|
# in a .u file. In older versions, this file always lives in the
|
||||||
|
# current directory. Also, the AIX compiler puts `$object:' at the
|
||||||
|
# start of each line; $object doesn't have directory information.
|
||||||
|
# Version 6 uses the directory in both cases.
|
||||||
|
stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
|
||||||
|
tmpdepfile="$stripped.u"
|
||||||
|
if test "$libtool" = yes; then
|
||||||
|
"$@" -Wc,-M
|
||||||
|
else
|
||||||
|
"$@" -M
|
||||||
|
fi
|
||||||
|
stat=$?
|
||||||
|
|
||||||
|
if test -f "$tmpdepfile"; then :
|
||||||
|
else
|
||||||
|
stripped=`echo "$stripped" | sed 's,^.*/,,'`
|
||||||
|
tmpdepfile="$stripped.u"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test $stat -eq 0; then :
|
||||||
|
else
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
exit $stat
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -f "$tmpdepfile"; then
|
||||||
|
outname="$stripped.o"
|
||||||
|
# Each line is of the form `foo.o: dependent.h'.
|
||||||
|
# Do two passes, one to just change these to
|
||||||
|
# `$object: dependent.h' and one to simply `dependent.h:'.
|
||||||
|
sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
|
||||||
|
sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
|
||||||
|
else
|
||||||
|
# The sourcefile does not contain any dependencies, so just
|
||||||
|
# store a dummy comment line, to avoid errors with the Makefile
|
||||||
|
# "include basename.Plo" scheme.
|
||||||
|
echo "#dummy" > "$depfile"
|
||||||
|
fi
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
icc)
|
||||||
|
# Intel's C compiler understands `-MD -MF file'. However on
|
||||||
|
# icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
|
||||||
|
# ICC 7.0 will fill foo.d with something like
|
||||||
|
# foo.o: sub/foo.c
|
||||||
|
# foo.o: sub/foo.h
|
||||||
|
# which is wrong. We want:
|
||||||
|
# sub/foo.o: sub/foo.c
|
||||||
|
# sub/foo.o: sub/foo.h
|
||||||
|
# sub/foo.c:
|
||||||
|
# sub/foo.h:
|
||||||
|
# ICC 7.1 will output
|
||||||
|
# foo.o: sub/foo.c sub/foo.h
|
||||||
|
# and will wrap long lines using \ :
|
||||||
|
# foo.o: sub/foo.c ... \
|
||||||
|
# sub/foo.h ... \
|
||||||
|
# ...
|
||||||
|
|
||||||
|
"$@" -MD -MF "$tmpdepfile"
|
||||||
|
stat=$?
|
||||||
|
if test $stat -eq 0; then :
|
||||||
|
else
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
exit $stat
|
||||||
|
fi
|
||||||
|
rm -f "$depfile"
|
||||||
|
# Each line is of the form `foo.o: dependent.h',
|
||||||
|
# or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
|
||||||
|
# Do two passes, one to just change these to
|
||||||
|
# `$object: dependent.h' and one to simply `dependent.h:'.
|
||||||
|
sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
|
||||||
|
# Some versions of the HPUX 10.20 sed can't process this invocation
|
||||||
|
# correctly. Breaking it into two sed invocations is a workaround.
|
||||||
|
sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
|
||||||
|
sed -e 's/$/ :/' >> "$depfile"
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
tru64)
|
||||||
|
# The Tru64 compiler uses -MD to generate dependencies as a side
|
||||||
|
# effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
|
||||||
|
# At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
|
||||||
|
# dependencies in `foo.d' instead, so we check for that too.
|
||||||
|
# Subdirectories are respected.
|
||||||
|
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
|
||||||
|
test "x$dir" = "x$object" && dir=
|
||||||
|
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
|
||||||
|
|
||||||
|
if test "$libtool" = yes; then
|
||||||
|
# With Tru64 cc, shared objects can also be used to make a
|
||||||
|
# static library. This mecanism is used in libtool 1.4 series to
|
||||||
|
# handle both shared and static libraries in a single compilation.
|
||||||
|
# With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
|
||||||
|
#
|
||||||
|
# With libtool 1.5 this exception was removed, and libtool now
|
||||||
|
# generates 2 separate objects for the 2 libraries. These two
|
||||||
|
# compilations output dependencies in in $dir.libs/$base.o.d and
|
||||||
|
# in $dir$base.o.d. We have to check for both files, because
|
||||||
|
# one of the two compilations can be disabled. We should prefer
|
||||||
|
# $dir$base.o.d over $dir.libs/$base.o.d because the latter is
|
||||||
|
# automatically cleaned when .libs/ is deleted, while ignoring
|
||||||
|
# the former would cause a distcleancheck panic.
|
||||||
|
tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
|
||||||
|
tmpdepfile2=$dir$base.o.d # libtool 1.5
|
||||||
|
tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
|
||||||
|
tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
|
||||||
|
"$@" -Wc,-MD
|
||||||
|
else
|
||||||
|
tmpdepfile1=$dir$base.o.d
|
||||||
|
tmpdepfile2=$dir$base.d
|
||||||
|
tmpdepfile3=$dir$base.d
|
||||||
|
tmpdepfile4=$dir$base.d
|
||||||
|
"$@" -MD
|
||||||
|
fi
|
||||||
|
|
||||||
|
stat=$?
|
||||||
|
if test $stat -eq 0; then :
|
||||||
|
else
|
||||||
|
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
|
||||||
|
exit $stat
|
||||||
|
fi
|
||||||
|
|
||||||
|
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
|
||||||
|
do
|
||||||
|
test -f "$tmpdepfile" && break
|
||||||
|
done
|
||||||
|
if test -f "$tmpdepfile"; then
|
||||||
|
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
|
||||||
|
# That's a tab and a space in the [].
|
||||||
|
sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
|
||||||
|
else
|
||||||
|
echo "#dummy" > "$depfile"
|
||||||
|
fi
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
#nosideeffect)
|
||||||
|
# This comment above is used by automake to tell side-effect
|
||||||
|
# dependency tracking mechanisms from slower ones.
|
||||||
|
|
||||||
|
dashmstdout)
|
||||||
|
# Important note: in order to support this mode, a compiler *must*
|
||||||
|
# always write the preprocessed file to stdout, regardless of -o.
|
||||||
|
"$@" || exit $?
|
||||||
|
|
||||||
|
# Remove the call to Libtool.
|
||||||
|
if test "$libtool" = yes; then
|
||||||
|
while test $1 != '--mode=compile'; do
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Remove `-o $object'.
|
||||||
|
IFS=" "
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
case $arg in
|
||||||
|
-o)
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
$object)
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
set fnord "$@" "$arg"
|
||||||
|
shift # fnord
|
||||||
|
shift # $arg
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
test -z "$dashmflag" && dashmflag=-M
|
||||||
|
# Require at least two characters before searching for `:'
|
||||||
|
# in the target name. This is to cope with DOS-style filenames:
|
||||||
|
# a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
|
||||||
|
"$@" $dashmflag |
|
||||||
|
sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
|
||||||
|
rm -f "$depfile"
|
||||||
|
cat < "$tmpdepfile" > "$depfile"
|
||||||
|
tr ' ' '
|
||||||
|
' < "$tmpdepfile" | \
|
||||||
|
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||||
|
## correctly. Breaking it into two sed invocations is a workaround.
|
||||||
|
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
dashXmstdout)
|
||||||
|
# This case only exists to satisfy depend.m4. It is never actually
|
||||||
|
# run, as this mode is specially recognized in the preamble.
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
|
makedepend)
|
||||||
|
"$@" || exit $?
|
||||||
|
# Remove any Libtool call
|
||||||
|
if test "$libtool" = yes; then
|
||||||
|
while test $1 != '--mode=compile'; do
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
# X makedepend
|
||||||
|
shift
|
||||||
|
cleared=no
|
||||||
|
for arg in "$@"; do
|
||||||
|
case $cleared in
|
||||||
|
no)
|
||||||
|
set ""; shift
|
||||||
|
cleared=yes ;;
|
||||||
|
esac
|
||||||
|
case "$arg" in
|
||||||
|
-D*|-I*)
|
||||||
|
set fnord "$@" "$arg"; shift ;;
|
||||||
|
# Strip any option that makedepend may not understand. Remove
|
||||||
|
# the object too, otherwise makedepend will parse it as a source file.
|
||||||
|
-*|$object)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
set fnord "$@" "$arg"; shift ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
obj_suffix="`echo $object | sed 's/^.*\././'`"
|
||||||
|
touch "$tmpdepfile"
|
||||||
|
${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
|
||||||
|
rm -f "$depfile"
|
||||||
|
cat < "$tmpdepfile" > "$depfile"
|
||||||
|
sed '1,2d' "$tmpdepfile" | tr ' ' '
|
||||||
|
' | \
|
||||||
|
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||||
|
## correctly. Breaking it into two sed invocations is a workaround.
|
||||||
|
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||||
|
rm -f "$tmpdepfile" "$tmpdepfile".bak
|
||||||
|
;;
|
||||||
|
|
||||||
|
cpp)
|
||||||
|
# Important note: in order to support this mode, a compiler *must*
|
||||||
|
# always write the preprocessed file to stdout.
|
||||||
|
"$@" || exit $?
|
||||||
|
|
||||||
|
# Remove the call to Libtool.
|
||||||
|
if test "$libtool" = yes; then
|
||||||
|
while test $1 != '--mode=compile'; do
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Remove `-o $object'.
|
||||||
|
IFS=" "
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
case $arg in
|
||||||
|
-o)
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
$object)
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
set fnord "$@" "$arg"
|
||||||
|
shift # fnord
|
||||||
|
shift # $arg
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
"$@" -E |
|
||||||
|
sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
|
||||||
|
-e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
|
||||||
|
sed '$ s: \\$::' > "$tmpdepfile"
|
||||||
|
rm -f "$depfile"
|
||||||
|
echo "$object : \\" > "$depfile"
|
||||||
|
cat < "$tmpdepfile" >> "$depfile"
|
||||||
|
sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
msvisualcpp)
|
||||||
|
# Important note: in order to support this mode, a compiler *must*
|
||||||
|
# always write the preprocessed file to stdout, regardless of -o,
|
||||||
|
# because we must use -o when running libtool.
|
||||||
|
"$@" || exit $?
|
||||||
|
IFS=" "
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
case "$arg" in
|
||||||
|
"-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
|
||||||
|
set fnord "$@"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
set fnord "$@" "$arg"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
"$@" -E |
|
||||||
|
sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
|
||||||
|
rm -f "$depfile"
|
||||||
|
echo "$object : \\" > "$depfile"
|
||||||
|
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
|
||||||
|
echo " " >> "$depfile"
|
||||||
|
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
none)
|
||||||
|
exec "$@"
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "Unknown depmode $depmode" 1>&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
# Local Variables:
|
||||||
|
# mode: shell-script
|
||||||
|
# sh-indentation: 2
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "scriptversion="
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
|
# time-stamp-end: "$"
|
||||||
|
# End:
|
|
@ -0,0 +1,323 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# install - install a program, script, or datafile
|
||||||
|
|
||||||
|
scriptversion=2005-05-14.22
|
||||||
|
|
||||||
|
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
||||||
|
# later released in X11R6 (xc/config/util/install.sh) with the
|
||||||
|
# following copyright and license.
|
||||||
|
#
|
||||||
|
# Copyright (C) 1994 X Consortium
|
||||||
|
#
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
# of this software and associated documentation files (the "Software"), to
|
||||||
|
# deal in the Software without restriction, including without limitation the
|
||||||
|
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||||
|
# sell copies of the Software, and to permit persons to whom the Software is
|
||||||
|
# furnished to do so, subject to the following conditions:
|
||||||
|
#
|
||||||
|
# The above copyright notice and this permission notice shall be included in
|
||||||
|
# all copies or substantial portions of the Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||||
|
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
|
||||||
|
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
#
|
||||||
|
# Except as contained in this notice, the name of the X Consortium shall not
|
||||||
|
# be used in advertising or otherwise to promote the sale, use or other deal-
|
||||||
|
# ings in this Software without prior written authorization from the X Consor-
|
||||||
|
# tium.
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# FSF changes to this file are in the public domain.
|
||||||
|
#
|
||||||
|
# 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. It can only install one file at a time, a restriction
|
||||||
|
# shared with many OS's install programs.
|
||||||
|
|
||||||
|
# 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}"
|
||||||
|
|
||||||
|
chmodcmd="$chmodprog 0755"
|
||||||
|
chowncmd=
|
||||||
|
chgrpcmd=
|
||||||
|
stripcmd=
|
||||||
|
rmcmd="$rmprog -f"
|
||||||
|
mvcmd="$mvprog"
|
||||||
|
src=
|
||||||
|
dst=
|
||||||
|
dir_arg=
|
||||||
|
dstarg=
|
||||||
|
no_target_directory=
|
||||||
|
|
||||||
|
usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
|
||||||
|
or: $0 [OPTION]... SRCFILES... DIRECTORY
|
||||||
|
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
|
||||||
|
or: $0 [OPTION]... -d DIRECTORIES...
|
||||||
|
|
||||||
|
In the 1st form, copy SRCFILE to DSTFILE.
|
||||||
|
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
|
||||||
|
In the 4th, create DIRECTORIES.
|
||||||
|
|
||||||
|
Options:
|
||||||
|
-c (ignored)
|
||||||
|
-d create directories instead of installing files.
|
||||||
|
-g GROUP $chgrpprog installed files to GROUP.
|
||||||
|
-m MODE $chmodprog installed files to MODE.
|
||||||
|
-o USER $chownprog installed files to USER.
|
||||||
|
-s $stripprog installed files.
|
||||||
|
-t DIRECTORY install into DIRECTORY.
|
||||||
|
-T report an error if DSTFILE is a directory.
|
||||||
|
--help display this help and exit.
|
||||||
|
--version display version info and exit.
|
||||||
|
|
||||||
|
Environment variables override the default commands:
|
||||||
|
CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
|
||||||
|
"
|
||||||
|
|
||||||
|
while test -n "$1"; do
|
||||||
|
case $1 in
|
||||||
|
-c) shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-d) dir_arg=true
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-g) chgrpcmd="$chgrpprog $2"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
--help) echo "$usage"; exit $?;;
|
||||||
|
|
||||||
|
-m) chmodcmd="$chmodprog $2"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-o) chowncmd="$chownprog $2"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-s) stripcmd=$stripprog
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-t) dstarg=$2
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-T) no_target_directory=true
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
--version) echo "$0 $scriptversion"; exit $?;;
|
||||||
|
|
||||||
|
*) # When -d is used, all remaining arguments are directories to create.
|
||||||
|
# When -t is used, the destination is already specified.
|
||||||
|
test -n "$dir_arg$dstarg" && break
|
||||||
|
# Otherwise, the last argument is the destination. Remove it from $@.
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
if test -n "$dstarg"; then
|
||||||
|
# $@ is not empty: it contains at least $arg.
|
||||||
|
set fnord "$@" "$dstarg"
|
||||||
|
shift # fnord
|
||||||
|
fi
|
||||||
|
shift # arg
|
||||||
|
dstarg=$arg
|
||||||
|
done
|
||||||
|
break;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
if test -z "$1"; then
|
||||||
|
if test -z "$dir_arg"; then
|
||||||
|
echo "$0: no input file specified." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
# It's OK to call `install-sh -d' without argument.
|
||||||
|
# This can happen when creating conditional directories.
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
for src
|
||||||
|
do
|
||||||
|
# Protect names starting with `-'.
|
||||||
|
case $src in
|
||||||
|
-*) src=./$src ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if test -n "$dir_arg"; then
|
||||||
|
dst=$src
|
||||||
|
src=
|
||||||
|
|
||||||
|
if test -d "$dst"; then
|
||||||
|
mkdircmd=:
|
||||||
|
chmodcmd=
|
||||||
|
else
|
||||||
|
mkdircmd=$mkdirprog
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
|
||||||
|
# might cause directories to be created, which would be especially bad
|
||||||
|
# if $src (and thus $dsttmp) contains '*'.
|
||||||
|
if test ! -f "$src" && test ! -d "$src"; then
|
||||||
|
echo "$0: $src does not exist." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -z "$dstarg"; then
|
||||||
|
echo "$0: no destination specified." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
dst=$dstarg
|
||||||
|
# Protect names starting with `-'.
|
||||||
|
case $dst in
|
||||||
|
-*) dst=./$dst ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# If destination is a directory, append the input filename; won't work
|
||||||
|
# if double slashes aren't ignored.
|
||||||
|
if test -d "$dst"; then
|
||||||
|
if test -n "$no_target_directory"; then
|
||||||
|
echo "$0: $dstarg: Is a directory" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
dst=$dst/`basename "$src"`
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# This sed command emulates the dirname command.
|
||||||
|
dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
|
||||||
|
|
||||||
|
# Make sure that the destination directory exists.
|
||||||
|
|
||||||
|
# Skip lots of stat calls in the usual case.
|
||||||
|
if test ! -d "$dstdir"; then
|
||||||
|
defaultIFS='
|
||||||
|
'
|
||||||
|
IFS="${IFS-$defaultIFS}"
|
||||||
|
|
||||||
|
oIFS=$IFS
|
||||||
|
# Some sh's can't handle IFS=/ for some reason.
|
||||||
|
IFS='%'
|
||||||
|
set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
|
||||||
|
shift
|
||||||
|
IFS=$oIFS
|
||||||
|
|
||||||
|
pathcomp=
|
||||||
|
|
||||||
|
while test $# -ne 0 ; do
|
||||||
|
pathcomp=$pathcomp$1
|
||||||
|
shift
|
||||||
|
if test ! -d "$pathcomp"; then
|
||||||
|
$mkdirprog "$pathcomp"
|
||||||
|
# mkdir can fail with a `File exist' error in case several
|
||||||
|
# install-sh are creating the directory concurrently. This
|
||||||
|
# is OK.
|
||||||
|
test -d "$pathcomp" || exit
|
||||||
|
fi
|
||||||
|
pathcomp=$pathcomp/
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -n "$dir_arg"; then
|
||||||
|
$doit $mkdircmd "$dst" \
|
||||||
|
&& { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
|
||||||
|
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
|
||||||
|
&& { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
|
||||||
|
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
|
||||||
|
|
||||||
|
else
|
||||||
|
dstfile=`basename "$dst"`
|
||||||
|
|
||||||
|
# Make a couple of temp file names in the proper directory.
|
||||||
|
dsttmp=$dstdir/_inst.$$_
|
||||||
|
rmtmp=$dstdir/_rm.$$_
|
||||||
|
|
||||||
|
# Trap to clean up those temp files at exit.
|
||||||
|
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
|
||||||
|
trap '(exit $?); exit' 1 2 13 15
|
||||||
|
|
||||||
|
# Copy the file name to the temp name.
|
||||||
|
$doit $cpprog "$src" "$dsttmp" &&
|
||||||
|
|
||||||
|
# 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 $cpprog $src $dsttmp" command.
|
||||||
|
#
|
||||||
|
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
|
||||||
|
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
|
||||||
|
&& { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
|
||||||
|
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
|
||||||
|
|
||||||
|
# Now rename the file to the real destination.
|
||||||
|
{ $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
|
||||||
|
|| {
|
||||||
|
# The rename failed, perhaps because mv can't rename something else
|
||||||
|
# to itself, or perhaps because mv is so ancient that it does not
|
||||||
|
# support -f.
|
||||||
|
|
||||||
|
# Now remove or move aside any old file at destination location.
|
||||||
|
# We try this two ways since rm can't unlink itself on some
|
||||||
|
# systems and the destination file might be busy for other
|
||||||
|
# reasons. In this case, the final cleanup might fail but the new
|
||||||
|
# file should still install successfully.
|
||||||
|
{
|
||||||
|
if test -f "$dstdir/$dstfile"; then
|
||||||
|
$doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
|
||||||
|
|| $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
|
||||||
|
|| {
|
||||||
|
echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
|
||||||
|
(exit 1); exit 1
|
||||||
|
}
|
||||||
|
else
|
||||||
|
:
|
||||||
|
fi
|
||||||
|
} &&
|
||||||
|
|
||||||
|
# Now rename the file to the real destination.
|
||||||
|
$doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fi || { (exit 1); exit 1; }
|
||||||
|
done
|
||||||
|
|
||||||
|
# The final little trick to "correctly" pass the exit status to the exit trap.
|
||||||
|
{
|
||||||
|
(exit 0); exit 0
|
||||||
|
}
|
||||||
|
|
||||||
|
# Local variables:
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "scriptversion="
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
|
# time-stamp-end: "$"
|
||||||
|
# End:
|
|
@ -0,0 +1,74 @@
|
||||||
|
dnl GTEST_LIB_CHECK([minimum version [,
|
||||||
|
dnl action if found [,action if not found]]])
|
||||||
|
dnl
|
||||||
|
dnl Check for the presence of the Google Test library, optionally at a minimum
|
||||||
|
dnl version, and indicate a viable version with the HAVE_GTEST flag. It defines
|
||||||
|
dnl standard variables for substitution including GTEST_CPPFLAGS,
|
||||||
|
dnl GTEST_CXXFLAGS, GTEST_LDFLAGS, and GTEST_LIBS. It also defines
|
||||||
|
dnl GTEST_VERSION as the version of Google Test found. Finally, it provides
|
||||||
|
dnl optional custom action slots in the event GTEST is found or not.
|
||||||
|
AC_DEFUN([GTEST_LIB_CHECK],
|
||||||
|
[
|
||||||
|
dnl Provide a flag to enable or disable Google Test usage.
|
||||||
|
AC_ARG_ENABLE([gtest],
|
||||||
|
[AS_HELP_STRING([--enable-gtest],
|
||||||
|
[Enable tests using the Google C++ Testing Framework.
|
||||||
|
(Default is enabled.)])],
|
||||||
|
[],
|
||||||
|
[enable_gtest=])
|
||||||
|
AC_ARG_VAR([GTEST_CONFIG],
|
||||||
|
[The exact path of Google Test's 'gtest-config' script.])
|
||||||
|
AC_ARG_VAR([GTEST_CPPFLAGS],
|
||||||
|
[C-like preprocessor flags for Google Test.])
|
||||||
|
AC_ARG_VAR([GTEST_CXXFLAGS],
|
||||||
|
[C++ compile flags for Google Test.])
|
||||||
|
AC_ARG_VAR([GTEST_LDFLAGS],
|
||||||
|
[Linker path and option flags for Google Test.])
|
||||||
|
AC_ARG_VAR([GTEST_LIBS],
|
||||||
|
[Library linking flags for Google Test.])
|
||||||
|
AC_ARG_VAR([GTEST_VERSION],
|
||||||
|
[The version of Google Test available.])
|
||||||
|
HAVE_GTEST="no"
|
||||||
|
AS_IF([test "x${enable_gtest}" != "xno"],
|
||||||
|
[AC_MSG_CHECKING([for 'gtest-config'])
|
||||||
|
AS_IF([test "x${enable_gtest}" = "xyes"],
|
||||||
|
[AS_IF([test -x "${enable_gtest}/scripts/gtest-config"],
|
||||||
|
[GTEST_CONFIG="${enable_gtest}/scripts/gtest-config"],
|
||||||
|
[GTEST_CONFIG="${enable_gtest}/bin/gtest-config"])
|
||||||
|
AS_IF([test -x "${GTEST_CONFIG}"], [],
|
||||||
|
[AC_MSG_RESULT([no])
|
||||||
|
AC_MSG_ERROR([dnl
|
||||||
|
Unable to locate either a built or installed Google Test.
|
||||||
|
The specific location '${enable_gtest}' was provided for a built or installed
|
||||||
|
Google Test, but no 'gtest-config' script could be found at this location.])
|
||||||
|
])],
|
||||||
|
[AC_PATH_PROG([GTEST_CONFIG], [gtest-config])])
|
||||||
|
AS_IF([test -x "${GTEST_CONFIG}"],
|
||||||
|
[AC_MSG_RESULT([${GTEST_CONFIG}])
|
||||||
|
m4_ifval([$1],
|
||||||
|
[_gtest_min_version="--min-version=$1"
|
||||||
|
AC_MSG_CHECKING([for Google Test at least version >= $1])],
|
||||||
|
[_gtest_min_version="--min-version=0"
|
||||||
|
AC_MSG_CHECKING([for Google Test])])
|
||||||
|
AS_IF([${GTEST_CONFIG} ${_gtest_min_version}],
|
||||||
|
[AC_MSG_RESULT([yes])
|
||||||
|
HAVE_GTEST='yes'],
|
||||||
|
[AC_MSG_RESULT([no])])],
|
||||||
|
[AC_MSG_RESULT([no])])
|
||||||
|
AS_IF([test "x${HAVE_GTEST}" = "xyes"],
|
||||||
|
[GTEST_CPPFLAGS=`${GTEST_CONFIG} --cppflags`
|
||||||
|
GTEST_CXXFLAGS=`${GTEST_CONFIG} --cxxflags`
|
||||||
|
GTEST_LDFLAGS=`${GTEST_CONFIG} --ldflags`
|
||||||
|
GTEST_LIBS=`${GTEST_CONFIG} --libs`
|
||||||
|
GTEST_VERSION=`${GTEST_CONFIG} --version`
|
||||||
|
AC_DEFINE([HAVE_GTEST],[1],[Defined when Google Test is available.])],
|
||||||
|
[AS_IF([test "x${enable_gtest}" = "xyes"],
|
||||||
|
[AC_MSG_ERROR([dnl
|
||||||
|
Google Test was enabled, but no viable version could be found.])
|
||||||
|
])])])
|
||||||
|
AC_SUBST([HAVE_GTEST])
|
||||||
|
AM_CONDITIONAL([HAVE_GTEST],[test "x$HAVE_GTEST" = "xyes"])
|
||||||
|
AS_IF([test "x$HAVE_GTEST" = "xyes"],
|
||||||
|
[m4_ifval([$2], [$2])],
|
||||||
|
[m4_ifval([$3], [$3])])
|
||||||
|
])
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,368 @@
|
||||||
|
# Helper functions for option handling. -*- Autoconf -*-
|
||||||
|
#
|
||||||
|
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
|
||||||
|
# Written by Gary V. Vaughan, 2004
|
||||||
|
#
|
||||||
|
# This file is free software; the Free Software Foundation gives
|
||||||
|
# unlimited permission to copy and/or distribute it, with or without
|
||||||
|
# modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# serial 6 ltoptions.m4
|
||||||
|
|
||||||
|
# This is to help aclocal find these macros, as it can't see m4_define.
|
||||||
|
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
|
||||||
|
|
||||||
|
|
||||||
|
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
|
||||||
|
# ------------------------------------------
|
||||||
|
m4_define([_LT_MANGLE_OPTION],
|
||||||
|
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
|
||||||
|
|
||||||
|
|
||||||
|
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
|
||||||
|
# ---------------------------------------
|
||||||
|
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
|
||||||
|
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
|
||||||
|
# saved as a flag.
|
||||||
|
m4_define([_LT_SET_OPTION],
|
||||||
|
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
|
||||||
|
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
|
||||||
|
_LT_MANGLE_DEFUN([$1], [$2]),
|
||||||
|
[m4_warning([Unknown $1 option `$2'])])[]dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
|
||||||
|
# ------------------------------------------------------------
|
||||||
|
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
||||||
|
m4_define([_LT_IF_OPTION],
|
||||||
|
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
|
||||||
|
|
||||||
|
|
||||||
|
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
|
||||||
|
# -------------------------------------------------------
|
||||||
|
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
|
||||||
|
# are set.
|
||||||
|
m4_define([_LT_UNLESS_OPTIONS],
|
||||||
|
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
|
||||||
|
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
|
||||||
|
[m4_define([$0_found])])])[]dnl
|
||||||
|
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
|
||||||
|
])[]dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
|
||||||
|
# ----------------------------------------
|
||||||
|
# OPTION-LIST is a space-separated list of Libtool options associated
|
||||||
|
# with MACRO-NAME. If any OPTION has a matching handler declared with
|
||||||
|
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
|
||||||
|
# the unknown option and exit.
|
||||||
|
m4_defun([_LT_SET_OPTIONS],
|
||||||
|
[# Set options
|
||||||
|
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
|
||||||
|
[_LT_SET_OPTION([$1], _LT_Option)])
|
||||||
|
|
||||||
|
m4_if([$1],[LT_INIT],[
|
||||||
|
dnl
|
||||||
|
dnl Simply set some default values (i.e off) if boolean options were not
|
||||||
|
dnl specified:
|
||||||
|
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
|
||||||
|
])
|
||||||
|
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
|
||||||
|
])
|
||||||
|
dnl
|
||||||
|
dnl If no reference was made to various pairs of opposing options, then
|
||||||
|
dnl we run the default mode handler for the pair. For example, if neither
|
||||||
|
dnl `shared' nor `disable-shared' was passed, we enable building of shared
|
||||||
|
dnl archives by default:
|
||||||
|
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
|
||||||
|
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
|
||||||
|
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
|
||||||
|
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
|
||||||
|
[_LT_ENABLE_FAST_INSTALL])
|
||||||
|
])
|
||||||
|
])# _LT_SET_OPTIONS
|
||||||
|
|
||||||
|
|
||||||
|
## --------------------------------- ##
|
||||||
|
## Macros to handle LT_INIT options. ##
|
||||||
|
## --------------------------------- ##
|
||||||
|
|
||||||
|
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
|
||||||
|
# -----------------------------------------
|
||||||
|
m4_define([_LT_MANGLE_DEFUN],
|
||||||
|
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
|
||||||
|
|
||||||
|
|
||||||
|
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
|
||||||
|
# -----------------------------------------------
|
||||||
|
m4_define([LT_OPTION_DEFINE],
|
||||||
|
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
|
||||||
|
])# LT_OPTION_DEFINE
|
||||||
|
|
||||||
|
|
||||||
|
# dlopen
|
||||||
|
# ------
|
||||||
|
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
|
||||||
|
])
|
||||||
|
|
||||||
|
AU_DEFUN([AC_LIBTOOL_DLOPEN],
|
||||||
|
[_LT_SET_OPTION([LT_INIT], [dlopen])
|
||||||
|
AC_DIAGNOSE([obsolete],
|
||||||
|
[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
||||||
|
put the `dlopen' option into LT_INIT's first parameter.])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl aclocal-1.4 backwards compatibility:
|
||||||
|
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
|
||||||
|
|
||||||
|
|
||||||
|
# win32-dll
|
||||||
|
# ---------
|
||||||
|
# Declare package support for building win32 dll's.
|
||||||
|
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
|
||||||
|
[enable_win32_dll=yes
|
||||||
|
|
||||||
|
case $host in
|
||||||
|
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
|
||||||
|
AC_CHECK_TOOL(AS, as, false)
|
||||||
|
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
|
||||||
|
AC_CHECK_TOOL(OBJDUMP, objdump, false)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
test -z "$AS" && AS=as
|
||||||
|
_LT_DECL([], [AS], [0], [Assembler program])dnl
|
||||||
|
|
||||||
|
test -z "$DLLTOOL" && DLLTOOL=dlltool
|
||||||
|
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
|
||||||
|
|
||||||
|
test -z "$OBJDUMP" && OBJDUMP=objdump
|
||||||
|
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
|
||||||
|
])# win32-dll
|
||||||
|
|
||||||
|
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
|
||||||
|
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
||||||
|
_LT_SET_OPTION([LT_INIT], [win32-dll])
|
||||||
|
AC_DIAGNOSE([obsolete],
|
||||||
|
[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
||||||
|
put the `win32-dll' option into LT_INIT's first parameter.])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl aclocal-1.4 backwards compatibility:
|
||||||
|
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
|
||||||
|
|
||||||
|
|
||||||
|
# _LT_ENABLE_SHARED([DEFAULT])
|
||||||
|
# ----------------------------
|
||||||
|
# implement the --enable-shared flag, and supports the `shared' and
|
||||||
|
# `disable-shared' LT_INIT options.
|
||||||
|
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
||||||
|
m4_define([_LT_ENABLE_SHARED],
|
||||||
|
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
|
||||||
|
AC_ARG_ENABLE([shared],
|
||||||
|
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
|
||||||
|
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
|
||||||
|
[p=${PACKAGE-default}
|
||||||
|
case $enableval in
|
||||||
|
yes) enable_shared=yes ;;
|
||||||
|
no) enable_shared=no ;;
|
||||||
|
*)
|
||||||
|
enable_shared=no
|
||||||
|
# Look at the argument we got. We use all the common list separators.
|
||||||
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
||||||
|
for pkg in $enableval; do
|
||||||
|
IFS="$lt_save_ifs"
|
||||||
|
if test "X$pkg" = "X$p"; then
|
||||||
|
enable_shared=yes
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
IFS="$lt_save_ifs"
|
||||||
|
;;
|
||||||
|
esac],
|
||||||
|
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
|
||||||
|
|
||||||
|
_LT_DECL([build_libtool_libs], [enable_shared], [0],
|
||||||
|
[Whether or not to build shared libraries])
|
||||||
|
])# _LT_ENABLE_SHARED
|
||||||
|
|
||||||
|
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
|
||||||
|
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
|
||||||
|
|
||||||
|
# Old names:
|
||||||
|
AC_DEFUN([AC_ENABLE_SHARED],
|
||||||
|
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN([AC_DISABLE_SHARED],
|
||||||
|
[_LT_SET_OPTION([LT_INIT], [disable-shared])
|
||||||
|
])
|
||||||
|
|
||||||
|
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
|
||||||
|
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
|
||||||
|
|
||||||
|
dnl aclocal-1.4 backwards compatibility:
|
||||||
|
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
|
||||||
|
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# _LT_ENABLE_STATIC([DEFAULT])
|
||||||
|
# ----------------------------
|
||||||
|
# implement the --enable-static flag, and support the `static' and
|
||||||
|
# `disable-static' LT_INIT options.
|
||||||
|
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
||||||
|
m4_define([_LT_ENABLE_STATIC],
|
||||||
|
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
|
||||||
|
AC_ARG_ENABLE([static],
|
||||||
|
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
|
||||||
|
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
|
||||||
|
[p=${PACKAGE-default}
|
||||||
|
case $enableval in
|
||||||
|
yes) enable_static=yes ;;
|
||||||
|
no) enable_static=no ;;
|
||||||
|
*)
|
||||||
|
enable_static=no
|
||||||
|
# Look at the argument we got. We use all the common list separators.
|
||||||
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
||||||
|
for pkg in $enableval; do
|
||||||
|
IFS="$lt_save_ifs"
|
||||||
|
if test "X$pkg" = "X$p"; then
|
||||||
|
enable_static=yes
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
IFS="$lt_save_ifs"
|
||||||
|
;;
|
||||||
|
esac],
|
||||||
|
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
|
||||||
|
|
||||||
|
_LT_DECL([build_old_libs], [enable_static], [0],
|
||||||
|
[Whether or not to build static libraries])
|
||||||
|
])# _LT_ENABLE_STATIC
|
||||||
|
|
||||||
|
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
|
||||||
|
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
|
||||||
|
|
||||||
|
# Old names:
|
||||||
|
AC_DEFUN([AC_ENABLE_STATIC],
|
||||||
|
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN([AC_DISABLE_STATIC],
|
||||||
|
[_LT_SET_OPTION([LT_INIT], [disable-static])
|
||||||
|
])
|
||||||
|
|
||||||
|
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
|
||||||
|
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
|
||||||
|
|
||||||
|
dnl aclocal-1.4 backwards compatibility:
|
||||||
|
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
|
||||||
|
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
|
||||||
|
# ----------------------------------
|
||||||
|
# implement the --enable-fast-install flag, and support the `fast-install'
|
||||||
|
# and `disable-fast-install' LT_INIT options.
|
||||||
|
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
||||||
|
m4_define([_LT_ENABLE_FAST_INSTALL],
|
||||||
|
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
|
||||||
|
AC_ARG_ENABLE([fast-install],
|
||||||
|
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
|
||||||
|
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
|
||||||
|
[p=${PACKAGE-default}
|
||||||
|
case $enableval in
|
||||||
|
yes) enable_fast_install=yes ;;
|
||||||
|
no) enable_fast_install=no ;;
|
||||||
|
*)
|
||||||
|
enable_fast_install=no
|
||||||
|
# Look at the argument we got. We use all the common list separators.
|
||||||
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
||||||
|
for pkg in $enableval; do
|
||||||
|
IFS="$lt_save_ifs"
|
||||||
|
if test "X$pkg" = "X$p"; then
|
||||||
|
enable_fast_install=yes
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
IFS="$lt_save_ifs"
|
||||||
|
;;
|
||||||
|
esac],
|
||||||
|
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
|
||||||
|
|
||||||
|
_LT_DECL([fast_install], [enable_fast_install], [0],
|
||||||
|
[Whether or not to optimize for fast installation])dnl
|
||||||
|
])# _LT_ENABLE_FAST_INSTALL
|
||||||
|
|
||||||
|
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
|
||||||
|
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
|
||||||
|
|
||||||
|
# Old names:
|
||||||
|
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
|
||||||
|
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
|
||||||
|
AC_DIAGNOSE([obsolete],
|
||||||
|
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
|
||||||
|
the `fast-install' option into LT_INIT's first parameter.])
|
||||||
|
])
|
||||||
|
|
||||||
|
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
|
||||||
|
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
|
||||||
|
AC_DIAGNOSE([obsolete],
|
||||||
|
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
|
||||||
|
the `disable-fast-install' option into LT_INIT's first parameter.])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl aclocal-1.4 backwards compatibility:
|
||||||
|
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
|
||||||
|
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
|
||||||
|
|
||||||
|
|
||||||
|
# _LT_WITH_PIC([MODE])
|
||||||
|
# --------------------
|
||||||
|
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
|
||||||
|
# LT_INIT options.
|
||||||
|
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
|
||||||
|
m4_define([_LT_WITH_PIC],
|
||||||
|
[AC_ARG_WITH([pic],
|
||||||
|
[AS_HELP_STRING([--with-pic],
|
||||||
|
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
|
||||||
|
[pic_mode="$withval"],
|
||||||
|
[pic_mode=default])
|
||||||
|
|
||||||
|
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
|
||||||
|
|
||||||
|
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
|
||||||
|
])# _LT_WITH_PIC
|
||||||
|
|
||||||
|
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
|
||||||
|
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
|
||||||
|
|
||||||
|
# Old name:
|
||||||
|
AU_DEFUN([AC_LIBTOOL_PICMODE],
|
||||||
|
[_LT_SET_OPTION([LT_INIT], [pic-only])
|
||||||
|
AC_DIAGNOSE([obsolete],
|
||||||
|
[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
||||||
|
put the `pic-only' option into LT_INIT's first parameter.])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl aclocal-1.4 backwards compatibility:
|
||||||
|
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
|
||||||
|
|
||||||
|
## ----------------- ##
|
||||||
|
## LTDL_INIT Options ##
|
||||||
|
## ----------------- ##
|
||||||
|
|
||||||
|
m4_define([_LTDL_MODE], [])
|
||||||
|
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
|
||||||
|
[m4_define([_LTDL_MODE], [nonrecursive])])
|
||||||
|
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
|
||||||
|
[m4_define([_LTDL_MODE], [recursive])])
|
||||||
|
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
|
||||||
|
[m4_define([_LTDL_MODE], [subproject])])
|
||||||
|
|
||||||
|
m4_define([_LTDL_TYPE], [])
|
||||||
|
LT_OPTION_DEFINE([LTDL_INIT], [installable],
|
||||||
|
[m4_define([_LTDL_TYPE], [installable])])
|
||||||
|
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
|
||||||
|
[m4_define([_LTDL_TYPE], [convenience])])
|
|
@ -0,0 +1,123 @@
|
||||||
|
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
|
||||||
|
#
|
||||||
|
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
|
||||||
|
# Written by Gary V. Vaughan, 2004
|
||||||
|
#
|
||||||
|
# This file is free software; the Free Software Foundation gives
|
||||||
|
# unlimited permission to copy and/or distribute it, with or without
|
||||||
|
# modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# serial 6 ltsugar.m4
|
||||||
|
|
||||||
|
# This is to help aclocal find these macros, as it can't see m4_define.
|
||||||
|
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
|
||||||
|
|
||||||
|
|
||||||
|
# lt_join(SEP, ARG1, [ARG2...])
|
||||||
|
# -----------------------------
|
||||||
|
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
|
||||||
|
# associated separator.
|
||||||
|
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
|
||||||
|
# versions in m4sugar had bugs.
|
||||||
|
m4_define([lt_join],
|
||||||
|
[m4_if([$#], [1], [],
|
||||||
|
[$#], [2], [[$2]],
|
||||||
|
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
|
||||||
|
m4_define([_lt_join],
|
||||||
|
[m4_if([$#$2], [2], [],
|
||||||
|
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
|
||||||
|
|
||||||
|
|
||||||
|
# lt_car(LIST)
|
||||||
|
# lt_cdr(LIST)
|
||||||
|
# ------------
|
||||||
|
# Manipulate m4 lists.
|
||||||
|
# These macros are necessary as long as will still need to support
|
||||||
|
# Autoconf-2.59 which quotes differently.
|
||||||
|
m4_define([lt_car], [[$1]])
|
||||||
|
m4_define([lt_cdr],
|
||||||
|
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
|
||||||
|
[$#], 1, [],
|
||||||
|
[m4_dquote(m4_shift($@))])])
|
||||||
|
m4_define([lt_unquote], $1)
|
||||||
|
|
||||||
|
|
||||||
|
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
|
||||||
|
# ------------------------------------------
|
||||||
|
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
|
||||||
|
# Note that neither SEPARATOR nor STRING are expanded; they are appended
|
||||||
|
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
|
||||||
|
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
|
||||||
|
# than defined and empty).
|
||||||
|
#
|
||||||
|
# This macro is needed until we can rely on Autoconf 2.62, since earlier
|
||||||
|
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
|
||||||
|
m4_define([lt_append],
|
||||||
|
[m4_define([$1],
|
||||||
|
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
|
||||||
|
# ----------------------------------------------------------
|
||||||
|
# Produce a SEP delimited list of all paired combinations of elements of
|
||||||
|
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
|
||||||
|
# has the form PREFIXmINFIXSUFFIXn.
|
||||||
|
# Needed until we can rely on m4_combine added in Autoconf 2.62.
|
||||||
|
m4_define([lt_combine],
|
||||||
|
[m4_if(m4_eval([$# > 3]), [1],
|
||||||
|
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
|
||||||
|
[[m4_foreach([_Lt_prefix], [$2],
|
||||||
|
[m4_foreach([_Lt_suffix],
|
||||||
|
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
|
||||||
|
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
|
||||||
|
|
||||||
|
|
||||||
|
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
|
||||||
|
# -----------------------------------------------------------------------
|
||||||
|
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
|
||||||
|
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
|
||||||
|
m4_define([lt_if_append_uniq],
|
||||||
|
[m4_ifdef([$1],
|
||||||
|
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
|
||||||
|
[lt_append([$1], [$2], [$3])$4],
|
||||||
|
[$5])],
|
||||||
|
[lt_append([$1], [$2], [$3])$4])])
|
||||||
|
|
||||||
|
|
||||||
|
# lt_dict_add(DICT, KEY, VALUE)
|
||||||
|
# -----------------------------
|
||||||
|
m4_define([lt_dict_add],
|
||||||
|
[m4_define([$1($2)], [$3])])
|
||||||
|
|
||||||
|
|
||||||
|
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
|
||||||
|
# --------------------------------------------
|
||||||
|
m4_define([lt_dict_add_subkey],
|
||||||
|
[m4_define([$1($2:$3)], [$4])])
|
||||||
|
|
||||||
|
|
||||||
|
# lt_dict_fetch(DICT, KEY, [SUBKEY])
|
||||||
|
# ----------------------------------
|
||||||
|
m4_define([lt_dict_fetch],
|
||||||
|
[m4_ifval([$3],
|
||||||
|
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
|
||||||
|
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
|
||||||
|
|
||||||
|
|
||||||
|
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
|
||||||
|
# -----------------------------------------------------------------
|
||||||
|
m4_define([lt_if_dict_fetch],
|
||||||
|
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
|
||||||
|
[$5],
|
||||||
|
[$6])])
|
||||||
|
|
||||||
|
|
||||||
|
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
|
||||||
|
# --------------------------------------------------------------
|
||||||
|
m4_define([lt_dict_filter],
|
||||||
|
[m4_if([$5], [], [],
|
||||||
|
[lt_join(m4_quote(m4_default([$4], [[, ]])),
|
||||||
|
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
|
||||||
|
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
|
||||||
|
])
|
|
@ -0,0 +1,23 @@
|
||||||
|
# ltversion.m4 -- version numbers -*- Autoconf -*-
|
||||||
|
#
|
||||||
|
# Copyright (C) 2004 Free Software Foundation, Inc.
|
||||||
|
# Written by Scott James Remnant, 2004
|
||||||
|
#
|
||||||
|
# This file is free software; the Free Software Foundation gives
|
||||||
|
# unlimited permission to copy and/or distribute it, with or without
|
||||||
|
# modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# Generated from ltversion.in.
|
||||||
|
|
||||||
|
# serial 3017 ltversion.m4
|
||||||
|
# This file is part of GNU Libtool
|
||||||
|
|
||||||
|
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
|
||||||
|
m4_define([LT_PACKAGE_REVISION], [1.3017])
|
||||||
|
|
||||||
|
AC_DEFUN([LTVERSION_VERSION],
|
||||||
|
[macro_version='2.2.6b'
|
||||||
|
macro_revision='1.3017'
|
||||||
|
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
|
||||||
|
_LT_DECL(, macro_revision, 0)
|
||||||
|
])
|
|
@ -0,0 +1,92 @@
|
||||||
|
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
|
||||||
|
#
|
||||||
|
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
|
||||||
|
# Written by Scott James Remnant, 2004.
|
||||||
|
#
|
||||||
|
# This file is free software; the Free Software Foundation gives
|
||||||
|
# unlimited permission to copy and/or distribute it, with or without
|
||||||
|
# modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# serial 4 lt~obsolete.m4
|
||||||
|
|
||||||
|
# These exist entirely to fool aclocal when bootstrapping libtool.
|
||||||
|
#
|
||||||
|
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
|
||||||
|
# which have later been changed to m4_define as they aren't part of the
|
||||||
|
# exported API, or moved to Autoconf or Automake where they belong.
|
||||||
|
#
|
||||||
|
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
|
||||||
|
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
|
||||||
|
# using a macro with the same name in our local m4/libtool.m4 it'll
|
||||||
|
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
|
||||||
|
# and doesn't know about Autoconf macros at all.)
|
||||||
|
#
|
||||||
|
# So we provide this file, which has a silly filename so it's always
|
||||||
|
# included after everything else. This provides aclocal with the
|
||||||
|
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
|
||||||
|
# because those macros already exist, or will be overwritten later.
|
||||||
|
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
|
||||||
|
#
|
||||||
|
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
|
||||||
|
# Yes, that means every name once taken will need to remain here until
|
||||||
|
# we give up compatibility with versions before 1.7, at which point
|
||||||
|
# we need to keep only those names which we still refer to.
|
||||||
|
|
||||||
|
# This is to help aclocal find these macros, as it can't see m4_define.
|
||||||
|
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
|
||||||
|
|
||||||
|
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
|
||||||
|
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
|
||||||
|
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
|
||||||
|
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
|
||||||
|
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
|
||||||
|
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
|
||||||
|
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
|
||||||
|
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
|
||||||
|
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
|
||||||
|
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
|
||||||
|
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
|
||||||
|
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
|
||||||
|
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
|
||||||
|
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
|
||||||
|
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
|
||||||
|
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
|
||||||
|
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
|
||||||
|
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
|
||||||
|
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
|
||||||
|
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
|
||||||
|
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
|
||||||
|
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
|
||||||
|
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
|
||||||
|
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
|
||||||
|
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
|
||||||
|
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
|
||||||
|
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
|
||||||
|
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
|
||||||
|
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
|
||||||
|
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
|
||||||
|
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
|
||||||
|
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
|
||||||
|
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
|
||||||
|
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
|
||||||
|
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
|
|
@ -0,0 +1,360 @@
|
||||||
|
#! /bin/sh
|
||||||
|
# Common stub for a few missing GNU programs while installing.
|
||||||
|
|
||||||
|
scriptversion=2005-06-08.21
|
||||||
|
|
||||||
|
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
|
||||||
|
# Free Software Foundation, Inc.
|
||||||
|
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
|
||||||
|
|
||||||
|
# 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, 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, write to the Free Software
|
||||||
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
# 02110-1301, USA.
|
||||||
|
|
||||||
|
# As a special exception to the GNU General Public License, if you
|
||||||
|
# distribute this file as part of a program that contains a
|
||||||
|
# configuration script generated by Autoconf, you may include it under
|
||||||
|
# the same distribution terms that you use for the rest of that program.
|
||||||
|
|
||||||
|
if test $# -eq 0; then
|
||||||
|
echo 1>&2 "Try \`$0 --help' for more information"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
run=:
|
||||||
|
|
||||||
|
# In the cases where this matters, `missing' is being run in the
|
||||||
|
# srcdir already.
|
||||||
|
if test -f configure.ac; then
|
||||||
|
configure_ac=configure.ac
|
||||||
|
else
|
||||||
|
configure_ac=configure.in
|
||||||
|
fi
|
||||||
|
|
||||||
|
msg="missing on your system"
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
--run)
|
||||||
|
# Try to run requested program, and just exit if it succeeds.
|
||||||
|
run=
|
||||||
|
shift
|
||||||
|
"$@" && exit 0
|
||||||
|
# Exit code 63 means version mismatch. This often happens
|
||||||
|
# when the user try to use an ancient version of a tool on
|
||||||
|
# a file that requires a minimum version. In this case we
|
||||||
|
# we should proceed has if the program had been absent, or
|
||||||
|
# if --run hadn't been passed.
|
||||||
|
if test $? = 63; then
|
||||||
|
run=:
|
||||||
|
msg="probably too old"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
-h|--h|--he|--hel|--help)
|
||||||
|
echo "\
|
||||||
|
$0 [OPTION]... PROGRAM [ARGUMENT]...
|
||||||
|
|
||||||
|
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
|
||||||
|
error status if there is no known handling for PROGRAM.
|
||||||
|
|
||||||
|
Options:
|
||||||
|
-h, --help display this help and exit
|
||||||
|
-v, --version output version information and exit
|
||||||
|
--run try to run the given command, and emulate it if it fails
|
||||||
|
|
||||||
|
Supported PROGRAM values:
|
||||||
|
aclocal touch file \`aclocal.m4'
|
||||||
|
autoconf touch file \`configure'
|
||||||
|
autoheader touch file \`config.h.in'
|
||||||
|
automake touch all \`Makefile.in' files
|
||||||
|
bison create \`y.tab.[ch]', if possible, from existing .[ch]
|
||||||
|
flex create \`lex.yy.c', if possible, from existing .c
|
||||||
|
help2man touch the output file
|
||||||
|
lex create \`lex.yy.c', if possible, from existing .c
|
||||||
|
makeinfo touch the output file
|
||||||
|
tar try tar, gnutar, gtar, then tar without non-portable flags
|
||||||
|
yacc create \`y.tab.[ch]', if possible, from existing .[ch]
|
||||||
|
|
||||||
|
Send bug reports to <bug-automake@gnu.org>."
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
|
||||||
|
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
|
||||||
|
echo "missing $scriptversion (GNU Automake)"
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
|
||||||
|
-*)
|
||||||
|
echo 1>&2 "$0: Unknown \`$1' option"
|
||||||
|
echo 1>&2 "Try \`$0 --help' for more information"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Now exit if we have it, but it failed. Also exit now if we
|
||||||
|
# don't have it and --version was passed (most likely to detect
|
||||||
|
# the program).
|
||||||
|
case "$1" in
|
||||||
|
lex|yacc)
|
||||||
|
# Not GNU programs, they don't have --version.
|
||||||
|
;;
|
||||||
|
|
||||||
|
tar)
|
||||||
|
if test -n "$run"; then
|
||||||
|
echo 1>&2 "ERROR: \`tar' requires --run"
|
||||||
|
exit 1
|
||||||
|
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
||||||
|
# We have it, but it failed.
|
||||||
|
exit 1
|
||||||
|
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
|
||||||
|
# Could not run --version or --help. This is probably someone
|
||||||
|
# running `$TOOL --version' or `$TOOL --help' to check whether
|
||||||
|
# $TOOL exists and not knowing $TOOL uses missing.
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# If it does not exist, or fails to run (possibly an outdated version),
|
||||||
|
# try to emulate it.
|
||||||
|
case "$1" in
|
||||||
|
aclocal*)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
|
you modified \`acinclude.m4' or \`${configure_ac}'. You might want
|
||||||
|
to install the \`Automake' and \`Perl' packages. Grab them from
|
||||||
|
any GNU archive site."
|
||||||
|
touch aclocal.m4
|
||||||
|
;;
|
||||||
|
|
||||||
|
autoconf)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
|
you modified \`${configure_ac}'. You might want to install the
|
||||||
|
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU
|
||||||
|
archive site."
|
||||||
|
touch configure
|
||||||
|
;;
|
||||||
|
|
||||||
|
autoheader)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
|
you modified \`acconfig.h' or \`${configure_ac}'. You might want
|
||||||
|
to install the \`Autoconf' and \`GNU m4' packages. Grab them
|
||||||
|
from any GNU archive site."
|
||||||
|
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
|
||||||
|
test -z "$files" && files="config.h"
|
||||||
|
touch_files=
|
||||||
|
for f in $files; do
|
||||||
|
case "$f" in
|
||||||
|
*:*) touch_files="$touch_files "`echo "$f" |
|
||||||
|
sed -e 's/^[^:]*://' -e 's/:.*//'`;;
|
||||||
|
*) touch_files="$touch_files $f.in";;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
touch $touch_files
|
||||||
|
;;
|
||||||
|
|
||||||
|
automake*)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
|
you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
|
||||||
|
You might want to install the \`Automake' and \`Perl' packages.
|
||||||
|
Grab them from any GNU archive site."
|
||||||
|
find . -type f -name Makefile.am -print |
|
||||||
|
sed 's/\.am$/.in/' |
|
||||||
|
while read f; do touch "$f"; done
|
||||||
|
;;
|
||||||
|
|
||||||
|
autom4te)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is needed, but is $msg.
|
||||||
|
You might have modified some files without having the
|
||||||
|
proper tools for further handling them.
|
||||||
|
You can get \`$1' as part of \`Autoconf' from any GNU
|
||||||
|
archive site."
|
||||||
|
|
||||||
|
file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
|
||||||
|
test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
|
||||||
|
if test -f "$file"; then
|
||||||
|
touch $file
|
||||||
|
else
|
||||||
|
test -z "$file" || exec >$file
|
||||||
|
echo "#! /bin/sh"
|
||||||
|
echo "# Created by GNU Automake missing as a replacement of"
|
||||||
|
echo "# $ $@"
|
||||||
|
echo "exit 0"
|
||||||
|
chmod +x $file
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
bison|yacc)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' $msg. You should only need it if
|
||||||
|
you modified a \`.y' file. You may need the \`Bison' package
|
||||||
|
in order for those modifications to take effect. You can get
|
||||||
|
\`Bison' from any GNU archive site."
|
||||||
|
rm -f y.tab.c y.tab.h
|
||||||
|
if [ $# -ne 1 ]; then
|
||||||
|
eval LASTARG="\${$#}"
|
||||||
|
case "$LASTARG" in
|
||||||
|
*.y)
|
||||||
|
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
|
||||||
|
if [ -f "$SRCFILE" ]; then
|
||||||
|
cp "$SRCFILE" y.tab.c
|
||||||
|
fi
|
||||||
|
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
|
||||||
|
if [ -f "$SRCFILE" ]; then
|
||||||
|
cp "$SRCFILE" y.tab.h
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
if [ ! -f y.tab.h ]; then
|
||||||
|
echo >y.tab.h
|
||||||
|
fi
|
||||||
|
if [ ! -f y.tab.c ]; then
|
||||||
|
echo 'main() { return 0; }' >y.tab.c
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
lex|flex)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
|
you modified a \`.l' file. You may need the \`Flex' package
|
||||||
|
in order for those modifications to take effect. You can get
|
||||||
|
\`Flex' from any GNU archive site."
|
||||||
|
rm -f lex.yy.c
|
||||||
|
if [ $# -ne 1 ]; then
|
||||||
|
eval LASTARG="\${$#}"
|
||||||
|
case "$LASTARG" in
|
||||||
|
*.l)
|
||||||
|
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
|
||||||
|
if [ -f "$SRCFILE" ]; then
|
||||||
|
cp "$SRCFILE" lex.yy.c
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
if [ ! -f lex.yy.c ]; then
|
||||||
|
echo 'main() { return 0; }' >lex.yy.c
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
help2man)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
|
you modified a dependency of a manual page. You may need the
|
||||||
|
\`Help2man' package in order for those modifications to take
|
||||||
|
effect. You can get \`Help2man' from any GNU archive site."
|
||||||
|
|
||||||
|
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
|
||||||
|
if test -z "$file"; then
|
||||||
|
file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
|
||||||
|
fi
|
||||||
|
if [ -f "$file" ]; then
|
||||||
|
touch $file
|
||||||
|
else
|
||||||
|
test -z "$file" || exec >$file
|
||||||
|
echo ".ab help2man is required to generate this page"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
makeinfo)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
|
you modified a \`.texi' or \`.texinfo' file, or any other file
|
||||||
|
indirectly affecting the aspect of the manual. The spurious
|
||||||
|
call might also be the consequence of using a buggy \`make' (AIX,
|
||||||
|
DU, IRIX). You might want to install the \`Texinfo' package or
|
||||||
|
the \`GNU make' package. Grab either from any GNU archive site."
|
||||||
|
# The file to touch is that specified with -o ...
|
||||||
|
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
|
||||||
|
if test -z "$file"; then
|
||||||
|
# ... or it is the one specified with @setfilename ...
|
||||||
|
infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
|
||||||
|
file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
|
||||||
|
# ... or it is derived from the source name (dir/f.texi becomes f.info)
|
||||||
|
test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
|
||||||
|
fi
|
||||||
|
# If the file does not exist, the user really needs makeinfo;
|
||||||
|
# let's fail without touching anything.
|
||||||
|
test -f $file || exit 1
|
||||||
|
touch $file
|
||||||
|
;;
|
||||||
|
|
||||||
|
tar)
|
||||||
|
shift
|
||||||
|
|
||||||
|
# We have already tried tar in the generic part.
|
||||||
|
# Look for gnutar/gtar before invocation to avoid ugly error
|
||||||
|
# messages.
|
||||||
|
if (gnutar --version > /dev/null 2>&1); then
|
||||||
|
gnutar "$@" && exit 0
|
||||||
|
fi
|
||||||
|
if (gtar --version > /dev/null 2>&1); then
|
||||||
|
gtar "$@" && exit 0
|
||||||
|
fi
|
||||||
|
firstarg="$1"
|
||||||
|
if shift; then
|
||||||
|
case "$firstarg" in
|
||||||
|
*o*)
|
||||||
|
firstarg=`echo "$firstarg" | sed s/o//`
|
||||||
|
tar "$firstarg" "$@" && exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
case "$firstarg" in
|
||||||
|
*h*)
|
||||||
|
firstarg=`echo "$firstarg" | sed s/h//`
|
||||||
|
tar "$firstarg" "$@" && exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: I can't seem to be able to run \`tar' with the given arguments.
|
||||||
|
You may want to install GNU tar or Free paxutils, or check the
|
||||||
|
command line arguments."
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is needed, and is $msg.
|
||||||
|
You might have modified some files without having the
|
||||||
|
proper tools for further handling them. Check the \`README' file,
|
||||||
|
it often tells you about the needed prerequisites for installing
|
||||||
|
this package. You may also peek at any GNU archive site, in case
|
||||||
|
some other package would contain this missing \`$1' program."
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
# Local variables:
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "scriptversion="
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
|
# time-stamp-end: "$"
|
||||||
|
# End:
|
|
@ -0,0 +1,158 @@
|
||||||
|
#! /bin/sh
|
||||||
|
# mkinstalldirs --- make directory hierarchy
|
||||||
|
|
||||||
|
scriptversion=2005-06-29.22
|
||||||
|
|
||||||
|
# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
|
||||||
|
# Created: 1993-05-16
|
||||||
|
# Public domain.
|
||||||
|
#
|
||||||
|
# This file is maintained in Automake, please report
|
||||||
|
# bugs to <bug-automake@gnu.org> or send patches to
|
||||||
|
# <automake-patches@gnu.org>.
|
||||||
|
|
||||||
|
errstatus=0
|
||||||
|
dirmode=
|
||||||
|
|
||||||
|
usage="\
|
||||||
|
Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
|
||||||
|
|
||||||
|
Create each directory DIR (with mode MODE, if specified), including all
|
||||||
|
leading file name components.
|
||||||
|
|
||||||
|
Report bugs to <bug-automake@gnu.org>."
|
||||||
|
|
||||||
|
# process command line arguments
|
||||||
|
while test $# -gt 0 ; do
|
||||||
|
case $1 in
|
||||||
|
-h | --help | --h*) # -h for help
|
||||||
|
echo "$usage"
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
-m) # -m PERM arg
|
||||||
|
shift
|
||||||
|
test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
|
||||||
|
dirmode=$1
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
--version)
|
||||||
|
echo "$0 $scriptversion"
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
--) # stop option processing
|
||||||
|
shift
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
-*) # unknown option
|
||||||
|
echo "$usage" 1>&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
*) # first non-opt arg
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
for file
|
||||||
|
do
|
||||||
|
if test -d "$file"; then
|
||||||
|
shift
|
||||||
|
else
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
case $# in
|
||||||
|
0) exit 0 ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and
|
||||||
|
# mkdir -p a/c at the same time, both will detect that a is missing,
|
||||||
|
# one will create a, then the other will try to create a and die with
|
||||||
|
# a "File exists" error. This is a problem when calling mkinstalldirs
|
||||||
|
# from a parallel make. We use --version in the probe to restrict
|
||||||
|
# ourselves to GNU mkdir, which is thread-safe.
|
||||||
|
case $dirmode in
|
||||||
|
'')
|
||||||
|
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
|
||||||
|
echo "mkdir -p -- $*"
|
||||||
|
exec mkdir -p -- "$@"
|
||||||
|
else
|
||||||
|
# On NextStep and OpenStep, the `mkdir' command does not
|
||||||
|
# recognize any option. It will interpret all options as
|
||||||
|
# directories to create, and then abort because `.' already
|
||||||
|
# exists.
|
||||||
|
test -d ./-p && rmdir ./-p
|
||||||
|
test -d ./--version && rmdir ./--version
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 &&
|
||||||
|
test ! -d ./--version; then
|
||||||
|
echo "mkdir -m $dirmode -p -- $*"
|
||||||
|
exec mkdir -m "$dirmode" -p -- "$@"
|
||||||
|
else
|
||||||
|
# Clean up after NextStep and OpenStep mkdir.
|
||||||
|
for d in ./-m ./-p ./--version "./$dirmode";
|
||||||
|
do
|
||||||
|
test -d $d && rmdir $d
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
for file
|
||||||
|
do
|
||||||
|
case $file in
|
||||||
|
/*) pathcomp=/ ;;
|
||||||
|
*) pathcomp= ;;
|
||||||
|
esac
|
||||||
|
oIFS=$IFS
|
||||||
|
IFS=/
|
||||||
|
set fnord $file
|
||||||
|
shift
|
||||||
|
IFS=$oIFS
|
||||||
|
|
||||||
|
for d
|
||||||
|
do
|
||||||
|
test "x$d" = x && continue
|
||||||
|
|
||||||
|
pathcomp=$pathcomp$d
|
||||||
|
case $pathcomp in
|
||||||
|
-*) pathcomp=./$pathcomp ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if test ! -d "$pathcomp"; then
|
||||||
|
echo "mkdir $pathcomp"
|
||||||
|
|
||||||
|
mkdir "$pathcomp" || lasterr=$?
|
||||||
|
|
||||||
|
if test ! -d "$pathcomp"; then
|
||||||
|
errstatus=$lasterr
|
||||||
|
else
|
||||||
|
if test ! -z "$dirmode"; then
|
||||||
|
echo "chmod $dirmode $pathcomp"
|
||||||
|
lasterr=
|
||||||
|
chmod "$dirmode" "$pathcomp" || lasterr=$?
|
||||||
|
|
||||||
|
if test ! -z "$lasterr"; then
|
||||||
|
errstatus=$lasterr
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
pathcomp=$pathcomp/
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
|
exit $errstatus
|
||||||
|
|
||||||
|
# Local Variables:
|
||||||
|
# mode: shell-script
|
||||||
|
# sh-indentation: 2
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "scriptversion="
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
|
# time-stamp-end: "$"
|
||||||
|
# End:
|
|
@ -0,0 +1,136 @@
|
||||||
|
// Copyright 2008 Google Inc. All Rights Reserved.
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
//
|
||||||
|
// Internals shared between the snappy implementation and its unittest.
|
||||||
|
|
||||||
|
#ifndef UTIL_SNAPPY_SNAPPY_INTERNAL_H_
|
||||||
|
#define UTIL_SNAPPY_SNAPPY_INTERNAL_H_
|
||||||
|
|
||||||
|
#include "snappy-stubs-internal.h"
|
||||||
|
|
||||||
|
namespace snappy {
|
||||||
|
namespace internal {
|
||||||
|
|
||||||
|
class WorkingMemory {
|
||||||
|
public:
|
||||||
|
WorkingMemory() : large_table_(NULL) { }
|
||||||
|
~WorkingMemory() { delete[] large_table_; }
|
||||||
|
|
||||||
|
// Allocates and clears a hash table using memory in "*this",
|
||||||
|
// stores the number of buckets in "*table_size" and returns a pointer to
|
||||||
|
// the base of the hash table.
|
||||||
|
uint16* GetHashTable(size_t input_size, int* table_size);
|
||||||
|
|
||||||
|
private:
|
||||||
|
uint16 small_table_[1<<10]; // 2KB
|
||||||
|
uint16* large_table_; // Allocated only when needed
|
||||||
|
|
||||||
|
DISALLOW_COPY_AND_ASSIGN(WorkingMemory);
|
||||||
|
};
|
||||||
|
|
||||||
|
// Flat array compression that does not emit the "uncompressed length"
|
||||||
|
// prefix. Compresses "input" string to the "*op" buffer.
|
||||||
|
//
|
||||||
|
// REQUIRES: "input_length <= kBlockSize"
|
||||||
|
// REQUIRES: "op" points to an array of memory that is at least
|
||||||
|
// "MaxCompressedLength(input_length)" in size.
|
||||||
|
// REQUIRES: All elements in "table[0..table_size-1]" are initialized to zero.
|
||||||
|
// REQUIRES: "table_size" is a power of two
|
||||||
|
//
|
||||||
|
// Returns an "end" pointer into "op" buffer.
|
||||||
|
// "end - op" is the compressed size of "input".
|
||||||
|
char* CompressFragment(const char* input,
|
||||||
|
size_t input_length,
|
||||||
|
char* op,
|
||||||
|
uint16* table,
|
||||||
|
const int table_size);
|
||||||
|
|
||||||
|
// Return the largest n such that
|
||||||
|
//
|
||||||
|
// s1[0,n-1] == s2[0,n-1]
|
||||||
|
// and n <= (s2_limit - s2).
|
||||||
|
//
|
||||||
|
// Does not read *s2_limit or beyond.
|
||||||
|
// Does not read *(s1 + (s2_limit - s2)) or beyond.
|
||||||
|
// Requires that s2_limit >= s2.
|
||||||
|
//
|
||||||
|
// Separate implementation for x86_64, for speed. Uses the fact that
|
||||||
|
// x86_64 is little endian.
|
||||||
|
#if defined(ARCH_K8)
|
||||||
|
static inline int FindMatchLength(const char* s1,
|
||||||
|
const char* s2,
|
||||||
|
const char* s2_limit) {
|
||||||
|
DCHECK_GE(s2_limit, s2);
|
||||||
|
int matched = 0;
|
||||||
|
|
||||||
|
// Find out how long the match is. We loop over the data 64 bits at a
|
||||||
|
// time until we find a 64-bit block that doesn't match; then we find
|
||||||
|
// the first non-matching bit and use that to calculate the total
|
||||||
|
// length of the match.
|
||||||
|
while (PREDICT_TRUE(s2 <= s2_limit - 8)) {
|
||||||
|
if (PREDICT_FALSE(UNALIGNED_LOAD64(s2) == UNALIGNED_LOAD64(s1 + matched))) {
|
||||||
|
s2 += 8;
|
||||||
|
matched += 8;
|
||||||
|
} else {
|
||||||
|
// On current (mid-2008) Opteron models there is a 3% more
|
||||||
|
// efficient code sequence to find the first non-matching byte.
|
||||||
|
// However, what follows is ~10% better on Intel Core 2 and newer,
|
||||||
|
// and we expect AMD's bsf instruction to improve.
|
||||||
|
uint64 x = UNALIGNED_LOAD64(s2) ^ UNALIGNED_LOAD64(s1 + matched);
|
||||||
|
int matching_bits = Bits::FindLSBSetNonZero64(x);
|
||||||
|
matched += matching_bits >> 3;
|
||||||
|
return matched;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
while (PREDICT_TRUE(s2 < s2_limit)) {
|
||||||
|
if (PREDICT_TRUE(s1[matched] == *s2)) {
|
||||||
|
++s2;
|
||||||
|
++matched;
|
||||||
|
} else {
|
||||||
|
return matched;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return matched;
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
static inline int FindMatchLength(const char* s1,
|
||||||
|
const char* s2,
|
||||||
|
const char* s2_limit) {
|
||||||
|
// Implementation based on the x86-64 version, above.
|
||||||
|
DCHECK_GE(s2_limit, s2);
|
||||||
|
int matched = 0;
|
||||||
|
|
||||||
|
while (s2 <= s2_limit - 4 &&
|
||||||
|
UNALIGNED_LOAD32(s2) == UNALIGNED_LOAD32(s1 + matched)) {
|
||||||
|
s2 += 4;
|
||||||
|
matched += 4;
|
||||||
|
}
|
||||||
|
if (LittleEndian::IsLittleEndian() && s2 <= s2_limit - 4) {
|
||||||
|
uint32 x = UNALIGNED_LOAD32(s2) ^ UNALIGNED_LOAD32(s1 + matched);
|
||||||
|
int matching_bits = Bits::FindLSBSetNonZero(x);
|
||||||
|
matched += matching_bits >> 3;
|
||||||
|
} else {
|
||||||
|
while ((s2 < s2_limit) && (s1[matched] == *s2)) {
|
||||||
|
++s2;
|
||||||
|
++matched;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return matched;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
} // end namespace internal
|
||||||
|
} // end namespace snappy
|
||||||
|
|
||||||
|
#endif // UTIL_SNAPPY_SNAPPY_INTERNAL_H_
|
|
@ -0,0 +1,46 @@
|
||||||
|
// Copyright 2011 Google Inc. All Rights Reserved.
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "snappy-sinksource.h"
|
||||||
|
|
||||||
|
namespace snappy {
|
||||||
|
|
||||||
|
Source::~Source() { }
|
||||||
|
|
||||||
|
Sink::~Sink() { }
|
||||||
|
|
||||||
|
char* Sink::GetAppendBuffer(size_t length, char* scratch) {
|
||||||
|
return scratch;
|
||||||
|
}
|
||||||
|
|
||||||
|
ByteArraySource::~ByteArraySource() { }
|
||||||
|
|
||||||
|
size_t ByteArraySource::Available() const { return left_; }
|
||||||
|
|
||||||
|
const char* ByteArraySource::Peek(size_t* len) {
|
||||||
|
*len = left_;
|
||||||
|
return ptr_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ByteArraySource::Skip(size_t n) {
|
||||||
|
left_ -= n;
|
||||||
|
ptr_ += n;
|
||||||
|
}
|
||||||
|
|
||||||
|
UncheckedByteArraySink::~UncheckedByteArraySink() { }
|
||||||
|
|
||||||
|
void UncheckedByteArraySink::Append(const char* data, size_t n) {
|
||||||
|
// Do no copying if the caller filled in the result of GetAppendBuffer()
|
||||||
|
if (data != dest_) {
|
||||||
|
memcpy(dest_, data, n);
|
||||||
|
}
|
||||||
|
dest_ += n;
|
||||||
|
}
|
||||||
|
|
||||||
|
char* UncheckedByteArraySink::GetAppendBuffer(size_t len, char* scratch) {
|
||||||
|
return dest_;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,110 @@
|
||||||
|
// Copyright 2011 Google Inc. All Rights Reserved.
|
||||||
|
|
||||||
|
#ifndef UTIL_SNAPPY_SNAPPY_SINKSOURCE_H_
|
||||||
|
#define UTIL_SNAPPY_SNAPPY_SINKSOURCE_H_
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
|
|
||||||
|
namespace snappy {
|
||||||
|
|
||||||
|
// A Sink is an interface that consumes a sequence of bytes.
|
||||||
|
class Sink {
|
||||||
|
public:
|
||||||
|
Sink() { }
|
||||||
|
virtual ~Sink();
|
||||||
|
|
||||||
|
// Append "bytes[0,n-1]" to this.
|
||||||
|
virtual void Append(const char* bytes, size_t n) = 0;
|
||||||
|
|
||||||
|
// Returns a writable buffer of the specified length for appending.
|
||||||
|
// May return a pointer to the caller-owned scratch buffer which
|
||||||
|
// must have at least the indicated length. The returned buffer is
|
||||||
|
// only valid until the next operation on this Sink.
|
||||||
|
//
|
||||||
|
// After writing at most "length" bytes, call Append() with the
|
||||||
|
// pointer returned from this function and the number of bytes
|
||||||
|
// written. Many Append() implementations will avoid copying
|
||||||
|
// bytes if this function returned an internal buffer.
|
||||||
|
//
|
||||||
|
// If a non-scratch buffer is returned, the caller may only pass a
|
||||||
|
// prefix of it to Append(). That is, it is not correct to pass an
|
||||||
|
// interior pointer of the returned array to Append().
|
||||||
|
//
|
||||||
|
// The default implementation always returns the scratch buffer.
|
||||||
|
virtual char* GetAppendBuffer(size_t length, char* scratch);
|
||||||
|
|
||||||
|
private:
|
||||||
|
// No copying
|
||||||
|
Sink(const Sink&);
|
||||||
|
void operator=(const Sink&);
|
||||||
|
};
|
||||||
|
|
||||||
|
// A Source is an interface that yields a sequence of bytes
|
||||||
|
class Source {
|
||||||
|
public:
|
||||||
|
Source() { }
|
||||||
|
virtual ~Source();
|
||||||
|
|
||||||
|
// Return the number of bytes left to read from the source
|
||||||
|
virtual size_t Available() const = 0;
|
||||||
|
|
||||||
|
// Peek at the next flat region of the source. Does not reposition
|
||||||
|
// the source. The returned region is empty iff Available()==0.
|
||||||
|
//
|
||||||
|
// Returns a pointer to the beginning of the region and store its
|
||||||
|
// length in *len.
|
||||||
|
//
|
||||||
|
// The returned region is valid until the next call to Skip() or
|
||||||
|
// until this object is destroyed, whichever occurs first.
|
||||||
|
//
|
||||||
|
// The returned region may be larger than Available() (for example
|
||||||
|
// if this ByteSource is a view on a substring of a larger source).
|
||||||
|
// The caller is responsible for ensuring that it only reads the
|
||||||
|
// Available() bytes.
|
||||||
|
virtual const char* Peek(size_t* len) = 0;
|
||||||
|
|
||||||
|
// Skip the next n bytes. Invalidates any buffer returned by
|
||||||
|
// a previous call to Peek().
|
||||||
|
// REQUIRES: Available() >= n
|
||||||
|
virtual void Skip(size_t n) = 0;
|
||||||
|
|
||||||
|
private:
|
||||||
|
// No copying
|
||||||
|
Source(const Source&);
|
||||||
|
void operator=(const Source&);
|
||||||
|
};
|
||||||
|
|
||||||
|
// A Source implementation that yields the contents of a flat array
|
||||||
|
class ByteArraySource : public Source {
|
||||||
|
public:
|
||||||
|
ByteArraySource(const char* p, size_t n) : ptr_(p), left_(n) { }
|
||||||
|
virtual ~ByteArraySource();
|
||||||
|
virtual size_t Available() const;
|
||||||
|
virtual const char* Peek(size_t* len);
|
||||||
|
virtual void Skip(size_t n);
|
||||||
|
private:
|
||||||
|
const char* ptr_;
|
||||||
|
size_t left_;
|
||||||
|
};
|
||||||
|
|
||||||
|
// A Sink implementation that writes to a flat array without any bound checks.
|
||||||
|
class UncheckedByteArraySink : public Sink {
|
||||||
|
public:
|
||||||
|
explicit UncheckedByteArraySink(char* dest) : dest_(dest) { }
|
||||||
|
virtual ~UncheckedByteArraySink();
|
||||||
|
virtual void Append(const char* data, size_t n);
|
||||||
|
virtual char* GetAppendBuffer(size_t len, char* scratch);
|
||||||
|
|
||||||
|
// Return the current output pointer so that a caller can see how
|
||||||
|
// many bytes were produced.
|
||||||
|
// Note: this is not a Sink method.
|
||||||
|
char* CurrentDestination() const { return dest_; }
|
||||||
|
private:
|
||||||
|
char* dest_;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // UTIL_SNAPPY_SNAPPY_SINKSOURCE_H_
|
|
@ -0,0 +1,28 @@
|
||||||
|
// Copyright 2011 Google Inc. All Rights Reserved.
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#include "snappy-stubs-internal.h"
|
||||||
|
|
||||||
|
namespace snappy {
|
||||||
|
|
||||||
|
void Varint::Append32(string* s, uint32 value) {
|
||||||
|
char buf[Varint::kMax32];
|
||||||
|
const char* p = Varint::Encode32(buf, value);
|
||||||
|
s->append(buf, p - buf);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace snappy
|
|
@ -0,0 +1,457 @@
|
||||||
|
// Copyright 2011 Google Inc. All Rights Reserved.
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
//
|
||||||
|
// Various stubs for the open-source version of Snappy.
|
||||||
|
|
||||||
|
#ifndef UTIL_SNAPPY_OPENSOURCE_SNAPPY_STUBS_INTERNAL_H_
|
||||||
|
#define UTIL_SNAPPY_OPENSOURCE_SNAPPY_STUBS_INTERNAL_H_
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#include <assert.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <sys/mman.h>
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
#include "snappy-stubs-public.h"
|
||||||
|
|
||||||
|
#if defined(__x86_64__)
|
||||||
|
|
||||||
|
// Enable 64-bit optimized versions of some routines.
|
||||||
|
#define ARCH_K8 1
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Needed by OS X, among others.
|
||||||
|
#ifndef MAP_ANONYMOUS
|
||||||
|
#define MAP_ANONYMOUS MAP_ANON
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Pull in std::min, std::ostream, and the likes. This is safe because this
|
||||||
|
// header file is never used from any public header files.
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
// The size of an array, if known at compile-time.
|
||||||
|
// Will give unexpected results if used on a pointer.
|
||||||
|
// We undefine it first, since some compilers already have a definition.
|
||||||
|
#ifdef ARRAYSIZE
|
||||||
|
#undef ARRAYSIZE
|
||||||
|
#endif
|
||||||
|
#define ARRAYSIZE(a) (sizeof(a) / sizeof(*(a)))
|
||||||
|
|
||||||
|
// Static prediction hints.
|
||||||
|
#ifdef HAVE_BUILTIN_EXPECT
|
||||||
|
#define PREDICT_FALSE(x) (__builtin_expect(x, 0))
|
||||||
|
#define PREDICT_TRUE(x) (__builtin_expect(!!(x), 1))
|
||||||
|
#else
|
||||||
|
#define PREDICT_FALSE(x) x
|
||||||
|
#define PREDICT_TRUE(x) x
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// This is only used for recomputing the tag byte table used during
|
||||||
|
// decompression; for simplicity we just remove it from the open-source
|
||||||
|
// version (anyone who wants to regenerate it can just do the call
|
||||||
|
// themselves within main()).
|
||||||
|
#define DEFINE_bool(flag_name, default_value, description) \
|
||||||
|
bool FLAGS_ ## flag_name = default_value;
|
||||||
|
#define DECLARE_bool(flag_name) \
|
||||||
|
extern bool FLAGS_ ## flag_name;
|
||||||
|
#define REGISTER_MODULE_INITIALIZER(name, code)
|
||||||
|
|
||||||
|
namespace snappy {
|
||||||
|
|
||||||
|
static const uint32 kuint32max = static_cast<uint32>(0xFFFFFFFF);
|
||||||
|
static const int64 kint64max = static_cast<int64>(0x7FFFFFFFFFFFFFFFLL);
|
||||||
|
|
||||||
|
// Logging.
|
||||||
|
|
||||||
|
#define LOG(level) LogMessage()
|
||||||
|
#define VLOG(level) true ? (void)0 : \
|
||||||
|
snappy::LogMessageVoidify() & snappy::LogMessage()
|
||||||
|
|
||||||
|
class LogMessage {
|
||||||
|
public:
|
||||||
|
LogMessage() { }
|
||||||
|
~LogMessage() {
|
||||||
|
cerr << endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
LogMessage& operator<<(const std::string& msg) {
|
||||||
|
cerr << msg;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
LogMessage& operator<<(int x) {
|
||||||
|
cerr << x;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Asserts, both versions activated in debug mode only,
|
||||||
|
// and ones that are always active.
|
||||||
|
|
||||||
|
#define CRASH_UNLESS(condition) \
|
||||||
|
PREDICT_TRUE(condition) ? (void)0 : \
|
||||||
|
snappy::LogMessageVoidify() & snappy::LogMessageCrash()
|
||||||
|
|
||||||
|
class LogMessageCrash : public LogMessage {
|
||||||
|
public:
|
||||||
|
LogMessageCrash() { }
|
||||||
|
~LogMessageCrash() {
|
||||||
|
cerr << endl;
|
||||||
|
abort();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// This class is used to explicitly ignore values in the conditional
|
||||||
|
// logging macros. This avoids compiler warnings like "value computed
|
||||||
|
// is not used" and "statement has no effect".
|
||||||
|
|
||||||
|
class LogMessageVoidify {
|
||||||
|
public:
|
||||||
|
LogMessageVoidify() { }
|
||||||
|
// This has to be an operator with a precedence lower than << but
|
||||||
|
// higher than ?:
|
||||||
|
void operator&(const LogMessage&) { }
|
||||||
|
};
|
||||||
|
|
||||||
|
#define CHECK(cond) CRASH_UNLESS(cond)
|
||||||
|
#define CHECK_LE(a, b) CRASH_UNLESS((a) <= (b))
|
||||||
|
#define CHECK_GE(a, b) CRASH_UNLESS((a) >= (b))
|
||||||
|
#define CHECK_EQ(a, b) CRASH_UNLESS((a) == (b))
|
||||||
|
#define CHECK_NE(a, b) CRASH_UNLESS((a) != (b))
|
||||||
|
#define CHECK_LT(a, b) CRASH_UNLESS((a) < (b))
|
||||||
|
#define CHECK_GT(a, b) CRASH_UNLESS((a) > (b))
|
||||||
|
|
||||||
|
#ifdef NDEBUG
|
||||||
|
|
||||||
|
#define DCHECK(cond) CRASH_UNLESS(true)
|
||||||
|
#define DCHECK_LE(a, b) CRASH_UNLESS(true)
|
||||||
|
#define DCHECK_GE(a, b) CRASH_UNLESS(true)
|
||||||
|
#define DCHECK_EQ(a, b) CRASH_UNLESS(true)
|
||||||
|
#define DCHECK_NE(a, b) CRASH_UNLESS(true)
|
||||||
|
#define DCHECK_LT(a, b) CRASH_UNLESS(true)
|
||||||
|
#define DCHECK_GT(a, b) CRASH_UNLESS(true)
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
#define DCHECK(cond) CHECK(cond)
|
||||||
|
#define DCHECK_LE(a, b) CHECK_LE(a, b)
|
||||||
|
#define DCHECK_GE(a, b) CHECK_GE(a, b)
|
||||||
|
#define DCHECK_EQ(a, b) CHECK_EQ(a, b)
|
||||||
|
#define DCHECK_NE(a, b) CHECK_NE(a, b)
|
||||||
|
#define DCHECK_LT(a, b) CHECK_LT(a, b)
|
||||||
|
#define DCHECK_GT(a, b) CHECK_GT(a, b)
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Potentially unaligned loads and stores.
|
||||||
|
|
||||||
|
#if defined(__i386__) || defined(__x86_64__) || defined(__powerpc__)
|
||||||
|
|
||||||
|
#define UNALIGNED_LOAD16(_p) (*reinterpret_cast<const uint16 *>(_p))
|
||||||
|
#define UNALIGNED_LOAD32(_p) (*reinterpret_cast<const uint32 *>(_p))
|
||||||
|
#define UNALIGNED_LOAD64(_p) (*reinterpret_cast<const uint64 *>(_p))
|
||||||
|
|
||||||
|
#define UNALIGNED_STORE16(_p, _val) (*reinterpret_cast<uint16 *>(_p) = (_val))
|
||||||
|
#define UNALIGNED_STORE32(_p, _val) (*reinterpret_cast<uint32 *>(_p) = (_val))
|
||||||
|
#define UNALIGNED_STORE64(_p, _val) (*reinterpret_cast<uint64 *>(_p) = (_val))
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
// These functions are provided for architectures that don't support
|
||||||
|
// unaligned loads and stores.
|
||||||
|
|
||||||
|
inline uint16 UNALIGNED_LOAD16(const void *p) {
|
||||||
|
uint16 t;
|
||||||
|
memcpy(&t, p, sizeof t);
|
||||||
|
return t;
|
||||||
|
}
|
||||||
|
|
||||||
|
inline uint32 UNALIGNED_LOAD32(const void *p) {
|
||||||
|
uint32 t;
|
||||||
|
memcpy(&t, p, sizeof t);
|
||||||
|
return t;
|
||||||
|
}
|
||||||
|
|
||||||
|
inline uint64 UNALIGNED_LOAD64(const void *p) {
|
||||||
|
uint64 t;
|
||||||
|
memcpy(&t, p, sizeof t);
|
||||||
|
return t;
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void UNALIGNED_STORE16(void *p, uint16 v) {
|
||||||
|
memcpy(p, &v, sizeof v);
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void UNALIGNED_STORE32(void *p, uint32 v) {
|
||||||
|
memcpy(p, &v, sizeof v);
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void UNALIGNED_STORE64(void *p, uint64 v) {
|
||||||
|
memcpy(p, &v, sizeof v);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// The following guarantees declaration of the byte swap functions.
|
||||||
|
#ifdef WORDS_BIGENDIAN
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#include <stdlib.h>
|
||||||
|
#define bswap_16(x) _byteswap_ushort(x)
|
||||||
|
#define bswap_32(x) _byteswap_ulong(x)
|
||||||
|
#define bswap_64(x) _byteswap_uint64(x)
|
||||||
|
|
||||||
|
#elif defined(__APPLE__)
|
||||||
|
// Mac OS X / Darwin features
|
||||||
|
#include <libkern/OSByteOrder.h>
|
||||||
|
#define bswap_16(x) OSSwapInt16(x)
|
||||||
|
#define bswap_32(x) OSSwapInt32(x)
|
||||||
|
#define bswap_64(x) OSSwapInt64(x)
|
||||||
|
|
||||||
|
#else
|
||||||
|
#include <byteswap.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif // WORDS_BIGENDIAN
|
||||||
|
|
||||||
|
// Convert to little-endian storage, opposite of network format.
|
||||||
|
// Convert x from host to little endian: x = LittleEndian.FromHost(x);
|
||||||
|
// convert x from little endian to host: x = LittleEndian.ToHost(x);
|
||||||
|
//
|
||||||
|
// Store values into unaligned memory converting to little endian order:
|
||||||
|
// LittleEndian.Store16(p, x);
|
||||||
|
//
|
||||||
|
// Load unaligned values stored in little endian converting to host order:
|
||||||
|
// x = LittleEndian.Load16(p);
|
||||||
|
class LittleEndian {
|
||||||
|
public:
|
||||||
|
// Conversion functions.
|
||||||
|
#ifdef WORDS_BIGENDIAN
|
||||||
|
|
||||||
|
static uint16 FromHost16(uint16 x) { return bswap_16(x); }
|
||||||
|
static uint16 ToHost16(uint16 x) { return bswap_16(x); }
|
||||||
|
|
||||||
|
static uint32 FromHost32(uint32 x) { return bswap_32(x); }
|
||||||
|
static uint32 ToHost32(uint32 x) { return bswap_32(x); }
|
||||||
|
|
||||||
|
static bool IsLittleEndian() { return false; }
|
||||||
|
|
||||||
|
#else // !defined(WORDS_BIGENDIAN)
|
||||||
|
|
||||||
|
static uint16 FromHost16(uint16 x) { return x; }
|
||||||
|
static uint16 ToHost16(uint16 x) { return x; }
|
||||||
|
|
||||||
|
static uint32 FromHost32(uint32 x) { return x; }
|
||||||
|
static uint32 ToHost32(uint32 x) { return x; }
|
||||||
|
|
||||||
|
static bool IsLittleEndian() { return true; }
|
||||||
|
|
||||||
|
#endif // !defined(WORDS_BIGENDIAN)
|
||||||
|
|
||||||
|
// Functions to do unaligned loads and stores in little-endian order.
|
||||||
|
static uint16 Load16(const void *p) {
|
||||||
|
return ToHost16(UNALIGNED_LOAD16(p));
|
||||||
|
}
|
||||||
|
|
||||||
|
static void Store16(void *p, uint16 v) {
|
||||||
|
UNALIGNED_STORE16(p, FromHost16(v));
|
||||||
|
}
|
||||||
|
|
||||||
|
static uint32 Load32(const void *p) {
|
||||||
|
return ToHost32(UNALIGNED_LOAD32(p));
|
||||||
|
}
|
||||||
|
|
||||||
|
static void Store32(void *p, uint32 v) {
|
||||||
|
UNALIGNED_STORE32(p, FromHost32(v));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Some bit-manipulation functions.
|
||||||
|
class Bits {
|
||||||
|
public:
|
||||||
|
// Return floor(log2(n)) for positive integer n. Returns -1 iff n == 0.
|
||||||
|
static int Log2Floor(uint32 n);
|
||||||
|
|
||||||
|
// Return the first set least / most significant bit, 0-indexed. Returns an
|
||||||
|
// undefined value if n == 0. FindLSBSetNonZero() is similar to ffs() except
|
||||||
|
// that it's 0-indexed.
|
||||||
|
static int FindLSBSetNonZero(uint32 n);
|
||||||
|
static int FindLSBSetNonZero64(uint64 n);
|
||||||
|
|
||||||
|
private:
|
||||||
|
DISALLOW_COPY_AND_ASSIGN(Bits);
|
||||||
|
};
|
||||||
|
|
||||||
|
#ifdef HAVE_BUILTIN_CTZ
|
||||||
|
|
||||||
|
inline int Bits::Log2Floor(uint32 n) {
|
||||||
|
return n == 0 ? -1 : 31 ^ __builtin_clz(n);
|
||||||
|
}
|
||||||
|
|
||||||
|
inline int Bits::FindLSBSetNonZero(uint32 n) {
|
||||||
|
return __builtin_ctz(n);
|
||||||
|
}
|
||||||
|
|
||||||
|
inline int Bits::FindLSBSetNonZero64(uint64 n) {
|
||||||
|
return __builtin_ctzll(n);
|
||||||
|
}
|
||||||
|
|
||||||
|
#else // Portable versions.
|
||||||
|
|
||||||
|
inline int Bits::Log2Floor(uint32 n) {
|
||||||
|
if (n == 0)
|
||||||
|
return -1;
|
||||||
|
int log = 0;
|
||||||
|
uint32 value = n;
|
||||||
|
for (int i = 4; i >= 0; --i) {
|
||||||
|
int shift = (1 << i);
|
||||||
|
uint32 x = value >> shift;
|
||||||
|
if (x != 0) {
|
||||||
|
value = x;
|
||||||
|
log += shift;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
assert(value == 1);
|
||||||
|
return log;
|
||||||
|
}
|
||||||
|
|
||||||
|
inline int Bits::FindLSBSetNonZero(uint32 n) {
|
||||||
|
int rc = 31;
|
||||||
|
for (int i = 4, shift = 1 << 4; i >= 0; --i) {
|
||||||
|
const uint32 x = n << shift;
|
||||||
|
if (x != 0) {
|
||||||
|
n = x;
|
||||||
|
rc -= shift;
|
||||||
|
}
|
||||||
|
shift >>= 1;
|
||||||
|
}
|
||||||
|
return rc;
|
||||||
|
}
|
||||||
|
|
||||||
|
// FindLSBSetNonZero64() is defined in terms of FindLSBSetNonZero().
|
||||||
|
inline int Bits::FindLSBSetNonZero64(uint64 n) {
|
||||||
|
const uint32 bottombits = static_cast<uint32>(n);
|
||||||
|
if (bottombits == 0) {
|
||||||
|
// Bottom bits are zero, so scan in top bits
|
||||||
|
return 32 + FindLSBSetNonZero(static_cast<uint32>(n >> 32));
|
||||||
|
} else {
|
||||||
|
return FindLSBSetNonZero(bottombits);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // End portable versions.
|
||||||
|
|
||||||
|
// Variable-length integer encoding.
|
||||||
|
class Varint {
|
||||||
|
public:
|
||||||
|
// Maximum lengths of varint encoding of uint32.
|
||||||
|
static const int kMax32 = 5;
|
||||||
|
|
||||||
|
// Attempts to parse a varint32 from a prefix of the bytes in [ptr,limit-1].
|
||||||
|
// Never reads a character at or beyond limit. If a valid/terminated varint32
|
||||||
|
// was found in the range, stores it in *OUTPUT and returns a pointer just
|
||||||
|
// past the last byte of the varint32. Else returns NULL. On success,
|
||||||
|
// "result <= limit".
|
||||||
|
static const char* Parse32WithLimit(const char* ptr, const char* limit,
|
||||||
|
uint32* OUTPUT);
|
||||||
|
|
||||||
|
// REQUIRES "ptr" points to a buffer of length sufficient to hold "v".
|
||||||
|
// EFFECTS Encodes "v" into "ptr" and returns a pointer to the
|
||||||
|
// byte just past the last encoded byte.
|
||||||
|
static char* Encode32(char* ptr, uint32 v);
|
||||||
|
|
||||||
|
// EFFECTS Appends the varint representation of "value" to "*s".
|
||||||
|
static void Append32(string* s, uint32 value);
|
||||||
|
};
|
||||||
|
|
||||||
|
inline const char* Varint::Parse32WithLimit(const char* p,
|
||||||
|
const char* l,
|
||||||
|
uint32* OUTPUT) {
|
||||||
|
const unsigned char* ptr = reinterpret_cast<const unsigned char*>(p);
|
||||||
|
const unsigned char* limit = reinterpret_cast<const unsigned char*>(l);
|
||||||
|
uint32 b, result;
|
||||||
|
if (ptr >= limit) return NULL;
|
||||||
|
b = *(ptr++); result = b & 127; if (b < 128) goto done;
|
||||||
|
if (ptr >= limit) return NULL;
|
||||||
|
b = *(ptr++); result |= (b & 127) << 7; if (b < 128) goto done;
|
||||||
|
if (ptr >= limit) return NULL;
|
||||||
|
b = *(ptr++); result |= (b & 127) << 14; if (b < 128) goto done;
|
||||||
|
if (ptr >= limit) return NULL;
|
||||||
|
b = *(ptr++); result |= (b & 127) << 21; if (b < 128) goto done;
|
||||||
|
if (ptr >= limit) return NULL;
|
||||||
|
b = *(ptr++); result |= (b & 127) << 28; if (b < 16) goto done;
|
||||||
|
return NULL; // Value is too long to be a varint32
|
||||||
|
done:
|
||||||
|
*OUTPUT = result;
|
||||||
|
return reinterpret_cast<const char*>(ptr);
|
||||||
|
}
|
||||||
|
|
||||||
|
inline char* Varint::Encode32(char* sptr, uint32 v) {
|
||||||
|
// Operate on characters as unsigneds
|
||||||
|
unsigned char* ptr = reinterpret_cast<unsigned char*>(sptr);
|
||||||
|
static const int B = 128;
|
||||||
|
if (v < (1<<7)) {
|
||||||
|
*(ptr++) = v;
|
||||||
|
} else if (v < (1<<14)) {
|
||||||
|
*(ptr++) = v | B;
|
||||||
|
*(ptr++) = v>>7;
|
||||||
|
} else if (v < (1<<21)) {
|
||||||
|
*(ptr++) = v | B;
|
||||||
|
*(ptr++) = (v>>7) | B;
|
||||||
|
*(ptr++) = v>>14;
|
||||||
|
} else if (v < (1<<28)) {
|
||||||
|
*(ptr++) = v | B;
|
||||||
|
*(ptr++) = (v>>7) | B;
|
||||||
|
*(ptr++) = (v>>14) | B;
|
||||||
|
*(ptr++) = v>>21;
|
||||||
|
} else {
|
||||||
|
*(ptr++) = v | B;
|
||||||
|
*(ptr++) = (v>>7) | B;
|
||||||
|
*(ptr++) = (v>>14) | B;
|
||||||
|
*(ptr++) = (v>>21) | B;
|
||||||
|
*(ptr++) = v>>28;
|
||||||
|
}
|
||||||
|
return reinterpret_cast<char*>(ptr);
|
||||||
|
}
|
||||||
|
|
||||||
|
// If you know the internal layout of the std::string in use, you can
|
||||||
|
// replace this function with one that resizes the string without
|
||||||
|
// filling the new space with zeros (if applicable) --
|
||||||
|
// it will be non-portable but faster.
|
||||||
|
inline void STLStringResizeUninitialized(string* s, size_t new_size) {
|
||||||
|
s->resize(new_size);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Return a mutable char* pointing to a string's internal buffer,
|
||||||
|
// which may not be null-terminated. Writing through this pointer will
|
||||||
|
// modify the string.
|
||||||
|
//
|
||||||
|
// string_as_array(&str)[i] is valid for 0 <= i < str.size() until the
|
||||||
|
// next call to a string method that invalidates iterators.
|
||||||
|
//
|
||||||
|
// As of 2006-04, there is no standard-blessed way of getting a
|
||||||
|
// mutable reference to a string's internal buffer. However, issue 530
|
||||||
|
// (http://www.open-std.org/JTC1/SC22/WG21/docs/lwg-defects.html#530)
|
||||||
|
// proposes this as the method. It will officially be part of the standard
|
||||||
|
// for C++0x. This should already work on all current implementations.
|
||||||
|
inline char* string_as_array(string* str) {
|
||||||
|
return str->empty() ? NULL : &*str->begin();
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace snappy
|
||||||
|
|
||||||
|
#endif // UTIL_SNAPPY_OPENSOURCE_SNAPPY_STUBS_INTERNAL_H_
|
|
@ -0,0 +1,59 @@
|
||||||
|
// Copyright 2011 Google Inc. All Rights Reserved.
|
||||||
|
// Author: sesse@google.com (Steinar H. Gunderson)
|
||||||
|
//
|
||||||
|
// Various type stubs for the open-source version of Snappy.
|
||||||
|
//
|
||||||
|
// This file cannot include config.h, as it is included from snappy.h,
|
||||||
|
// which is a public header. Instead, snappy-stubs-public.h is generated by
|
||||||
|
// from snappy-stubs-public.h.in at configure time.
|
||||||
|
|
||||||
|
#ifndef UTIL_SNAPPY_OPENSOURCE_SNAPPY_STUBS_PUBLIC_H_
|
||||||
|
#define UTIL_SNAPPY_OPENSOURCE_SNAPPY_STUBS_PUBLIC_H_
|
||||||
|
|
||||||
|
#if @ac_cv_have_stdint_h@
|
||||||
|
#include <stdint.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if @ac_cv_have_stddef_h@
|
||||||
|
#include <stddef.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define SNAPPY_MAJOR @SNAPPY_MAJOR@
|
||||||
|
#define SNAPPY_MINOR @SNAPPY_MINOR@
|
||||||
|
#define SNAPPY_PATCHLEVEL @SNAPPY_PATCHLEVEL@
|
||||||
|
#define SNAPPY_VERSION \
|
||||||
|
((SNAPPY_MAJOR << 16) | (SNAPPY_MINOR << 8) | SNAPPY_PATCHLEVEL)
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
namespace snappy {
|
||||||
|
|
||||||
|
#if @ac_cv_have_stdint_h@
|
||||||
|
typedef int8_t int8;
|
||||||
|
typedef uint8_t uint8;
|
||||||
|
typedef int16_t int16;
|
||||||
|
typedef uint16_t uint16;
|
||||||
|
typedef int32_t int32;
|
||||||
|
typedef uint32_t uint32;
|
||||||
|
typedef int64_t int64;
|
||||||
|
typedef uint64_t uint64;
|
||||||
|
#else
|
||||||
|
typedef signed char int8;
|
||||||
|
typedef unsigned char uint8;
|
||||||
|
typedef short int16;
|
||||||
|
typedef unsigned short uint16;
|
||||||
|
typedef int int32;
|
||||||
|
typedef unsigned int uint32;
|
||||||
|
typedef long long int64;
|
||||||
|
typedef unsigned long long uint64;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
typedef std::string string;
|
||||||
|
|
||||||
|
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
|
||||||
|
TypeName(const TypeName&); \
|
||||||
|
void operator=(const TypeName&)
|
||||||
|
|
||||||
|
} // namespace snappy
|
||||||
|
|
||||||
|
#endif // UTIL_SNAPPY_OPENSOURCE_SNAPPY_STUBS_PUBLIC_H_
|
|
@ -0,0 +1,523 @@
|
||||||
|
// Copyright 2011 Google Inc. All Rights Reserved.
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
//
|
||||||
|
// Various stubs for the unit tests for the open-source version of Snappy.
|
||||||
|
|
||||||
|
#include "snappy-test.h"
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
|
DEFINE_bool(run_microbenchmarks, true,
|
||||||
|
"Run microbenchmarks before doing anything else.");
|
||||||
|
|
||||||
|
namespace snappy {
|
||||||
|
|
||||||
|
string ReadTestDataFile(const string& base) {
|
||||||
|
string contents;
|
||||||
|
const char* srcdir = getenv("srcdir"); // This is set by Automake.
|
||||||
|
if (srcdir) {
|
||||||
|
File::ReadFileToStringOrDie(
|
||||||
|
string(srcdir) + "/testdata/" + base, &contents);
|
||||||
|
} else {
|
||||||
|
File::ReadFileToStringOrDie("testdata/" + base, &contents);
|
||||||
|
}
|
||||||
|
return contents;
|
||||||
|
}
|
||||||
|
|
||||||
|
string StringPrintf(const char* format, ...) {
|
||||||
|
char buf[4096];
|
||||||
|
va_list ap;
|
||||||
|
va_start(ap, format);
|
||||||
|
vsnprintf(buf, sizeof(buf), format, ap);
|
||||||
|
va_end(ap);
|
||||||
|
return buf;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool benchmark_running = false;
|
||||||
|
int64 benchmark_real_time_us = 0;
|
||||||
|
int64 benchmark_cpu_time_us = 0;
|
||||||
|
string *benchmark_label = NULL;
|
||||||
|
int64 benchmark_bytes_processed = 0;
|
||||||
|
|
||||||
|
struct timeval benchmark_start_real;
|
||||||
|
struct rusage benchmark_start_cpu;
|
||||||
|
|
||||||
|
void ResetBenchmarkTiming() {
|
||||||
|
benchmark_real_time_us = 0;
|
||||||
|
benchmark_cpu_time_us = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void StartBenchmarkTiming() {
|
||||||
|
gettimeofday(&benchmark_start_real, NULL);
|
||||||
|
if (getrusage(RUSAGE_SELF, &benchmark_start_cpu) == -1) {
|
||||||
|
perror("getrusage(RUSAGE_SELF)");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
benchmark_running = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void StopBenchmarkTiming() {
|
||||||
|
if (!benchmark_running) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
struct timeval benchmark_stop_real;
|
||||||
|
gettimeofday(&benchmark_stop_real, NULL);
|
||||||
|
benchmark_real_time_us +=
|
||||||
|
1000000 * (benchmark_stop_real.tv_sec - benchmark_start_real.tv_sec);
|
||||||
|
benchmark_real_time_us +=
|
||||||
|
(benchmark_stop_real.tv_usec - benchmark_start_real.tv_usec);
|
||||||
|
|
||||||
|
struct rusage benchmark_stop_cpu;
|
||||||
|
if (getrusage(RUSAGE_SELF, &benchmark_stop_cpu) == -1) {
|
||||||
|
perror("getrusage(RUSAGE_SELF)");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
benchmark_cpu_time_us += 1000000 * (benchmark_stop_cpu.ru_utime.tv_sec -
|
||||||
|
benchmark_start_cpu.ru_utime.tv_sec);
|
||||||
|
benchmark_cpu_time_us += (benchmark_stop_cpu.ru_utime.tv_usec -
|
||||||
|
benchmark_start_cpu.ru_utime.tv_usec);
|
||||||
|
benchmark_running = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetBenchmarkLabel(const string& str) {
|
||||||
|
if (benchmark_label) {
|
||||||
|
delete benchmark_label;
|
||||||
|
}
|
||||||
|
benchmark_label = new string(str);
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetBenchmarkBytesProcessed(int64 bytes) {
|
||||||
|
benchmark_bytes_processed = bytes;
|
||||||
|
}
|
||||||
|
|
||||||
|
struct BenchmarkRun {
|
||||||
|
int64 real_time_us;
|
||||||
|
int64 cpu_time_us;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct BenchmarkCompareCPUTime {
|
||||||
|
bool operator() (const BenchmarkRun& a, const BenchmarkRun& b) const {
|
||||||
|
return a.real_time_us < b.real_time_us;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
void Benchmark::Run() {
|
||||||
|
for (int test_case_num = start_; test_case_num <= stop_; ++test_case_num) {
|
||||||
|
// Run a few iterations first to find out approximately how fast
|
||||||
|
// the benchmark is.
|
||||||
|
const int kCalibrateIterations = 100;
|
||||||
|
ResetBenchmarkTiming();
|
||||||
|
StartBenchmarkTiming();
|
||||||
|
(*function_)(kCalibrateIterations, test_case_num);
|
||||||
|
StopBenchmarkTiming();
|
||||||
|
|
||||||
|
// Let each test case run for about 200ms.
|
||||||
|
// Run five times and pick the median.
|
||||||
|
const int kNumRuns = 5;
|
||||||
|
const int kMedianPos = kNumRuns / 2;
|
||||||
|
int num_iterations = 200000 * kCalibrateIterations / benchmark_real_time_us;
|
||||||
|
BenchmarkRun benchmark_runs[kNumRuns];
|
||||||
|
|
||||||
|
for (int run = 0; run < kNumRuns; ++run) {
|
||||||
|
ResetBenchmarkTiming();
|
||||||
|
StartBenchmarkTiming();
|
||||||
|
(*function_)(num_iterations, test_case_num);
|
||||||
|
StopBenchmarkTiming();
|
||||||
|
|
||||||
|
benchmark_runs[run].real_time_us = benchmark_real_time_us;
|
||||||
|
benchmark_runs[run].cpu_time_us = benchmark_cpu_time_us;
|
||||||
|
}
|
||||||
|
|
||||||
|
sort(benchmark_runs, benchmark_runs + kNumRuns, BenchmarkCompareCPUTime());
|
||||||
|
int64 real_time_us = benchmark_runs[kMedianPos].real_time_us;
|
||||||
|
int64 cpu_time_us = benchmark_runs[kMedianPos].cpu_time_us;
|
||||||
|
int64 bytes_per_second = benchmark_bytes_processed * 1000000 / cpu_time_us;
|
||||||
|
|
||||||
|
string heading = StringPrintf("%s/%d", name_.c_str(), test_case_num);
|
||||||
|
string human_readable_speed;
|
||||||
|
if (bytes_per_second < 1024) {
|
||||||
|
human_readable_speed = StringPrintf("%dB/s", bytes_per_second);
|
||||||
|
} else if (bytes_per_second < 1024 * 1024) {
|
||||||
|
human_readable_speed = StringPrintf(
|
||||||
|
"%.1fkB/s", bytes_per_second / 1024.0f);
|
||||||
|
} else if (bytes_per_second < 1024 * 1024 * 1024) {
|
||||||
|
human_readable_speed = StringPrintf(
|
||||||
|
"%.1fMB/s", bytes_per_second / (1024.0f * 1024.0f));
|
||||||
|
} else {
|
||||||
|
human_readable_speed = StringPrintf(
|
||||||
|
"%.1fGB/s", bytes_per_second / (1024.0f * 1024.0f * 1024.0f));
|
||||||
|
}
|
||||||
|
|
||||||
|
fprintf(stderr, "%-18s %10lld %10lld %10d %s %s\n",
|
||||||
|
heading.c_str(),
|
||||||
|
static_cast<long long>(real_time_us * 1000 / num_iterations),
|
||||||
|
static_cast<long long>(cpu_time_us * 1000 / num_iterations),
|
||||||
|
num_iterations,
|
||||||
|
human_readable_speed.c_str(),
|
||||||
|
benchmark_label->c_str());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBZ
|
||||||
|
|
||||||
|
ZLib::ZLib()
|
||||||
|
: comp_init_(false),
|
||||||
|
uncomp_init_(false) {
|
||||||
|
Reinit();
|
||||||
|
}
|
||||||
|
|
||||||
|
ZLib::~ZLib() {
|
||||||
|
if (comp_init_) { deflateEnd(&comp_stream_); }
|
||||||
|
if (uncomp_init_) { inflateEnd(&uncomp_stream_); }
|
||||||
|
}
|
||||||
|
|
||||||
|
void ZLib::Reinit() {
|
||||||
|
compression_level_ = Z_DEFAULT_COMPRESSION;
|
||||||
|
window_bits_ = MAX_WBITS;
|
||||||
|
mem_level_ = 8; // DEF_MEM_LEVEL
|
||||||
|
if (comp_init_) {
|
||||||
|
deflateEnd(&comp_stream_);
|
||||||
|
comp_init_ = false;
|
||||||
|
}
|
||||||
|
if (uncomp_init_) {
|
||||||
|
inflateEnd(&uncomp_stream_);
|
||||||
|
uncomp_init_ = false;
|
||||||
|
}
|
||||||
|
first_chunk_ = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ZLib::Reset() {
|
||||||
|
first_chunk_ = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// --------- COMPRESS MODE
|
||||||
|
|
||||||
|
// Initialization method to be called if we hit an error while
|
||||||
|
// compressing. On hitting an error, call this method before returning
|
||||||
|
// the error.
|
||||||
|
void ZLib::CompressErrorInit() {
|
||||||
|
deflateEnd(&comp_stream_);
|
||||||
|
comp_init_ = false;
|
||||||
|
Reset();
|
||||||
|
}
|
||||||
|
|
||||||
|
int ZLib::DeflateInit() {
|
||||||
|
return deflateInit2(&comp_stream_,
|
||||||
|
compression_level_,
|
||||||
|
Z_DEFLATED,
|
||||||
|
window_bits_,
|
||||||
|
mem_level_,
|
||||||
|
Z_DEFAULT_STRATEGY);
|
||||||
|
}
|
||||||
|
|
||||||
|
int ZLib::CompressInit(Bytef *dest, uLongf *destLen,
|
||||||
|
const Bytef *source, uLong *sourceLen) {
|
||||||
|
int err;
|
||||||
|
|
||||||
|
comp_stream_.next_in = (Bytef*)source;
|
||||||
|
comp_stream_.avail_in = (uInt)*sourceLen;
|
||||||
|
if ((uLong)comp_stream_.avail_in != *sourceLen) return Z_BUF_ERROR;
|
||||||
|
comp_stream_.next_out = dest;
|
||||||
|
comp_stream_.avail_out = (uInt)*destLen;
|
||||||
|
if ((uLong)comp_stream_.avail_out != *destLen) return Z_BUF_ERROR;
|
||||||
|
|
||||||
|
if ( !first_chunk_ ) // only need to set up stream the first time through
|
||||||
|
return Z_OK;
|
||||||
|
|
||||||
|
if (comp_init_) { // we've already initted it
|
||||||
|
err = deflateReset(&comp_stream_);
|
||||||
|
if (err != Z_OK) {
|
||||||
|
LOG(WARNING) << "ERROR: Can't reset compress object; creating a new one";
|
||||||
|
deflateEnd(&comp_stream_);
|
||||||
|
comp_init_ = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!comp_init_) { // first use
|
||||||
|
comp_stream_.zalloc = (alloc_func)0;
|
||||||
|
comp_stream_.zfree = (free_func)0;
|
||||||
|
comp_stream_.opaque = (voidpf)0;
|
||||||
|
err = DeflateInit();
|
||||||
|
if (err != Z_OK) return err;
|
||||||
|
comp_init_ = true;
|
||||||
|
}
|
||||||
|
return Z_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
// In a perfect world we'd always have the full buffer to compress
|
||||||
|
// when the time came, and we could just call Compress(). Alas, we
|
||||||
|
// want to do chunked compression on our webserver. In this
|
||||||
|
// application, we compress the header, send it off, then compress the
|
||||||
|
// results, send them off, then compress the footer. Thus we need to
|
||||||
|
// use the chunked compression features of zlib.
|
||||||
|
int ZLib::CompressAtMostOrAll(Bytef *dest, uLongf *destLen,
|
||||||
|
const Bytef *source, uLong *sourceLen,
|
||||||
|
int flush_mode) { // Z_FULL_FLUSH or Z_FINISH
|
||||||
|
int err;
|
||||||
|
|
||||||
|
if ( (err=CompressInit(dest, destLen, source, sourceLen)) != Z_OK )
|
||||||
|
return err;
|
||||||
|
|
||||||
|
// This is used to figure out how many bytes we wrote *this chunk*
|
||||||
|
int compressed_size = comp_stream_.total_out;
|
||||||
|
|
||||||
|
// Some setup happens only for the first chunk we compress in a run
|
||||||
|
if ( first_chunk_ ) {
|
||||||
|
first_chunk_ = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// flush_mode is Z_FINISH for all mode, Z_SYNC_FLUSH for incremental
|
||||||
|
// compression.
|
||||||
|
err = deflate(&comp_stream_, flush_mode);
|
||||||
|
|
||||||
|
const uLong source_bytes_consumed = *sourceLen - comp_stream_.avail_in;
|
||||||
|
*sourceLen = comp_stream_.avail_in;
|
||||||
|
|
||||||
|
if ((err == Z_STREAM_END || err == Z_OK)
|
||||||
|
&& comp_stream_.avail_in == 0
|
||||||
|
&& comp_stream_.avail_out != 0 ) {
|
||||||
|
// we processed everything ok and the output buffer was large enough.
|
||||||
|
;
|
||||||
|
} else if (err == Z_STREAM_END && comp_stream_.avail_in > 0) {
|
||||||
|
return Z_BUF_ERROR; // should never happen
|
||||||
|
} else if (err != Z_OK && err != Z_STREAM_END && err != Z_BUF_ERROR) {
|
||||||
|
// an error happened
|
||||||
|
CompressErrorInit();
|
||||||
|
return err;
|
||||||
|
} else if (comp_stream_.avail_out == 0) { // not enough space
|
||||||
|
err = Z_BUF_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
|
assert(err == Z_OK || err == Z_STREAM_END || err == Z_BUF_ERROR);
|
||||||
|
if (err == Z_STREAM_END)
|
||||||
|
err = Z_OK;
|
||||||
|
|
||||||
|
// update the crc and other metadata
|
||||||
|
compressed_size = comp_stream_.total_out - compressed_size; // delta
|
||||||
|
*destLen = compressed_size;
|
||||||
|
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
|
||||||
|
int ZLib::CompressChunkOrAll(Bytef *dest, uLongf *destLen,
|
||||||
|
const Bytef *source, uLong sourceLen,
|
||||||
|
int flush_mode) { // Z_FULL_FLUSH or Z_FINISH
|
||||||
|
const int ret =
|
||||||
|
CompressAtMostOrAll(dest, destLen, source, &sourceLen, flush_mode);
|
||||||
|
if (ret == Z_BUF_ERROR)
|
||||||
|
CompressErrorInit();
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
// This routine only initializes the compression stream once. Thereafter, it
|
||||||
|
// just does a deflateReset on the stream, which should be faster.
|
||||||
|
int ZLib::Compress(Bytef *dest, uLongf *destLen,
|
||||||
|
const Bytef *source, uLong sourceLen) {
|
||||||
|
int err;
|
||||||
|
const uLongf orig_destLen = *destLen;
|
||||||
|
if ( (err=CompressChunkOrAll(dest, destLen, source, sourceLen,
|
||||||
|
Z_FINISH)) != Z_OK )
|
||||||
|
return err;
|
||||||
|
Reset(); // reset for next call to Compress
|
||||||
|
|
||||||
|
return Z_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// --------- UNCOMPRESS MODE
|
||||||
|
|
||||||
|
int ZLib::InflateInit() {
|
||||||
|
return inflateInit2(&uncomp_stream_, MAX_WBITS);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Initialization method to be called if we hit an error while
|
||||||
|
// uncompressing. On hitting an error, call this method before
|
||||||
|
// returning the error.
|
||||||
|
void ZLib::UncompressErrorInit() {
|
||||||
|
inflateEnd(&uncomp_stream_);
|
||||||
|
uncomp_init_ = false;
|
||||||
|
Reset();
|
||||||
|
}
|
||||||
|
|
||||||
|
int ZLib::UncompressInit(Bytef *dest, uLongf *destLen,
|
||||||
|
const Bytef *source, uLong *sourceLen) {
|
||||||
|
int err;
|
||||||
|
|
||||||
|
uncomp_stream_.next_in = (Bytef*)source;
|
||||||
|
uncomp_stream_.avail_in = (uInt)*sourceLen;
|
||||||
|
// Check for source > 64K on 16-bit machine:
|
||||||
|
if ((uLong)uncomp_stream_.avail_in != *sourceLen) return Z_BUF_ERROR;
|
||||||
|
|
||||||
|
uncomp_stream_.next_out = dest;
|
||||||
|
uncomp_stream_.avail_out = (uInt)*destLen;
|
||||||
|
if ((uLong)uncomp_stream_.avail_out != *destLen) return Z_BUF_ERROR;
|
||||||
|
|
||||||
|
if ( !first_chunk_ ) // only need to set up stream the first time through
|
||||||
|
return Z_OK;
|
||||||
|
|
||||||
|
if (uncomp_init_) { // we've already initted it
|
||||||
|
err = inflateReset(&uncomp_stream_);
|
||||||
|
if (err != Z_OK) {
|
||||||
|
LOG(WARNING)
|
||||||
|
<< "ERROR: Can't reset uncompress object; creating a new one";
|
||||||
|
UncompressErrorInit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!uncomp_init_) {
|
||||||
|
uncomp_stream_.zalloc = (alloc_func)0;
|
||||||
|
uncomp_stream_.zfree = (free_func)0;
|
||||||
|
uncomp_stream_.opaque = (voidpf)0;
|
||||||
|
err = InflateInit();
|
||||||
|
if (err != Z_OK) return err;
|
||||||
|
uncomp_init_ = true;
|
||||||
|
}
|
||||||
|
return Z_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
// If you compressed your data a chunk at a time, with CompressChunk,
|
||||||
|
// you can uncompress it a chunk at a time with UncompressChunk.
|
||||||
|
// Only difference bewteen chunked and unchunked uncompression
|
||||||
|
// is the flush mode we use: Z_SYNC_FLUSH (chunked) or Z_FINISH (unchunked).
|
||||||
|
int ZLib::UncompressAtMostOrAll(Bytef *dest, uLongf *destLen,
|
||||||
|
const Bytef *source, uLong *sourceLen,
|
||||||
|
int flush_mode) { // Z_SYNC_FLUSH or Z_FINISH
|
||||||
|
int err = Z_OK;
|
||||||
|
|
||||||
|
if ( (err=UncompressInit(dest, destLen, source, sourceLen)) != Z_OK ) {
|
||||||
|
LOG(WARNING) << "UncompressInit: Error: " << err << " SourceLen: "
|
||||||
|
<< *sourceLen;
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
|
||||||
|
// This is used to figure out how many output bytes we wrote *this chunk*:
|
||||||
|
const uLong old_total_out = uncomp_stream_.total_out;
|
||||||
|
|
||||||
|
// This is used to figure out how many input bytes we read *this chunk*:
|
||||||
|
const uLong old_total_in = uncomp_stream_.total_in;
|
||||||
|
|
||||||
|
// Some setup happens only for the first chunk we compress in a run
|
||||||
|
if ( first_chunk_ ) {
|
||||||
|
first_chunk_ = false; // so we don't do this again
|
||||||
|
|
||||||
|
// For the first chunk *only* (to avoid infinite troubles), we let
|
||||||
|
// there be no actual data to uncompress. This sometimes triggers
|
||||||
|
// when the input is only the gzip header, say.
|
||||||
|
if ( *sourceLen == 0 ) {
|
||||||
|
*destLen = 0;
|
||||||
|
return Z_OK;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// We'll uncompress as much as we can. If we end OK great, otherwise
|
||||||
|
// if we get an error that seems to be the gzip footer, we store the
|
||||||
|
// gzip footer and return OK, otherwise we return the error.
|
||||||
|
|
||||||
|
// flush_mode is Z_SYNC_FLUSH for chunked mode, Z_FINISH for all mode.
|
||||||
|
err = inflate(&uncomp_stream_, flush_mode);
|
||||||
|
|
||||||
|
// Figure out how many bytes of the input zlib slurped up:
|
||||||
|
const uLong bytes_read = uncomp_stream_.total_in - old_total_in;
|
||||||
|
CHECK_LE(source + bytes_read, source + *sourceLen);
|
||||||
|
*sourceLen = uncomp_stream_.avail_in;
|
||||||
|
|
||||||
|
if ((err == Z_STREAM_END || err == Z_OK) // everything went ok
|
||||||
|
&& uncomp_stream_.avail_in == 0) { // and we read it all
|
||||||
|
;
|
||||||
|
} else if (err == Z_STREAM_END && uncomp_stream_.avail_in > 0) {
|
||||||
|
LOG(WARNING)
|
||||||
|
<< "UncompressChunkOrAll: Received some extra data, bytes total: "
|
||||||
|
<< uncomp_stream_.avail_in << " bytes: "
|
||||||
|
<< string(reinterpret_cast<const char *>(uncomp_stream_.next_in),
|
||||||
|
min(int(uncomp_stream_.avail_in), 20));
|
||||||
|
UncompressErrorInit();
|
||||||
|
return Z_DATA_ERROR; // what's the extra data for?
|
||||||
|
} else if (err != Z_OK && err != Z_STREAM_END && err != Z_BUF_ERROR) {
|
||||||
|
// an error happened
|
||||||
|
LOG(WARNING) << "UncompressChunkOrAll: Error: " << err
|
||||||
|
<< " avail_out: " << uncomp_stream_.avail_out;
|
||||||
|
UncompressErrorInit();
|
||||||
|
return err;
|
||||||
|
} else if (uncomp_stream_.avail_out == 0) {
|
||||||
|
err = Z_BUF_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
|
assert(err == Z_OK || err == Z_BUF_ERROR || err == Z_STREAM_END);
|
||||||
|
if (err == Z_STREAM_END)
|
||||||
|
err = Z_OK;
|
||||||
|
|
||||||
|
*destLen = uncomp_stream_.total_out - old_total_out; // size for this call
|
||||||
|
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
|
||||||
|
int ZLib::UncompressChunkOrAll(Bytef *dest, uLongf *destLen,
|
||||||
|
const Bytef *source, uLong sourceLen,
|
||||||
|
int flush_mode) { // Z_SYNC_FLUSH or Z_FINISH
|
||||||
|
const int ret =
|
||||||
|
UncompressAtMostOrAll(dest, destLen, source, &sourceLen, flush_mode);
|
||||||
|
if (ret == Z_BUF_ERROR)
|
||||||
|
UncompressErrorInit();
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
int ZLib::UncompressAtMost(Bytef *dest, uLongf *destLen,
|
||||||
|
const Bytef *source, uLong *sourceLen) {
|
||||||
|
return UncompressAtMostOrAll(dest, destLen, source, sourceLen, Z_SYNC_FLUSH);
|
||||||
|
}
|
||||||
|
|
||||||
|
// We make sure we've uncompressed everything, that is, the current
|
||||||
|
// uncompress stream is at a compressed-buffer-EOF boundary. In gzip
|
||||||
|
// mode, we also check the gzip footer to make sure we pass the gzip
|
||||||
|
// consistency checks. We RETURN true iff both types of checks pass.
|
||||||
|
bool ZLib::UncompressChunkDone() {
|
||||||
|
assert(!first_chunk_ && uncomp_init_);
|
||||||
|
// Make sure we're at the end-of-compressed-data point. This means
|
||||||
|
// if we call inflate with Z_FINISH we won't consume any input or
|
||||||
|
// write any output
|
||||||
|
Bytef dummyin, dummyout;
|
||||||
|
uLongf dummylen = 0;
|
||||||
|
if ( UncompressChunkOrAll(&dummyout, &dummylen, &dummyin, 0, Z_FINISH)
|
||||||
|
!= Z_OK ) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Make sure that when we exit, we can start a new round of chunks later
|
||||||
|
Reset();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Uncompresses the source buffer into the destination buffer.
|
||||||
|
// The destination buffer must be long enough to hold the entire
|
||||||
|
// decompressed contents.
|
||||||
|
//
|
||||||
|
// We only initialize the uncomp_stream once. Thereafter, we use
|
||||||
|
// inflateReset, which should be faster.
|
||||||
|
//
|
||||||
|
// Returns Z_OK on success, otherwise, it returns a zlib error code.
|
||||||
|
int ZLib::Uncompress(Bytef *dest, uLongf *destLen,
|
||||||
|
const Bytef *source, uLong sourceLen) {
|
||||||
|
int err;
|
||||||
|
if ( (err=UncompressChunkOrAll(dest, destLen, source, sourceLen,
|
||||||
|
Z_FINISH)) != Z_OK ) {
|
||||||
|
Reset(); // let us try to compress again
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
if ( !UncompressChunkDone() ) // calls Reset()
|
||||||
|
return Z_DATA_ERROR;
|
||||||
|
return Z_OK; // stream_end is ok
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // HAVE_LIBZ
|
||||||
|
|
||||||
|
} // namespace snappy
|
|
@ -0,0 +1,458 @@
|
||||||
|
// Copyright 2011 Google Inc. All Rights Reserved.
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
//
|
||||||
|
// Various stubs for the unit tests for the open-source version of Snappy.
|
||||||
|
|
||||||
|
#ifndef UTIL_SNAPPY_OPENSOURCE_SNAPPY_TEST_H_
|
||||||
|
#define UTIL_SNAPPY_OPENSOURCE_SNAPPY_TEST_H_
|
||||||
|
|
||||||
|
#include "snappy-stubs-internal.h"
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
#include <sys/resource.h>
|
||||||
|
#include <sys/time.h>
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#ifdef HAVE_GTEST
|
||||||
|
|
||||||
|
#include <gtest/gtest.h>
|
||||||
|
#undef TYPED_TEST
|
||||||
|
#define TYPED_TEST TEST
|
||||||
|
#define INIT_GTEST(argc, argv) ::testing::InitGoogleTest(argc, *argv)
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
// Stubs for if the user doesn't have Google Test installed.
|
||||||
|
|
||||||
|
#define TEST(test_case, test_subcase) \
|
||||||
|
void Test_ ## test_case ## _ ## test_subcase()
|
||||||
|
#define INIT_GTEST(argc, argv)
|
||||||
|
|
||||||
|
#define TYPED_TEST TEST
|
||||||
|
#define EXPECT_EQ CHECK_EQ
|
||||||
|
#define EXPECT_NE CHECK_NE
|
||||||
|
#define EXPECT_FALSE(cond) CHECK(!(cond))
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_GFLAGS
|
||||||
|
|
||||||
|
#include <gflags/gflags.h>
|
||||||
|
|
||||||
|
// This is tricky; both gflags and Google Test want to look at the command line
|
||||||
|
// arguments. Google Test seems to be the most happy with unknown arguments,
|
||||||
|
// though, so we call it first and hope for the best.
|
||||||
|
#define InitGoogle(argv0, argc, argv, remove_flags) \
|
||||||
|
INIT_GTEST(argc, argv); \
|
||||||
|
google::ParseCommandLineFlags(argc, argv, remove_flags);
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
// If we don't have the gflags package installed, these can only be
|
||||||
|
// changed at compile time.
|
||||||
|
#define DEFINE_int32(flag_name, default_value, description) \
|
||||||
|
static int FLAGS_ ## flag_name = default_value;
|
||||||
|
|
||||||
|
#define InitGoogle(argv0, argc, argv, remove_flags)
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBZ
|
||||||
|
#include "zlib.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBLZO2
|
||||||
|
#include "lzo/lzo1x.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBLZF
|
||||||
|
extern "C" {
|
||||||
|
#include "lzf.h"
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBFASTLZ
|
||||||
|
#include "fastlz.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBQUICKLZ
|
||||||
|
#include "quicklz.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
namespace File {
|
||||||
|
void Init() { }
|
||||||
|
|
||||||
|
void ReadFileToStringOrDie(const char* filename, string* data) {
|
||||||
|
FILE* fp = fopen(filename, "rb");
|
||||||
|
if (fp == NULL) {
|
||||||
|
perror(filename);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
data->clear();
|
||||||
|
while (!feof(fp)) {
|
||||||
|
char buf[4096];
|
||||||
|
size_t ret = fread(buf, 1, 4096, fp);
|
||||||
|
if (ret == -1) {
|
||||||
|
perror("fread");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
data->append(string(buf, ret));
|
||||||
|
}
|
||||||
|
|
||||||
|
fclose(fp);
|
||||||
|
}
|
||||||
|
|
||||||
|
void ReadFileToStringOrDie(const string& filename, string* data) {
|
||||||
|
ReadFileToStringOrDie(filename.c_str(), data);
|
||||||
|
}
|
||||||
|
|
||||||
|
void WriteStringToFileOrDie(const string& str, const char* filename) {
|
||||||
|
FILE* fp = fopen(filename, "wb");
|
||||||
|
if (fp == NULL) {
|
||||||
|
perror(filename);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
int ret = fwrite(str.data(), str.size(), 1, fp);
|
||||||
|
if (ret != 1) {
|
||||||
|
perror("fwrite");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
fclose(fp);
|
||||||
|
}
|
||||||
|
} // namespace File
|
||||||
|
} // namespace
|
||||||
|
|
||||||
|
namespace snappy {
|
||||||
|
|
||||||
|
#define FLAGS_test_random_seed 301
|
||||||
|
typedef string TypeParam;
|
||||||
|
|
||||||
|
void Test_CorruptedTest_VerifyCorrupted();
|
||||||
|
void Test_Snappy_SimpleTests();
|
||||||
|
void Test_Snappy_MaxBlowup();
|
||||||
|
void Test_Snappy_RandomData();
|
||||||
|
void Test_Snappy_FourByteOffset();
|
||||||
|
void Test_SnappyCorruption_TruncatedVarint();
|
||||||
|
void Test_SnappyCorruption_UnterminatedVarint();
|
||||||
|
void Test_Snappy_ReadPastEndOfBuffer();
|
||||||
|
void Test_Snappy_FindMatchLength();
|
||||||
|
void Test_Snappy_FindMatchLengthRandom();
|
||||||
|
|
||||||
|
string ReadTestDataFile(const string& base);
|
||||||
|
|
||||||
|
// A sprintf() variant that returns a std::string.
|
||||||
|
// Not safe for general use due to truncation issues.
|
||||||
|
string StringPrintf(const char* format, ...);
|
||||||
|
|
||||||
|
// A simple, non-cryptographically-secure random generator.
|
||||||
|
class ACMRandom {
|
||||||
|
public:
|
||||||
|
explicit ACMRandom(uint32 seed) : seed_(seed) {}
|
||||||
|
|
||||||
|
int32 Next();
|
||||||
|
|
||||||
|
int32 Uniform(int32 n) {
|
||||||
|
return Next() % n;
|
||||||
|
}
|
||||||
|
uint8 Rand8() {
|
||||||
|
return static_cast<uint8>((Next() >> 1) & 0x000000ff);
|
||||||
|
}
|
||||||
|
bool OneIn(int X) { return Uniform(X) == 0; }
|
||||||
|
|
||||||
|
// Skewed: pick "base" uniformly from range [0,max_log] and then
|
||||||
|
// return "base" random bits. The effect is to pick a number in the
|
||||||
|
// range [0,2^max_log-1] with bias towards smaller numbers.
|
||||||
|
int32 Skewed(int max_log);
|
||||||
|
|
||||||
|
private:
|
||||||
|
static const uint32 M = 2147483647L; // 2^31-1
|
||||||
|
uint32 seed_;
|
||||||
|
};
|
||||||
|
|
||||||
|
inline int32 ACMRandom::Next() {
|
||||||
|
static const uint64 A = 16807; // bits 14, 8, 7, 5, 2, 1, 0
|
||||||
|
// We are computing
|
||||||
|
// seed_ = (seed_ * A) % M, where M = 2^31-1
|
||||||
|
//
|
||||||
|
// seed_ must not be zero or M, or else all subsequent computed values
|
||||||
|
// will be zero or M respectively. For all other values, seed_ will end
|
||||||
|
// up cycling through every number in [1,M-1]
|
||||||
|
uint64 product = seed_ * A;
|
||||||
|
|
||||||
|
// Compute (product % M) using the fact that ((x << 31) % M) == x.
|
||||||
|
seed_ = (product >> 31) + (product & M);
|
||||||
|
// The first reduction may overflow by 1 bit, so we may need to repeat.
|
||||||
|
// mod == M is not possible; using > allows the faster sign-bit-based test.
|
||||||
|
if (seed_ > M) {
|
||||||
|
seed_ -= M;
|
||||||
|
}
|
||||||
|
return seed_;
|
||||||
|
}
|
||||||
|
|
||||||
|
inline int32 ACMRandom::Skewed(int max_log) {
|
||||||
|
const int32 base = (Next() - 1) % (max_log+1);
|
||||||
|
return (Next() - 1) & ((1u << base)-1);
|
||||||
|
}
|
||||||
|
|
||||||
|
// A wall-time clock. This stub is not super-accurate, nor resistant to the
|
||||||
|
// system time changing.
|
||||||
|
class CycleTimer {
|
||||||
|
public:
|
||||||
|
CycleTimer() : real_time_us_(0) {}
|
||||||
|
|
||||||
|
void Start() {
|
||||||
|
gettimeofday(&start_, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Stop() {
|
||||||
|
struct timeval stop;
|
||||||
|
gettimeofday(&stop, NULL);
|
||||||
|
|
||||||
|
real_time_us_ += 1000000 * (stop.tv_sec - start_.tv_sec);
|
||||||
|
real_time_us_ += (stop.tv_usec - start_.tv_usec);
|
||||||
|
}
|
||||||
|
|
||||||
|
double Get() {
|
||||||
|
return real_time_us_ * 1e-6;
|
||||||
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
int64 real_time_us_;
|
||||||
|
struct timeval start_;
|
||||||
|
};
|
||||||
|
|
||||||
|
// Minimalistic microbenchmark framework.
|
||||||
|
|
||||||
|
typedef void (*BenchmarkFunction)(int, int);
|
||||||
|
|
||||||
|
class Benchmark {
|
||||||
|
public:
|
||||||
|
Benchmark(const string& name, BenchmarkFunction function) :
|
||||||
|
name_(name), function_(function) {}
|
||||||
|
|
||||||
|
Benchmark* DenseRange(int start, int stop) {
|
||||||
|
start_ = start;
|
||||||
|
stop_ = stop;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Run();
|
||||||
|
|
||||||
|
private:
|
||||||
|
const string name_;
|
||||||
|
const BenchmarkFunction function_;
|
||||||
|
int start_, stop_;
|
||||||
|
};
|
||||||
|
#define BENCHMARK(benchmark_name) \
|
||||||
|
Benchmark* Benchmark_ ## benchmark_name = \
|
||||||
|
(new Benchmark(#benchmark_name, benchmark_name))
|
||||||
|
|
||||||
|
extern Benchmark* Benchmark_BM_UFlat;
|
||||||
|
extern Benchmark* Benchmark_BM_UValidate;
|
||||||
|
extern Benchmark* Benchmark_BM_ZFlat;
|
||||||
|
|
||||||
|
void ResetBenchmarkTiming();
|
||||||
|
void StartBenchmarkTiming();
|
||||||
|
void StopBenchmarkTiming();
|
||||||
|
void SetBenchmarkLabel(const string& str);
|
||||||
|
void SetBenchmarkBytesProcessed(int64 bytes);
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBZ
|
||||||
|
|
||||||
|
// Object-oriented wrapper around zlib.
|
||||||
|
class ZLib {
|
||||||
|
public:
|
||||||
|
ZLib();
|
||||||
|
~ZLib();
|
||||||
|
|
||||||
|
// Wipe a ZLib object to a virgin state. This differs from Reset()
|
||||||
|
// in that it also breaks any state.
|
||||||
|
void Reinit();
|
||||||
|
|
||||||
|
// Call this to make a zlib buffer as good as new. Here's the only
|
||||||
|
// case where they differ:
|
||||||
|
// CompressChunk(a); CompressChunk(b); CompressChunkDone(); vs
|
||||||
|
// CompressChunk(a); Reset(); CompressChunk(b); CompressChunkDone();
|
||||||
|
// You'll want to use Reset(), then, when you interrupt a compress
|
||||||
|
// (or uncompress) in the middle of a chunk and want to start over.
|
||||||
|
void Reset();
|
||||||
|
|
||||||
|
// According to the zlib manual, when you Compress, the destination
|
||||||
|
// buffer must have size at least src + .1%*src + 12. This function
|
||||||
|
// helps you calculate that. Augment this to account for a potential
|
||||||
|
// gzip header and footer, plus a few bytes of slack.
|
||||||
|
static int MinCompressbufSize(int uncompress_size) {
|
||||||
|
return uncompress_size + uncompress_size/1000 + 40;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Compresses the source buffer into the destination buffer.
|
||||||
|
// sourceLen is the byte length of the source buffer.
|
||||||
|
// Upon entry, destLen is the total size of the destination buffer,
|
||||||
|
// which must be of size at least MinCompressbufSize(sourceLen).
|
||||||
|
// Upon exit, destLen is the actual size of the compressed buffer.
|
||||||
|
//
|
||||||
|
// This function can be used to compress a whole file at once if the
|
||||||
|
// input file is mmap'ed.
|
||||||
|
//
|
||||||
|
// Returns Z_OK if success, Z_MEM_ERROR if there was not
|
||||||
|
// enough memory, Z_BUF_ERROR if there was not enough room in the
|
||||||
|
// output buffer. Note that if the output buffer is exactly the same
|
||||||
|
// size as the compressed result, we still return Z_BUF_ERROR.
|
||||||
|
// (check CL#1936076)
|
||||||
|
int Compress(Bytef *dest, uLongf *destLen,
|
||||||
|
const Bytef *source, uLong sourceLen);
|
||||||
|
|
||||||
|
// Uncompresses the source buffer into the destination buffer.
|
||||||
|
// The destination buffer must be long enough to hold the entire
|
||||||
|
// decompressed contents.
|
||||||
|
//
|
||||||
|
// Returns Z_OK on success, otherwise, it returns a zlib error code.
|
||||||
|
int Uncompress(Bytef *dest, uLongf *destLen,
|
||||||
|
const Bytef *source, uLong sourceLen);
|
||||||
|
|
||||||
|
// Uncompress data one chunk at a time -- ie you can call this
|
||||||
|
// more than once. To get this to work you need to call per-chunk
|
||||||
|
// and "done" routines.
|
||||||
|
//
|
||||||
|
// Returns Z_OK if success, Z_MEM_ERROR if there was not
|
||||||
|
// enough memory, Z_BUF_ERROR if there was not enough room in the
|
||||||
|
// output buffer.
|
||||||
|
|
||||||
|
int UncompressAtMost(Bytef *dest, uLongf *destLen,
|
||||||
|
const Bytef *source, uLong *sourceLen);
|
||||||
|
|
||||||
|
// Checks gzip footer information, as needed. Mostly this just
|
||||||
|
// makes sure the checksums match. Whenever you call this, it
|
||||||
|
// will assume the last 8 bytes from the previous UncompressChunk
|
||||||
|
// call are the footer. Returns true iff everything looks ok.
|
||||||
|
bool UncompressChunkDone();
|
||||||
|
|
||||||
|
private:
|
||||||
|
int InflateInit(); // sets up the zlib inflate structure
|
||||||
|
int DeflateInit(); // sets up the zlib deflate structure
|
||||||
|
|
||||||
|
// These init the zlib data structures for compressing/uncompressing
|
||||||
|
int CompressInit(Bytef *dest, uLongf *destLen,
|
||||||
|
const Bytef *source, uLong *sourceLen);
|
||||||
|
int UncompressInit(Bytef *dest, uLongf *destLen,
|
||||||
|
const Bytef *source, uLong *sourceLen);
|
||||||
|
// Initialization method to be called if we hit an error while
|
||||||
|
// uncompressing. On hitting an error, call this method before
|
||||||
|
// returning the error.
|
||||||
|
void UncompressErrorInit();
|
||||||
|
|
||||||
|
// Helper function for Compress
|
||||||
|
int CompressChunkOrAll(Bytef *dest, uLongf *destLen,
|
||||||
|
const Bytef *source, uLong sourceLen,
|
||||||
|
int flush_mode);
|
||||||
|
int CompressAtMostOrAll(Bytef *dest, uLongf *destLen,
|
||||||
|
const Bytef *source, uLong *sourceLen,
|
||||||
|
int flush_mode);
|
||||||
|
|
||||||
|
// Likewise for UncompressAndUncompressChunk
|
||||||
|
int UncompressChunkOrAll(Bytef *dest, uLongf *destLen,
|
||||||
|
const Bytef *source, uLong sourceLen,
|
||||||
|
int flush_mode);
|
||||||
|
|
||||||
|
int UncompressAtMostOrAll(Bytef *dest, uLongf *destLen,
|
||||||
|
const Bytef *source, uLong *sourceLen,
|
||||||
|
int flush_mode);
|
||||||
|
|
||||||
|
// Initialization method to be called if we hit an error while
|
||||||
|
// compressing. On hitting an error, call this method before
|
||||||
|
// returning the error.
|
||||||
|
void CompressErrorInit();
|
||||||
|
|
||||||
|
int compression_level_; // compression level
|
||||||
|
int window_bits_; // log base 2 of the window size used in compression
|
||||||
|
int mem_level_; // specifies the amount of memory to be used by
|
||||||
|
// compressor (1-9)
|
||||||
|
z_stream comp_stream_; // Zlib stream data structure
|
||||||
|
bool comp_init_; // True if we have initialized comp_stream_
|
||||||
|
z_stream uncomp_stream_; // Zlib stream data structure
|
||||||
|
bool uncomp_init_; // True if we have initialized uncomp_stream_
|
||||||
|
|
||||||
|
// These are used only with chunked compression.
|
||||||
|
bool first_chunk_; // true if we need to emit headers with this chunk
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // HAVE_LIBZ
|
||||||
|
|
||||||
|
} // namespace snappy
|
||||||
|
|
||||||
|
DECLARE_bool(run_microbenchmarks);
|
||||||
|
|
||||||
|
static void RunSpecifiedBenchmarks() {
|
||||||
|
if (!FLAGS_run_microbenchmarks) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
fprintf(stderr, "Running microbenchmarks.\n");
|
||||||
|
#ifndef NDEBUG
|
||||||
|
fprintf(stderr, "WARNING: Compiled with assertions enabled, will be slow.\n");
|
||||||
|
#endif
|
||||||
|
#ifndef __OPTIMIZE__
|
||||||
|
fprintf(stderr, "WARNING: Compiled without optimization, will be slow.\n");
|
||||||
|
#endif
|
||||||
|
fprintf(stderr, "Benchmark Time(ns) CPU(ns) Iterations\n");
|
||||||
|
fprintf(stderr, "---------------------------------------------------\n");
|
||||||
|
|
||||||
|
snappy::Benchmark_BM_UFlat->Run();
|
||||||
|
snappy::Benchmark_BM_UValidate->Run();
|
||||||
|
snappy::Benchmark_BM_ZFlat->Run();
|
||||||
|
|
||||||
|
fprintf(stderr, "\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifndef HAVE_GTEST
|
||||||
|
|
||||||
|
static inline int RUN_ALL_TESTS() {
|
||||||
|
fprintf(stderr, "Running correctness tests.\n");
|
||||||
|
snappy::Test_CorruptedTest_VerifyCorrupted();
|
||||||
|
snappy::Test_Snappy_SimpleTests();
|
||||||
|
snappy::Test_Snappy_MaxBlowup();
|
||||||
|
snappy::Test_Snappy_RandomData();
|
||||||
|
snappy::Test_Snappy_FourByteOffset();
|
||||||
|
snappy::Test_SnappyCorruption_TruncatedVarint();
|
||||||
|
snappy::Test_SnappyCorruption_UnterminatedVarint();
|
||||||
|
snappy::Test_Snappy_ReadPastEndOfBuffer();
|
||||||
|
snappy::Test_Snappy_FindMatchLength();
|
||||||
|
snappy::Test_Snappy_FindMatchLengthRandom();
|
||||||
|
fprintf(stderr, "All tests passed.\n");
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // HAVE_GTEST
|
||||||
|
|
||||||
|
// For main().
|
||||||
|
namespace snappy {
|
||||||
|
|
||||||
|
static void CompressFile(const char* fname);
|
||||||
|
static void UncompressFile(const char* fname);
|
||||||
|
static void MeasureFile(const char* fname);
|
||||||
|
|
||||||
|
} // namespace
|
||||||
|
|
||||||
|
using snappy::CompressFile;
|
||||||
|
using snappy::UncompressFile;
|
||||||
|
using snappy::MeasureFile;
|
||||||
|
|
||||||
|
#endif // UTIL_SNAPPY_OPENSOURCE_SNAPPY_TEST_H_
|
|
@ -0,0 +1,141 @@
|
||||||
|
// Copyright 2005 and onwards Google Inc.
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
//
|
||||||
|
// A light-weight compression algorithm. It is designed for speed of
|
||||||
|
// compression and decompression, rather than for the utmost in space
|
||||||
|
// savings.
|
||||||
|
//
|
||||||
|
// For getting better compression ratios when you are compressing data
|
||||||
|
// with long repeated sequences or compressing data that is similar to
|
||||||
|
// other data, while still compressing fast, you might look at first
|
||||||
|
// using BMDiff and then compressing the output of BMDiff with
|
||||||
|
// Snappy.
|
||||||
|
|
||||||
|
#ifndef UTIL_SNAPPY_SNAPPY_H__
|
||||||
|
#define UTIL_SNAPPY_SNAPPY_H__
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#include "snappy-stubs-public.h"
|
||||||
|
|
||||||
|
namespace snappy {
|
||||||
|
class Source;
|
||||||
|
class Sink;
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------
|
||||||
|
// Generic compression/decompression routines.
|
||||||
|
// ------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Compress the bytes read from "*source" and append to "*sink". Return the
|
||||||
|
// number of bytes written.
|
||||||
|
size_t Compress(Source* source, Sink* sink);
|
||||||
|
|
||||||
|
bool GetUncompressedLength(Source* source, uint32* result);
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------
|
||||||
|
// Higher-level string based routines (should be sufficient for most users)
|
||||||
|
// ------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Sets "*output" to the compressed version of "input[0,input_length-1]".
|
||||||
|
// Original contents of *output are lost.
|
||||||
|
//
|
||||||
|
// REQUIRES: "input[]" is not an alias of "*output".
|
||||||
|
size_t Compress(const char* input, size_t input_length, string* output);
|
||||||
|
|
||||||
|
// Decompresses "compressed[0,compressed_length-1]" to "*uncompressed".
|
||||||
|
// Original contents of "*uncompressed" are lost.
|
||||||
|
//
|
||||||
|
// REQUIRES: "compressed[]" is not an alias of "*uncompressed".
|
||||||
|
//
|
||||||
|
// returns false if the message is corrupted and could not be decompressed
|
||||||
|
bool Uncompress(const char* compressed, size_t compressed_length,
|
||||||
|
string* uncompressed);
|
||||||
|
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------
|
||||||
|
// Lower-level character array based routines. May be useful for
|
||||||
|
// efficiency reasons in certain circumstances.
|
||||||
|
// ------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// REQUIRES: "compressed" must point to an area of memory that is at
|
||||||
|
// least "MaxCompressedLength(input_length)" bytes in length.
|
||||||
|
//
|
||||||
|
// Takes the data stored in "input[0..input_length]" and stores
|
||||||
|
// it in the array pointed to by "compressed".
|
||||||
|
//
|
||||||
|
// "*compressed_length" is set to the length of the compressed output.
|
||||||
|
//
|
||||||
|
// Example:
|
||||||
|
// char* output = new char[snappy::MaxCompressedLength(input_length)];
|
||||||
|
// size_t output_length;
|
||||||
|
// RawCompress(input, input_length, output, &output_length);
|
||||||
|
// ... Process(output, output_length) ...
|
||||||
|
// delete [] output;
|
||||||
|
void RawCompress(const char* input,
|
||||||
|
size_t input_length,
|
||||||
|
char* compressed,
|
||||||
|
size_t* compressed_length);
|
||||||
|
|
||||||
|
// Given data in "compressed[0..compressed_length-1]" generated by
|
||||||
|
// calling the Snappy::Compress routine, this routine
|
||||||
|
// stores the uncompressed data to
|
||||||
|
// uncompressed[0..GetUncompressedLength(compressed)-1]
|
||||||
|
// returns false if the message is corrupted and could not be decrypted
|
||||||
|
bool RawUncompress(const char* compressed, size_t compressed_length,
|
||||||
|
char* uncompressed);
|
||||||
|
|
||||||
|
// Given data from the byte source 'compressed' generated by calling
|
||||||
|
// the Snappy::Compress routine, this routine stores the uncompressed
|
||||||
|
// data to
|
||||||
|
// uncompressed[0..GetUncompressedLength(compressed,compressed_length)-1]
|
||||||
|
// returns false if the message is corrupted and could not be decrypted
|
||||||
|
bool RawUncompress(Source* compressed, char* uncompressed);
|
||||||
|
|
||||||
|
// Returns the maximal size of the compressed representation of
|
||||||
|
// input data that is "source_bytes" bytes in length;
|
||||||
|
size_t MaxCompressedLength(size_t source_bytes);
|
||||||
|
|
||||||
|
// REQUIRES: "compressed[]" was produced by RawCompress() or Compress()
|
||||||
|
// Returns true and stores the length of the uncompressed data in
|
||||||
|
// *result normally. Returns false on parsing error.
|
||||||
|
// This operation takes O(1) time.
|
||||||
|
bool GetUncompressedLength(const char* compressed, size_t compressed_length,
|
||||||
|
size_t* result);
|
||||||
|
|
||||||
|
// Returns true iff the contents of "compressed[]" can be uncompressed
|
||||||
|
// successfully. Does not return the uncompressed data. Takes
|
||||||
|
// time proportional to compressed_length, but is usually at least
|
||||||
|
// a factor of four faster than actual decompression.
|
||||||
|
bool IsValidCompressedBuffer(const char* compressed,
|
||||||
|
size_t compressed_length);
|
||||||
|
|
||||||
|
// *** DO NOT CHANGE THE VALUE OF kBlockSize ***
|
||||||
|
//
|
||||||
|
// New Compression code chops up the input into blocks of at most
|
||||||
|
// the following size. This ensures that back-references in the
|
||||||
|
// output never cross kBlockSize block boundaries. This can be
|
||||||
|
// helpful in implementing blocked decompression. However the
|
||||||
|
// decompression code should not rely on this guarantee since older
|
||||||
|
// compression code may not obey it.
|
||||||
|
static const int kBlockLog = 15;
|
||||||
|
static const int kBlockSize = 1 << kBlockLog;
|
||||||
|
|
||||||
|
static const int kMaxHashTableBits = 14;
|
||||||
|
static const int kMaxHashTableSize = 1 << kMaxHashTableBits;
|
||||||
|
|
||||||
|
} // end namespace snappy
|
||||||
|
|
||||||
|
|
||||||
|
#endif // UTIL_SNAPPY_SNAPPY_H__
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,645 @@
|
||||||
|
<head>
|
||||||
|
<title>Compression Pointers</title>
|
||||||
|
<META HTTP-EQUIV="Keywords" CONTENT="compression, compression, compression">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<BODY BGCOLOR=#FFFFFF>
|
||||||
|
|
||||||
|
<center>
|
||||||
|
<H1> Compression Pointers </h1>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</center>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="#Resources">Compression resources</a>, <a href="#Conferences">conferences</a>, and some <a href="#Research">research
|
||||||
|
groups and companies</a>, are listed towards the end of this page. <p>
|
||||||
|
|
||||||
|
Use this <a href="form.html">handy form</a> to add something to this page, or to simply say you liked this page<i> <img src="new.gif">
|
||||||
|
<p>
|
||||||
|
|
||||||
|
</i>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<p>
|
||||||
|
|
||||||
|
<h2>What's New?</h2><p>
|
||||||
|
|
||||||
|
|
||||||
|
<a href="http://www.teaser.fr/~jlgailly/">Jean-loup Gailly</a> -- <i>Mr. gzip,
|
||||||
|
PNG, CCR (1996-06-10)</i>
|
||||||
|
<img src="new.gif">
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<a href="http://www.creative.net/~tristan/MPEG">MPEG Pointers and Resources</a>
|
||||||
|
<img src="new.gif">
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<a href="http://www-isl.stanford.edu/~gray/">Robert M. Gray</a> -- <i>Signal
|
||||||
|
compression, VQ, image quality evaluation (1996-04-22)</i><img src="new.gif">
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<a href="http://www-isl.stanford.edu/~gray/compression.html">Compression and
|
||||||
|
Classification Group</a> -- <i>ISL,EE,Stanford (1996-04-22)</i><img src="new.gif">
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<a href="http://www-isl.stanford.edu/~gray/iii.html">Signal Processing
|
||||||
|
and the International Information Infrastructure</a> -- <i>Web sites (1996-04-22)</i> <img src="new.gif">
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<a href="http://www.cs.sc.edu:80/~valenta/">Valenta, Vladimir</a> -- <i>(1996-04-22)</i>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
|
||||||
|
<a href="http://patpwww.epfl.ch:80/~jordan/Subjects/Parallel/parallel.html">Jordan, Frederic</a> -- <i>Parallel Image Compression (1996-04-12)</i> <img src="new.gif">
|
||||||
|
<br>
|
||||||
|
<a href="http://www.garlic.com/biz/eotek">Electro-Optical Technologies, Inc.</a> -- <i>Consultant (1996-04-12)</i> <img src="new.gif">
|
||||||
|
<br>
|
||||||
|
<a href="http://quicktime.apple.com">quicktime.apple.com</a> -- <i>Quicktime site (1996-03-11)</i> <img src="new.gif">
|
||||||
|
<br>
|
||||||
|
<a href="http://www.chips.ibm.com/products/aldc/index.html">IBM Hardware</a> -- <i>Compression chips (1996-03-11)</i> <img src="new.gif">
|
||||||
|
<br>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!---
|
||||||
|
|
||||||
|
<img src="new.gif"><i>Do you have, or know of, a research position where an image compression guru with a Ph.D. would feel at
|
||||||
|
home? Let me know if you do...<a
|
||||||
|
href="mailto:singlis@cs.waikato.ac.nz"><b>send me some email!</b></a>, or <a
|
||||||
|
href="http://www.cs.waikato.ac.nz/~singlis/cv.html"><b>check out my
|
||||||
|
c.v.</b>
|
||||||
|
</a>
|
||||||
|
</i>
|
||||||
|
|
||||||
|
-->
|
||||||
|
|
||||||
|
<p>
|
||||||
|
|
||||||
|
|
||||||
|
<p>
|
||||||
|
|
||||||
|
|
||||||
|
<h2><i>People</i></h2>
|
||||||
|
<h2>A</h2>
|
||||||
|
|
||||||
|
<a href="http://quest.jpl.nasa.gov/Mark.Adler/">Adler, Mark</a> -- <i>Info-ZIP; Zip, UnZip, gzip and zlib co-author; PNG group</i>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
<h2>B</h2>
|
||||||
|
|
||||||
|
<a href="http://www.eese.qut.edu.au/~mbaker/">Baker, Matthew</a> -- <i>Region based video compression</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.eecs.wsu.edu/~bamberg/">Bamberger, Roberto H.</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://sutherland.eese.qut.edu.au/~dbell">Bell, Daniel</a> -- <i>Region based image compression</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.cosc.canterbury.ac.nz/~tim">Bell, Tim</a> -- <i>compression, computer science for children, and computers and music.</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.polytechnique.fr/poly/~bellard/">Bellard, Fabrice</a> -- <i>Author of LZEXE</I>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.cevis.uni-bremen.de/~willy/">Berghorn, Willy </a>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.best.com/~bhaskara">Bhaskaran, Vasudev</a> -- <i>Image and Video compression</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://wwwvms.utexas.edu/~cbloom/index.html">Bloom, Charles</a> -- <i>text compression, LZ methods, PPM methods...</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.ime.usp.br/~rbrito">Brito, Roger</a> -- <i>Arithmetic Coding, LZW, Text Compression</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.engineering.usu.edu/ece/faculty/scottb.html">Budge, Scott E.</a> -- <i>medical/lossy image compression</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.elec.uow.edu.au/people/staff/burnett/biography.html">Burnett, Ian</a> -- <i>Speech coding, prototype waveform techniques</I> <img src="new.gif">
|
||||||
|
<p>
|
||||||
|
|
||||||
|
|
||||||
|
<h2>C</h2>
|
||||||
|
|
||||||
|
<a href="http://gabor.eecs.berkeley.edu/~wychan/">Chan, Christopher</a> -- <i>universal lossy source coding, adaptive VQ</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.compsci.com/~chao">Chao, Hong-yang</a> -- <I>Lightning strike image compressor </i>
|
||||||
|
<p>
|
||||||
|
<a href="http://monet.uwaterloo.ca:80/schao/">Chao, Stewart</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://diana.ecs.soton.ac.uk/~pjc94r/">Cherriman, Peter</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://www-video.eecs.berkeley.edu/erl/sccheung.html">Cheung, S.C.</a> -- <i>Scalable video compression algorithms (18th Feb 1996)</i> <img src="new.gif">
|
||||||
|
<p>
|
||||||
|
|
||||||
|
<a href="http://etro.vub.ac.be/chchrist.html">Christopoulos, Charilaos</a> -- <i> Image and Video compression </i>
|
||||||
|
<p>
|
||||||
|
<a href="http://sipi.usc.edu/~chrysafi/">Chrysafis, Christos</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.ee.gatech.edu/research/DSP/students/wchung/index.html">Chung, Wilson C.</a> -- <i>R-D image and video coding, subband/wavelet, filter banks</i>
|
||||||
|
<p>
|
||||||
|
<a href="mailto:aclark@hayes.com">Clark, Alan</a> -- <i>primary contact for V.42bis. Developed BTLZ variant of LZW</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.cs.waikato.ac.nz/cs/Staff/jgc.html">Cleary, John</a> -- <i>PPM, PPM*, K*</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.cs.brandeis.edu/dept/faculty/cohn/">Cohn, Martin</a>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
<a href="http://plg.uwaterloo.ca/~gvcormac">Cormack, Gordon V.</a> -- <I>DMC</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.ee.duke.edu/~cec/index.html">Cramer, Chris</a> -- <i>neural network image compression</i>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
<h2>D</h2>
|
||||||
|
<a href="http://www.cs.dartmouth.edu/~jmd/">Danskin, John</a> -- <i>Protocol compression, document compression (9th Feb 1996)</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.cs.dartmouth.edu/~gdavis">Davis, Geoff</a> -- <i>wavelets, image compression, medical</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://www-mddsp.enel.ucalgary.ca/People/adilger/">Dilger, Andreas</a> -- <i>fractal block coding of video sequences</i>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
|
||||||
|
<h2>E</h2>
|
||||||
|
<a href="http://info.cipic.ucdavis.edu/~estes/index.html">Estes, Robert</a>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h2>F</h2>
|
||||||
|
<a href="http://inls.ucsd.edu/y/Fractals/">Fisher, Yuval</a> -- <i>Fractal Image Compression</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.wmin.ac.uk/~ajoec1/homepage.html">Ford, Adrian</a> -- <i>Subjective and Objective Compression quality (5th Mar 1996)</i> <img src="new.gif">
|
||||||
|
<p>
|
||||||
|
|
||||||
|
<h2>G</h2>
|
||||||
|
<a href="http://www.teaser.fr/~jlgailly/">Jean-loup Gailly</a> --
|
||||||
|
<i>Mr. gzip, PNG, CCR (1996-06-10)</i>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
<a href="http://www.ece.ucsb.edu/faculty/gersho/default.html">Gersho, Allen</a> -- <i>Vector Quantisation, Image Compression</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://life.anu.edu.au/ci/vol1/goertzel.html">Goertzel, Ben</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://info.lut.ac.uk/departments/el/research/sys/compression.html">Gooch, Mark</a> -- <i>High Performance Hardware Compression (7th Feb 1996)</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://robotics.eecs.berkeley.edu/~vkgoyal/">Goyal, Vivek</a> -- <i>overcomplete representations, adaptive transform coding, VQ</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://www-isl.stanford.edu/~gray/">Robert M. Gray</a> -- <i>Signal
|
||||||
|
compression, VQ, image quality evaluation</i><img src="new.gif">
|
||||||
|
<p>
|
||||||
|
|
||||||
|
<h2>H</h2>
|
||||||
|
<a href="http://cork.informatik.uni-wuerzburg.de/mitarbeiter/ulli">Hafner, Ullrich</a> -- <i>WFA image compression</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.ics.uci.edu/~dan/">Hirschberg, Dan</a> -- <i>algorithm theory, compression</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://wolfpack.larc.nasa.gov/holland.html">Holland, Scott</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.csc.uvic.ca/home/nigelh/nigelh.html">Horspool, R. Nigel</a> -- <i>text compression, ECG compression</i>
|
||||||
|
|
||||||
|
<h2>I</h2>
|
||||||
|
<a href="http://www.cs.waikato.ac.nz/~singlis">Inglis, Stuart</a> -- <i>image compression, OCR, lossy/lossless document compression</I>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
<h2>J</h2>
|
||||||
|
<a href="http://www.cs.uiowa.edu/~jones/compress/index.html">Jones, Douglas</a> -- <i>splay-tree based compression and encryption</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://info.lut.ac.uk/departments/el/research/sys/compression.html">Jones, Simon</a> -- <i>Lossless compression, High Performance Hardware (7th Feb 1996) </i>
|
||||||
|
<p>
|
||||||
|
<a href="http://patpwww.epfl.ch:80/~jordan/Subjects/Parallel/parallel.html">Jordan, Frederic</a> -- <i>Parallel Image Compression (12th April 1996)</i> <img src="new.gif">
|
||||||
|
<p>
|
||||||
|
<a href="mailto:robjung@world.std.com">Jung, Robert K.</a> -- <i><a href="http://www.info.fundp.ac.be/~fta/arj.html">ARJ</a> </i>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.cs.tu-berlin.de/~jutta/toast.html">jutta</a>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h2>K</h2>
|
||||||
|
<a href="http://links.uwaterloo.ca">Kominek, John</a> -- <I>Fractal and spline based compression</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://info.lut.ac.uk/departments/el/research/sys/elmk3.html">Kjelso, Morten</a> -- <i>Main memory compression, High performance hardware</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://wwwcip.informatik.uni-erlangen.de/user/mskuhn">Kuhn, Markus</a> -- <i>JBIG implementation</i> <img src="new.gif">
|
||||||
|
<p>
|
||||||
|
<a href="http://sipi.usc.edu/faculty/Kuo.html">Kuo, C.-C. Jay</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://kaarna.cc.jyu.fi:80/~kuru/">Kuru, Esa</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.prz.tu-berlin.de:80/~teo/">Kyfonidis, Theodoros</a>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
<h2>L</h2>
|
||||||
|
<a href="http://www.icsi.berkeley.edu/~lampart/">Lamparter, Bernd</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.cse.ucsc.edu/cgi-bin/faculty?langdon">Langdon, Glen</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.dna.lth.se/~jesper/">Larsson, Jesper</a> -- <i>algorithms and data structures, text compression</i> <img src="new.gif">
|
||||||
|
<p>
|
||||||
|
|
||||||
|
|
||||||
|
<h2>M</h2>
|
||||||
|
<a href="http://glimpse.cs.arizona.edu:1994/udi.html">Manber, Udi</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.elec.rma.ac.be/~jma/compression.html">Mangen, Jean-Michel</a> -- <i>image compression, wavelets, satellite</I>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.cs.mu.oz.au/~alistair">Moffat, Alistair</a> -- <i>text and index compression, coding methods, information retrieval, document databases</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://deskfish.cs.titech.ac.jp/squish/squish_index.html">Montgomery, Christopher</a> -- <i>OggSquish, audio compression</i>
|
||||||
|
<p>
|
||||||
|
<a href="mailto:umueller@amiga.physik.unizh.ch">Mueller, Urban Dominik</a> -- <i>XPK system</I>
|
||||||
|
<p>
|
||||||
|
<h2>N</h2>
|
||||||
|
<a href="ftp://ai.toronto.edu/pub/radford/www/index.html">Neal, Radford</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.cs.waikato.ac.nz/~cgn">Nevill-Manning, Craig</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://phoenix.bath.ac.uk/jez/jez.html">Nicholls, Jeremy</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.acti.com/matt/">Noah, Matt</a> -- <i>speech, ATC, ACELP and IMBE</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.eecs.wsu.edu/~vnuri/">Nuri, Veyis</a> -- <i>wavelets, data compression, DSP (speech & image)</I>
|
||||||
|
|
||||||
|
<h2>O</h2>
|
||||||
|
<a href="ftp://replicant.csci.unt.edu/pub/oleg/README.html">Oleg</a> -- <i>Lots of code</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://sipi.usc.edu/faculty/Ortega/Ortega.html">Ortega, Antonio</a> -- <i>Video compression, Packet video, Adaptive quantization</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.cs.dartmouth.edu:80/~cowen/">Owen, Charles</a>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
<h2>P</h2>
|
||||||
|
<a
|
||||||
|
href="http://www-mddsp.enel.ucalgary.ca/People/provine/compression.html">Provine,
|
||||||
|
Joseph</a> -- <i>Model based coding</i>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
<h2>R</h2>
|
||||||
|
<a href="http://monet.uwaterloo.ca/~john/btpc.html">Robinson, John</a> -- <i>Binary Tree Predictive Coding</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://quest.jpl.nasa.gov/Info-ZIP/people/greg/">Roelofs, Greg</a> -- <i>Info-ZIP; primary UnZip author; PNG group</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.ece.ucsb.edu/faculty/rose/default.html">Rose, Kenneth</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.nettuno.it/fiera/telvox/telvox.htm">Russo, Roberto Maria</a> -- <I>Multiplatform Data Compression</i>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
<h2>S</h2>
|
||||||
|
<a href="http://harc.edu:80/~schmidt/">Schmidt, Bill</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://koa.ifa.hawaii.edu/~shaw/shaw.html">Shaw, Sandy C.</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.comm.toronto.edu/~kamran/kamran.html">Sharifi, Kamran</a> -- <i>Video over ATM networks</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://calypso.unl.edu/~sunil/">Shende, Sunil M.</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://viewprint2.berkeley.edu/KleinLab/Amnon/Amnon.html">Silverstein, D. Amnon</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://www-plateau.cs.berkeley.edu/people/smoot">Smoot, Steve</a> -- <i>MPEG</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.cs.brandeis.edu/dept/faculty/storer/">Storer, James A.</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://rice.ecs.soton.ac.uk/index.html">Streit, Jurgen</a> -- <i>Low bitrate coding</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://www_nt.e-technik.uni-rostock.de/~ts/index.html">Strutz, Tilo</a> -- <i>Wavelet image compressor, demonstration execs</i> <img src="new.gif">
|
||||||
|
<p>
|
||||||
|
|
||||||
|
|
||||||
|
<h2>T</h2>
|
||||||
|
<a href="http://zaphod.csci.unt.edu:80/~srt/">Tate, Steve</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.cs.waikato.ac.nz/~wjt">Teahan, Bill</a> -- <i>PPM, PPM*, master of the Calgary Corpus</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://lightning.eee.strath.ac.uk/~duncan/">Thomson, Duncan</a> -- <i>ECG compression with ANNs</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://outside.gsfc.nasa.gov/GRSS/">Tilton, James C.</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.uni-karlsruhe.de/~un55/">Tomczyk, Marek</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://munkora.cs.mu.oz.au/~aht">Turpin, Andrew</a> -- <i>Prefix Codes</i>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
<h2>V</h2>
|
||||||
|
<a href="http://gabor.eecs.berkeley.edu/~martin/">Vetterli, Martin</a> -- <i>wavelets, subband coding, video compression, computational complexity</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.cs.duke.edu/~jsv/HomePage.html">Vitter, Jeff</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.eee.strath.ac.uk/~stathis/home.html">Voukelatos, Stathis</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.xs4all.nl/~aipnl">de Vries, Nico</a> -- <i>AIP-NL, UltraCompressor II development</i> <img src="new.gif">
|
||||||
|
<p>
|
||||||
|
|
||||||
|
<h2>W</h2>
|
||||||
|
|
||||||
|
<a href="http://ipcl.ee.queensu.ca/wareham/wareham.html">Wareham, Paul</a> -- <i>Region-oriented video coding</I>
|
||||||
|
<p>
|
||||||
|
<a href="mailto://Wegs59@aol.com">Wegener, Al</a> -- <i>DSP, lossless audio compression and AC-2</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://www-dsp.rice.edu:80/~weid/">Wei, Dong</a> -- <i>Wavelet compression</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.rocksoft.com/~ross">Williams, Ross</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.cs.waikato.ac.nz/~ihw">Witten, Ian</a> -- <i>PPM, mg, arithmetic coding</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.sees.bangor.ac.uk/~gerry/sp_summary.html">Wolff, Gerry</a>
|
||||||
|
<p>
|
||||||
|
<a href="http://sipi.usc.edu/~wwoo/">Woo, Woon-Tack</a> -- <i>stereo image and video compression (12th Feb 1996)</i>
|
||||||
|
<p>
|
||||||
|
<a href="http://www.csd.uwo.ca/faculty/wu/">Wu, Xiaolin</a> -- <i>CALIC</i>
|
||||||
|
<P>
|
||||||
|
|
||||||
|
|
||||||
|
<h2>Z</h2>
|
||||||
|
<a href="http://www.cs.rmit.edu.au/~jz">Zobel, Justin</a> -- <i>index compression, database compression</i>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
|
||||||
|
<a name="Conferences">
|
||||||
|
|
||||||
|
<h2><i>Conferences</i></h2>
|
||||||
|
<a href="http://www.cs.brandeis.edu:80/~dcc/index.html"><b>Data Compression Conference (DCC), Snowbird, Utah, USA.</b></a><br>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
<a name="Resources">
|
||||||
|
|
||||||
|
<h2><i>Resources</i></h2>
|
||||||
|
<dt>
|
||||||
|
<i><b>Where to get answers...</b></i>
|
||||||
|
<dd>
|
||||||
|
<dd><a href="http://info.itu.ch/">International Telecommunication Union (ITU)</a> -- <i>standards documents (CCITT)</i>
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://www.cis.ohio-state.edu/hypertext/faq/usenet/compression-faq/top.html">comp.compression -- Frequently Asked Questions</a> -- <i>Come here 1st!</i>
|
||||||
|
<dd>
|
||||||
|
<a href="http://www.cis.ohio-state.edu/hypertext/faq/usenet/jpeg-faq/faq.html">JPEG - Frequently Asked Questions</a>
|
||||||
|
<dd>
|
||||||
|
<a href="http://www.crs4.it/HTML/LUIGI/MPEG/mpegfaq.html">MPEG - Frequently Asked Questions</a>
|
||||||
|
<dd>
|
||||||
|
<a href="ftp://rtfm.mit.edu:/pub/usenet/news.answers/standards-faq">Standards - Frequenty Asked Questions</a>
|
||||||
|
<dd>
|
||||||
|
<a href="news:comp.compression.research">usenet newsgroup: comp.compression.research</a>
|
||||||
|
<br>
|
||||||
|
<dd>
|
||||||
|
<a href="http://www.mi.net/act/act.html">Archive Compression Test</a> -- <i>Summary of all archivers</i>
|
||||||
|
<br>
|
||||||
|
<dd>
|
||||||
|
<a href="http://dip1.ee.uct.ac.za/fractal.bib.html">Fractal compression bibliography</a> -- <i>bibtex file</i>
|
||||||
|
<br>
|
||||||
|
<dd>
|
||||||
|
<a href="http://goethe.ira.uka.de/edu/proseminar.html">LZ/Complexity Seminars</a> -- <i>(in German)</i>
|
||||||
|
<br>
|
||||||
|
<dd>
|
||||||
|
<a href="http://www.cs.waikato.ac.nz/~singlis/ratios.html">Comparitive Compression Ratios</a> -- <i>Sofar...B&W, Gray Scale, Text Compression</i>
|
||||||
|
<br>
|
||||||
|
<dd>
|
||||||
|
<a href="http://www.cs.ucl.ac.uk/mice/mpeggloss.html">VCN (Video, Compression, Networking)
|
||||||
|
Glossary</a>
|
||||||
|
<br>
|
||||||
|
<dd>
|
||||||
|
<a href="http://www.cs.waikato.ac.nz/~nzdl/">Digital Library -- search for compression</a>
|
||||||
|
<br>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<dt>
|
||||||
|
<i><b>Reports/Ph.D. Theses</b></i>
|
||||||
|
<dd>
|
||||||
|
<a href="http://www.cs.brown.edu/publications/techreports/reports/CS-93-28.html">Paul Howards Ph.D. thesis</a><br>
|
||||||
|
<dd><i>The Design and Analysis of Efficient Lossless Data Compression Systems</i>
|
||||||
|
<br>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<dt>
|
||||||
|
<i><b>Source code</b></i>
|
||||||
|
<dd>
|
||||||
|
<a href="ftp://munnari.oz.au/pub/arith_coder">Arithmetic coding routines</a>
|
||||||
|
<dd><i>        (from Moffat, Neal and Witten, Proc. DCC, April 1995)</i>
|
||||||
|
<br>
|
||||||
|
<dd>
|
||||||
|
<a href="ftp://ftp.cpsc.ucalgary.ca/pub/projects/ar.cod">CACM Arithmetic coding package</a>
|
||||||
|
<dd><i>        (Witten, Neal and Cleary, CACM 30:520-541, June 1987)</i>
|
||||||
|
<br>
|
||||||
|
<dd>
|
||||||
|
<a href="ftp://nic.funet.fi/pub/graphics/misc/test-images/jbig.tar.gz">JBIG Source code</a> <i>Includes a Q-coder</i>
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://wwwcip.informatik.uni-erlangen.de/user/mskuhn">Markus Kuhn's JBIG implementation</a>
|
||||||
|
<br>
|
||||||
|
<dd>
|
||||||
|
<a href="ftp://media-lab.media.mit.edu/pub/k-arith-code/">k-arithmetic coder</a>
|
||||||
|
<br>
|
||||||
|
<dd>
|
||||||
|
<a href="ftp://garbo.uwasa.fi/pc/programming/lds_11.zip">Lossless Data Compression toolkit 1.1</a>
|
||||||
|
<br>
|
||||||
|
<dd>
|
||||||
|
<a href="http://www.cs.uiowa.edu/~jones/compress/index.html">Splay Trees Code</a> -- <i>by Douglas W. Jones</i>
|
||||||
|
<br>
|
||||||
|
<dd><a href="ftp://ftp.cl.cam.ac.uk/users/djw3">Block compression code</a> -- <i>Excellent text compressor</i>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<dt>
|
||||||
|
<i><b>Test Files</b></i>
|
||||||
|
<dd>
|
||||||
|
<a href="ftp://nic.funet.fi/pub/graphics/misc/test-images/">Test Images</a> -- <i>CCITT images (pbm), Lena etc. (Sun raster)</i>
|
||||||
|
<br>
|
||||||
|
<dd>
|
||||||
|
Stockholm test images -- <i>You have to buy a CDROM, thats all I know! :-(</i>
|
||||||
|
<dd>         mail me at <a href="mailto:singlis@cs.waikato.ac.nz">singlis@cs.waikato.ac.nz</a> if you know anything about them.
|
||||||
|
<br>
|
||||||
|
<dd>
|
||||||
|
<a href="ftp://ftp.cpsc.ucalgary.ca/pub/projects/text.compression.corpus/">Calgary Text Compression Corpus</a><i> (Text Compression, Bell, Cleary and Witten, 1990)</i>
|
||||||
|
<br>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<a name="Research">
|
||||||
|
|
||||||
|
|
||||||
|
<h2><i>Research Projects, Standards & Companies</i></h2>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<dt>
|
||||||
|
<i><b>Research/Free software Groups</b></i>
|
||||||
|
<dd><a href="http://www-isl.stanford.edu/~gray/compression.html">Compression and
|
||||||
|
Classification Group</a> -- <i>ISL,EE,Stanford (22th April 1996)</i><img src="new.gif">
|
||||||
|
|
||||||
|
<dd><a href="http://www.bonzi.com">Voice email</a> -- <i>Lossless audio compression (18th Feb 1996)</i>
|
||||||
|
|
||||||
|
|
||||||
|
<dd><a href="http://www.garlic.com/biz/eotek">Electro-Optical Technologies, Inc.</a> -- <i>Consultant (12th April 1996)</i> <img src="new.gif">
|
||||||
|
|
||||||
|
<dd><a href="http://quicktime.apple.com">quicktime.apple.com</a> -- <i>Quicktime site (11th Mar 1996)</i>
|
||||||
|
|
||||||
|
<dd><a href="http://www.atinternet.fr/image/">IMAGE etc.</a> -- <i>Commercial image compression software (Fractals/Wavelets) (29th Feb 1996)</i> <img src="new.gif">
|
||||||
|
|
||||||
|
<dd><a href="http://re7alpha.epm.ornl.gov/CcmDemo/">NCAR CCM Compression and Visualisation</a> -- <i>(18th Feb 1996)</i> <img src="new.gif">
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://ipl.rpi.edu/SPIHT/">SPIHT</a> -- <I>Wavelet Natural Image Compressor (12th Feb 1996)</i> <img src="new.gif">
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://info.lut.ac.uk/departments/el/research/sys/compression.html">Real-Time Lossless Compression Systems</a> -- <i>Loughborough University</i> <img src="new.gif">
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://saigon.ece.wisc.edu/~waveweb/QMF.html">Web site for Multirate Signal Processing</a> -- <i>University of Wisconsin, Madison</i>
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://quest.jpl.nasa.gov/Info-ZIP/">Info-ZIP</a> -- <i>free,
|
||||||
|
portable Zip and UnZip utilities</i>
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://cesdis.gsfc.nasa.gov/">CEDIS</a> -- <i>NASA, Maryland, Image/data compression</i>
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://www.c3.lanl.gov/~brislawn/ftp.html">CIC-3 Image Compression</a> -- <i>FBI Fingerprints</i>
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://rainbow.ece.ucsb.edu/scl.html">Signal Compression Lab at UCSB</a>
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://isdl.ee.washington.edu/COMPRESSION/homepage.html">University of
|
||||||
|
Washington compression lab</a> -- <I>VQ, Wavelets, Shlomo</i>
|
||||||
|
<br>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<dt>
|
||||||
|
<i><b>Snippets</b></i>
|
||||||
|
<dd><a href="http://www-isl.stanford.edu/~gray/iii.html">Signal Processing
|
||||||
|
and the International Information Infrastructure</a> -- <i>Web sites (22th April 1996)</i> <img src="new.gif">
|
||||||
|
<dd><a href="http://www.scu.edu.au/ausweb95/papers/management/vanzyl/">Increasing Web bandwith</a> -- <i>comparing GIF, JPEG, Fractal compression</i>
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://www.yahoo.com/Art/Computer_Generated/Fractals">Fractal Links on Yahoo</a>
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://www.ddj.com/old/ddjw001d.htm">Digital Speech Compression GSM 06.10 RPE-LTP</a> -- <i>DDJ</i>
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://www.crc.ricoh.com/CREW/">CREW</a> -- <i>Continuous tone loss(y/less) wavelet compression</i>
|
||||||
|
<br>
|
||||||
|
<dd><a href="ftp://ftp.csd.uwo.ca/pub/from_wu/">CALIC -- Context-based adaptive lossless image compressor</a>
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://www-plateau.cs.berkeley.edu/mpeg/index.html">Berkeley MPEG</a> -- <i>MPEG tools</i>
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://www.creative.net/~tristan/MPEG">MPEG Pointers and Resources</a>
|
||||||
|
<BR>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<dt>
|
||||||
|
<i><b>Wavelets</b></i>
|
||||||
|
<dd>
|
||||||
|
<a href="http://www.cis.upenn.edu/~eero/epic.html">
|
||||||
|
EPIC (Efficient Pyramid Image Coder)</a> -- <i>by Eero Simoncelli</i>
|
||||||
|
<br>
|
||||||
|
<dd>
|
||||||
|
<a href="mailto://72234.2617@compuserve.com">Tucker, Michael</a> -- <i>FASTWAVE, audio/image compression</i>
|
||||||
|
<br>
|
||||||
|
<dd>
|
||||||
|
<a href="http://www.harc.edu">HARC</a> -- <i>Lossy Wavelet Compression technology</i>
|
||||||
|
<br>
|
||||||
|
<dd>
|
||||||
|
<a href="http://gabor.eecs.berkeley.edu/">UC Berkeley Wavelet Group</a>
|
||||||
|
<br>
|
||||||
|
<dd>
|
||||||
|
<a href="http://www.c3.lanl.gov/~cjhamil/Wavelets/main.html">Khoros Wavetlet and Compression Toolbox</a>
|
||||||
|
<br>
|
||||||
|
<dd>
|
||||||
|
<a href="http://arabigo.math.scarolina.edu:80/~wavelet/">The Wavelet Digest</a>
|
||||||
|
<br>
|
||||||
|
<dd>
|
||||||
|
<a href="http://jazz.rice.edu/publications.html">Rice DSP Publications Archive</a> -- <i>Wavelets, Time Frequency/Scale</i>
|
||||||
|
<br>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<dt>
|
||||||
|
<i><b>Fractals</b></i>
|
||||||
|
<dd>
|
||||||
|
<a href="http://inls.ucsd.edu/y/Fractals/">Fractal Image Compression</a> -- <i>Software, Pointers, Conferences</i>
|
||||||
|
<br>
|
||||||
|
<dd>
|
||||||
|
<a href="http://www.fractal.com/">Fractal Design Corporation</a>
|
||||||
|
<br>
|
||||||
|
<dd>
|
||||||
|
<a href="http://www.webcom.com/~verrando/university/ifs.html">New Fractal Image Compression program</a>
|
||||||
|
<br>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<dt>
|
||||||
|
<i><b>Companies</b></i>
|
||||||
|
<dd><a href="http://www.chips.ibm.com/products/aldc/index.html">IBM Hardware</a> -- <i>Compression chips (11th Mar 1996)</i> <img src="new.gif">
|
||||||
|
|
||||||
|
<dd><a href="http://www.summus.com">Summus Wavelet Technology</a> -- <i>Wavelet image and video compressors (11th Mar 1996)</i> <img src="new.gif">
|
||||||
|
<dd><a href="http://www.mitsubishi.co.jp/jp/fractal/fractal.html">Fractal Image Compression</a> -- <I>Mitsubishi (18th Feb 1996)</i> <img src="new.gif">
|
||||||
|
|
||||||
|
<dd><a href="http://www.terran-int.com/">Terran Interactive</a> -- <i>Video compression for the Mac (1st Feb 1996)</i> <img src="new.gif">
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<dd><a href="http://darvision.kaist.ac.kr/dvmpeg.html">DV Mpeg</a> -- <i>Windows drivers (18th Feb 1996)</I> <img src="new.gif">
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<dd><a href="http://www.crawford.com/cs/welcome.html">Crawford Compression Services</a> -- <i>MPEG post-production (18th Feb 1996)</i> <img src="new.gif">
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<dd><a href="http://www.shore.net/~ict">Intelligent Compression Technologies</a> <i>(18th Feb 1996)</i> <img src="new.gif">
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<dd><a href="http://www.jpg.com">Pegasus Imaging</a> -- <i>Compression software/dev. kits (12th Feb 1996)</i> <img src="new.gif">
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://www.aladdinsys.com/">Aladdin Systems</a> -- <i>StuffIt compression products</i>
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://www.stac.com/">Stac Electronics</a>
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://www.ccinet.ab.ca/dcp.html">DCP Research</a> -- <i>Hardware solutions</i>
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://www.aware.com/product_info/compression_overview.html">Aware Inc.</a> -- <i>Specialised compression company</i>
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://www.inria.fr/rodeo/ivs.html">IVS - INRIA Videoconferencing System</a>
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://sp25.ianus.cineca.it/telvox/telvoxen.htm">Telvox Teleinformatica</a> -- <i>Multiplatform Data Compressor</i>
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://www.compression.com">Compression Technologies,
|
||||||
|
Inc</a> -- <i>Canada</i>
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://www.optivision.com/">Optivision</a> -- <i>MPEG</i>
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://www.pkware.com/">PKWARE</a> -- <i>Makers of PKZIP</i>
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://www.infoanalytic.com/tayson/index.html">Multimedia Imaging Services</a>
|
||||||
|
<br>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<dt>
|
||||||
|
<i><b>Audio compression</b></i>
|
||||||
|
<dd><a href="http://www.iis.fhg.de/departs/amm/index.html"> Fraunhofer Institut für Integrierte Schaltungen</a>
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://svr-www.eng.cam.ac.uk/~ajr/speechCoding.html">Shorten</a>
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://www.ddj.com/old/ddjw001d.htm">digital speech compression</a>
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://www.cs.tu-berlin.de/~phade/audiowww.html">Audio compression references</a>
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://www.fourmilab.ch/speakfree/windows/doc/compress.html">SpeakFreely - compression</a>
|
||||||
|
<br>
|
||||||
|
<dd><a href="http://www.fourmilab.ch/speakfree/windows/speak_freely.html#contents">SpeakFreely - Contents</a>
|
||||||
|
<br>
|
|
@ -0,0 +1,431 @@
|
||||||
|
#ifndef lint
|
||||||
|
static char Rcs_Id[] =
|
||||||
|
"$Id: fields.c,v 1.7 1994/01/06 05:26:37 geoff Exp $";
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* $Log: fields.c,v $
|
||||||
|
* Revision 1.7 1994/01/06 05:26:37 geoff
|
||||||
|
* Get rid of all references to System V string routines, for portability
|
||||||
|
* (sigh).
|
||||||
|
*
|
||||||
|
* Revision 1.6 1994/01/05 20:13:43 geoff
|
||||||
|
* Add the maxf parameter
|
||||||
|
*
|
||||||
|
* Revision 1.5 1994/01/04 02:40:21 geoff
|
||||||
|
* Make the increments settable (field_line_inc and field_field_inc).
|
||||||
|
* Add support for the FLD_NOSHRINK flag.
|
||||||
|
*
|
||||||
|
* Revision 1.4 1993/09/27 17:48:02 geoff
|
||||||
|
* Fix some lint complaints and some parenthesization errors.
|
||||||
|
*
|
||||||
|
* Revision 1.3 1993/09/09 01:11:11 geoff
|
||||||
|
* Add a return value to fieldwrite. Add support for backquotes and for
|
||||||
|
* unstripped backslashes.
|
||||||
|
*
|
||||||
|
* Revision 1.2 1993/08/26 00:02:50 geoff
|
||||||
|
* Fix a stupid null-pointer bug
|
||||||
|
*
|
||||||
|
* Revision 1.1 1993/08/25 21:32:05 geoff
|
||||||
|
* Initial revision
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include "config.h"
|
||||||
|
#include "fields.h"
|
||||||
|
|
||||||
|
field_t * fieldread P ((FILE * file, char * delims,
|
||||||
|
int flags, int maxf));
|
||||||
|
/* Read a line with fields from a file */
|
||||||
|
field_t * fieldmake P ((char * line, int allocated, char * delims,
|
||||||
|
int flags, int maxf));
|
||||||
|
/* Make a field structure from a line */
|
||||||
|
static field_t * fieldparse P ((field_t * fieldp, char * line, char * delims,
|
||||||
|
int flags, int maxf));
|
||||||
|
/* Parse the fields in a line */
|
||||||
|
static int fieldbackch P ((char * str, char ** out, int strip));
|
||||||
|
/* Process backslash sequences */
|
||||||
|
int fieldwrite P ((FILE * file, field_t * fieldp, int delim));
|
||||||
|
/* Write a line with fields to a file */
|
||||||
|
void fieldfree P ((field_t * fieldp));
|
||||||
|
/* Free a field returned by fieldread */
|
||||||
|
|
||||||
|
unsigned int field_field_inc = 20; /* Increment to increase # fields by */
|
||||||
|
unsigned int field_line_inc = 512; /* Incr to increase line length by */
|
||||||
|
|
||||||
|
#ifndef USG
|
||||||
|
#define strchr index
|
||||||
|
#endif /* USG */
|
||||||
|
|
||||||
|
extern void free ();
|
||||||
|
extern char * malloc ();
|
||||||
|
extern char * realloc ();
|
||||||
|
extern char * strchr ();
|
||||||
|
extern int strlen ();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Read one line of the given file into a buffer, break it up into
|
||||||
|
* fields, and return them to the caller. The field_t structure
|
||||||
|
* returned must eventually be freed with fieldfree.
|
||||||
|
*/
|
||||||
|
field_t * fieldread (file, delims, flags, maxf)
|
||||||
|
FILE * file; /* File to read lines from */
|
||||||
|
char * delims; /* Characters to use for field delimiters */
|
||||||
|
int flags; /* Option flags; see fields.h */
|
||||||
|
int maxf; /* Maximum number of fields to parse */
|
||||||
|
{
|
||||||
|
register char * linebuf; /* Buffer to hold the line read in */
|
||||||
|
int linemax; /* Maximum line buffer size */
|
||||||
|
int linesize; /* Current line buffer size */
|
||||||
|
|
||||||
|
linebuf = (char *) malloc (field_line_inc);
|
||||||
|
if (linebuf == NULL)
|
||||||
|
return NULL;
|
||||||
|
linemax = field_line_inc;
|
||||||
|
linesize = 0;
|
||||||
|
/*
|
||||||
|
* Read in the line.
|
||||||
|
*/
|
||||||
|
while (fgets (&linebuf[linesize], linemax - linesize, file)
|
||||||
|
!= NULL)
|
||||||
|
{
|
||||||
|
linesize += strlen (&linebuf[linesize]);
|
||||||
|
if (linebuf[linesize - 1] == '\n')
|
||||||
|
break;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
linemax += field_line_inc;
|
||||||
|
linebuf = (char *) realloc (linebuf, linemax);
|
||||||
|
if (linebuf == NULL)
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (linesize == 0)
|
||||||
|
{
|
||||||
|
free (linebuf);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
return fieldmake (linebuf, 1, delims, flags, maxf);
|
||||||
|
}
|
||||||
|
|
||||||
|
field_t * fieldmake (line, allocated, delims, flags, maxf)
|
||||||
|
char * line; /* Line to make into a field structure */
|
||||||
|
int allocated; /* NZ if line allocated with malloc */
|
||||||
|
char * delims; /* Characters to use for field delimiters */
|
||||||
|
int flags; /* Option flags; see fields.h */
|
||||||
|
int maxf; /* Maximum number of fields to parse */
|
||||||
|
{
|
||||||
|
register field_t * fieldp; /* Structure describing the fields */
|
||||||
|
int linesize; /* Current line buffer size */
|
||||||
|
|
||||||
|
fieldp = (field_t *) malloc (sizeof (field_t));
|
||||||
|
if (fieldp == NULL)
|
||||||
|
return NULL;
|
||||||
|
fieldp->nfields = 0;
|
||||||
|
fieldp->linebuf = allocated ? line : NULL;
|
||||||
|
fieldp->fields = NULL;
|
||||||
|
fieldp->hadnl = 0;
|
||||||
|
linesize = strlen (line);
|
||||||
|
if (line[linesize - 1] == '\n')
|
||||||
|
{
|
||||||
|
line[--linesize] = '\0';
|
||||||
|
fieldp->hadnl = 1;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
* Shrink the line buffer if necessary.
|
||||||
|
*/
|
||||||
|
if (allocated && (flags & FLD_NOSHRINK) == 0)
|
||||||
|
{
|
||||||
|
line = fieldp->linebuf =
|
||||||
|
(char *) realloc (fieldp->linebuf, linesize + 1);
|
||||||
|
if (fieldp->linebuf == NULL)
|
||||||
|
{
|
||||||
|
fieldfree (fieldp);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return fieldparse (fieldp, line, delims, flags, maxf);
|
||||||
|
}
|
||||||
|
|
||||||
|
static field_t * fieldparse (fieldp, line, delims, flags, maxf)
|
||||||
|
register field_t * fieldp; /* Field structure to parse into */
|
||||||
|
register char * line; /* Line to be parsed */
|
||||||
|
char * delims; /* Characters to use for field delimiters */
|
||||||
|
int flags; /* Option flags; see fields.h */
|
||||||
|
int maxf; /* Maximum number of fields to parse */
|
||||||
|
{
|
||||||
|
int fieldmax; /* Max size of fields array */
|
||||||
|
char * lineout; /* Where to store xlated char in line */
|
||||||
|
char quote; /* Quote character in use */
|
||||||
|
|
||||||
|
fieldp->nfields = 0;
|
||||||
|
fieldmax =
|
||||||
|
(maxf != 0 && maxf < field_field_inc) ? maxf + 2 : field_field_inc;
|
||||||
|
fieldp->fields = (char **) malloc (fieldmax * sizeof (char *));
|
||||||
|
if (fieldp->fields == NULL)
|
||||||
|
{
|
||||||
|
fieldfree (fieldp);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
if ((flags
|
||||||
|
& (FLD_SHQUOTES | FLD_SNGLQUOTES | FLD_BACKQUOTES | FLD_DBLQUOTES))
|
||||||
|
== FLD_SHQUOTES)
|
||||||
|
flags |= FLD_SNGLQUOTES | FLD_BACKQUOTES | FLD_DBLQUOTES;
|
||||||
|
while (1)
|
||||||
|
{
|
||||||
|
if (flags & FLD_RUNS)
|
||||||
|
{
|
||||||
|
while (*line != '\0' && strchr (delims, *line) != NULL)
|
||||||
|
line++; /* Skip runs of delimiters */
|
||||||
|
if (*line == '\0')
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
fieldp->fields[fieldp->nfields] = lineout = line;
|
||||||
|
/*
|
||||||
|
* Skip to the next delimiter. At the end of skipping, "line" will
|
||||||
|
* point to either a delimiter or a null byte.
|
||||||
|
*/
|
||||||
|
if (flags
|
||||||
|
& (FLD_SHQUOTES | FLD_SNGLQUOTES | FLD_BACKQUOTES
|
||||||
|
| FLD_DBLQUOTES | FLD_BACKSLASH))
|
||||||
|
{
|
||||||
|
while (*line != '\0')
|
||||||
|
{
|
||||||
|
if (strchr (delims, *line) != NULL)
|
||||||
|
break;
|
||||||
|
else if (((flags & FLD_SNGLQUOTES) && *line == '\'')
|
||||||
|
|| ((flags & FLD_BACKQUOTES) && *line == '`')
|
||||||
|
|| ((flags & FLD_DBLQUOTES) && *line == '"'))
|
||||||
|
{
|
||||||
|
if ((flags & FLD_SHQUOTES) == 0
|
||||||
|
&& line != fieldp->fields[fieldp->nfields])
|
||||||
|
quote = '\0';
|
||||||
|
else
|
||||||
|
quote = *line;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
quote = '\0';
|
||||||
|
if (quote == '\0')
|
||||||
|
{
|
||||||
|
if (*line == '\\' && (flags & FLD_BACKSLASH))
|
||||||
|
{
|
||||||
|
line++;
|
||||||
|
if (*line == '\0')
|
||||||
|
break;
|
||||||
|
line += fieldbackch (line, &lineout,
|
||||||
|
flags & FLD_STRIPQUOTES);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
*lineout++ = *line++;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* Process quoted string */
|
||||||
|
if ((flags & FLD_STRIPQUOTES) == 0)
|
||||||
|
*lineout++ = quote;
|
||||||
|
++line;
|
||||||
|
while (*line != '\0')
|
||||||
|
{
|
||||||
|
if (*line == quote)
|
||||||
|
{
|
||||||
|
if ((flags & FLD_STRIPQUOTES) == 0)
|
||||||
|
*lineout++ = quote;
|
||||||
|
line++; /* Go on past quote */
|
||||||
|
if ((flags & FLD_SHQUOTES) == 0)
|
||||||
|
{
|
||||||
|
while (*line != '\0'
|
||||||
|
&& strchr (delims, *line) == NULL)
|
||||||
|
line++; /* Skip to delimiter */
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
else if (*line == '\\')
|
||||||
|
{
|
||||||
|
if (flags & FLD_BACKSLASH)
|
||||||
|
{
|
||||||
|
line++;
|
||||||
|
if (*line == '\0')
|
||||||
|
break;
|
||||||
|
else
|
||||||
|
line += fieldbackch (line, &lineout,
|
||||||
|
flags & FLD_STRIPQUOTES);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
*lineout++ = '\\';
|
||||||
|
if (*++line == '\0')
|
||||||
|
break;
|
||||||
|
*lineout++ = *line;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
*lineout++ = *line++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
while (*line != '\0' && strchr (delims, *line) == NULL)
|
||||||
|
line++; /* Skip to delimiter */
|
||||||
|
lineout = line;
|
||||||
|
}
|
||||||
|
fieldp->nfields++;
|
||||||
|
if (*line++ == '\0')
|
||||||
|
break;
|
||||||
|
if (maxf != 0 && fieldp->nfields > maxf)
|
||||||
|
break;
|
||||||
|
*lineout = '\0';
|
||||||
|
if (fieldp->nfields >= fieldmax)
|
||||||
|
{
|
||||||
|
fieldmax += field_field_inc;
|
||||||
|
fieldp->fields =
|
||||||
|
(char **) realloc (fieldp->fields, fieldmax * sizeof (char *));
|
||||||
|
if (fieldp->fields == NULL)
|
||||||
|
{
|
||||||
|
fieldfree (fieldp);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
* Shrink the field pointers and return the field structure.
|
||||||
|
*/
|
||||||
|
if ((flags & FLD_NOSHRINK) == 0 && fieldp->nfields >= fieldmax)
|
||||||
|
{
|
||||||
|
fieldp->fields = (char **) realloc (fieldp->fields,
|
||||||
|
(fieldp->nfields + 1) * sizeof (char *));
|
||||||
|
if (fieldp->fields == NULL)
|
||||||
|
{
|
||||||
|
fieldfree (fieldp);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fieldp->fields[fieldp->nfields] = NULL;
|
||||||
|
return fieldp;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int fieldbackch (str, out, strip)
|
||||||
|
register char * str; /* First char of backslash sequence */
|
||||||
|
register char ** out; /* Where to store result */
|
||||||
|
int strip; /* NZ to convert the sequence */
|
||||||
|
{
|
||||||
|
register int ch; /* Character being developed */
|
||||||
|
char * origstr; /* Original value of str */
|
||||||
|
|
||||||
|
if (!strip)
|
||||||
|
{
|
||||||
|
*(*out)++ = '\\';
|
||||||
|
if (*str != 'x' && *str != 'X' && (*str < '0' || *str > '7'))
|
||||||
|
{
|
||||||
|
*(*out)++ = *str;
|
||||||
|
return *str != '\0';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
switch (*str)
|
||||||
|
{
|
||||||
|
case '\0':
|
||||||
|
*(*out)++ = '\0';
|
||||||
|
return 0;
|
||||||
|
case 'a':
|
||||||
|
*(*out)++ = '\007';
|
||||||
|
return 1;
|
||||||
|
case 'b':
|
||||||
|
*(*out)++ = '\b';
|
||||||
|
return 1;
|
||||||
|
case 'f':
|
||||||
|
*(*out)++ = '\f';
|
||||||
|
return 1;
|
||||||
|
case 'n':
|
||||||
|
*(*out)++ = '\n';
|
||||||
|
return 1;
|
||||||
|
case 'r':
|
||||||
|
*(*out)++ = '\r';
|
||||||
|
return 1;
|
||||||
|
case 'v':
|
||||||
|
*(*out)++ = '\v';
|
||||||
|
return 1;
|
||||||
|
case 'X':
|
||||||
|
case 'x':
|
||||||
|
/* Hexadecimal sequence */
|
||||||
|
origstr = str++;
|
||||||
|
ch = 0;
|
||||||
|
if (*str >= '0' && *str <= '9')
|
||||||
|
ch = *str++ - '0';
|
||||||
|
else if (*str >= 'a' && *str <= 'f')
|
||||||
|
ch = *str++ - 'a' + 0xa;
|
||||||
|
else if (*str >= 'A' && *str <= 'F')
|
||||||
|
ch = *str++ - 'A' + 0xa;
|
||||||
|
if (*str >= '0' && *str <= '9')
|
||||||
|
ch = (ch << 4) | (*str++ - '0');
|
||||||
|
else if (*str >= 'a' && *str <= 'f')
|
||||||
|
ch = (ch << 4) | (*str++ - 'a' + 0xa);
|
||||||
|
else if (*str >= 'A' && *str <= 'F')
|
||||||
|
ch = (ch << 4) | (*str++ - 'A' + 0xa);
|
||||||
|
break;
|
||||||
|
case '0':
|
||||||
|
case '1':
|
||||||
|
case '2':
|
||||||
|
case '3':
|
||||||
|
case '4':
|
||||||
|
case '5':
|
||||||
|
case '6':
|
||||||
|
case '7':
|
||||||
|
/* Octal sequence */
|
||||||
|
origstr = str;
|
||||||
|
ch = *str++ - '0';
|
||||||
|
if (*str >= '0' && *str <= '7')
|
||||||
|
ch = (ch << 3) | (*str++ - '0');
|
||||||
|
if (*str >= '0' && *str <= '7')
|
||||||
|
ch = (ch << 3) | (*str++ - '0');
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
*(*out)++ = *str;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
if (strip)
|
||||||
|
{
|
||||||
|
*(*out)++ = ch;
|
||||||
|
return str - origstr;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
for (ch = 0; origstr < str; ch++)
|
||||||
|
*(*out)++ = *origstr++;
|
||||||
|
return ch;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
int fieldwrite (file, fieldp, delim)
|
||||||
|
FILE * file; /* File to write to */
|
||||||
|
register field_t * fieldp; /* Field structure to write */
|
||||||
|
int delim; /* Delimiter to place between fields */
|
||||||
|
{
|
||||||
|
int error; /* NZ if an error occurs */
|
||||||
|
register int fieldno; /* Number of field being written */
|
||||||
|
|
||||||
|
error = 0;
|
||||||
|
for (fieldno = 0; fieldno < fieldp->nfields; fieldno++)
|
||||||
|
{
|
||||||
|
if (fieldno != 0)
|
||||||
|
error |= putc (delim, file) == EOF;
|
||||||
|
error |= fputs (fieldp->fields[fieldno], file) == EOF;
|
||||||
|
}
|
||||||
|
if (fieldp->hadnl)
|
||||||
|
error |= putc ('\n', file) == EOF;
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
|
void fieldfree (fieldp)
|
||||||
|
register field_t * fieldp; /* Field structure to free */
|
||||||
|
{
|
||||||
|
|
||||||
|
if (fieldp == NULL)
|
||||||
|
return;
|
||||||
|
if (fieldp->linebuf != NULL)
|
||||||
|
free ((char *) fieldp->linebuf);
|
||||||
|
if (fieldp->fields != NULL)
|
||||||
|
free ((char *) fieldp->fields);
|
||||||
|
free ((char *) fieldp);
|
||||||
|
}
|
Binary file not shown.
|
@ -0,0 +1,94 @@
|
||||||
|
;;; -*- Mode: Lisp; Syntax: Common-Lisp; -*-
|
||||||
|
|
||||||
|
(define-language
|
||||||
|
:grammar
|
||||||
|
'(((S $any) -> (S1 $any))
|
||||||
|
((S (Compound $s1 $s2)) -> (S1 $s1) (Conjunction) (S1 $s2))
|
||||||
|
|
||||||
|
((S1 (Statement $v)) -> (NP $subj) (VP $subj $tense $v))
|
||||||
|
((S1 (Acknowledge $a)) -> (Acknowledge $a))
|
||||||
|
((S1 (Command $v)) -> (VP Self present $v))
|
||||||
|
((S1 (Question $v)) -> (Aux $tense) (NP $subj) (VP $subj $tense $v))
|
||||||
|
((S1 (Question $v)) -> (Be $tense) (NP $subj) (Be-Arg $subj $tense $v))
|
||||||
|
|
||||||
|
((Be-Arg $subj $tense (Occur $tense (loc $subj $loc))) ->
|
||||||
|
(Loc-Adjunct $tense (loc $subj $loc)))
|
||||||
|
|
||||||
|
((VP $subj $tense (Occur $tense $v)) -> (VP1 $subj $tense $v))
|
||||||
|
((VP $subj $tense (Occur $tense $v)) -> (Aux $tense)(VP1 $subj present $v))
|
||||||
|
|
||||||
|
((VP1 $subj $tense $v) -> (VP2 $subj $tense $v) (Adjunct? $v))
|
||||||
|
|
||||||
|
((VP2 $subj $tense ($rel $subj $loc)) ->
|
||||||
|
(Verb/in $rel $tense))
|
||||||
|
((VP2 $subj $tense ($rel $subj $loc $obj)) ->
|
||||||
|
(Verb/tr $rel $tense) (NP $obj))
|
||||||
|
((VP2 $subj $tense ($rel $subj $loc $obj $obj2)) ->
|
||||||
|
(Verb/di $rel $tense) (NP $obj) (NP $obj2))
|
||||||
|
((VP2 $subj $tense (loc $subj $loc)) ->
|
||||||
|
(Be $tense) (Loc-Adjunct $tense (loc $subj $loc)))
|
||||||
|
|
||||||
|
((NP $n) -> (Pronoun $n))
|
||||||
|
((NP $n) -> (Article) (Noun $n))
|
||||||
|
((NP $n) -> (Noun $n))
|
||||||
|
((NP ($x $y)) -> (Number $x) (Number $y))
|
||||||
|
|
||||||
|
((PP ($prep $n)) -> (Prep $prep) (NP $n))
|
||||||
|
((Adjunct? $v) ->)
|
||||||
|
((Adjunct? $v) -> (Loc-Adjunct $tense $v))
|
||||||
|
#+Allegro ((Loc-Adjunct $tense ($rel $subj $loc @rest)) -> (PP $loc))
|
||||||
|
#+Allegro ((Loc-Adjunct $tense ($rel $subj $loc @rest)) -> (Adjunct $loc))
|
||||||
|
#+Lucid ((Loc-Adjunct $tense ($rel $subj $loc . $rest)) -> (PP $loc))
|
||||||
|
#+Lucid ((Loc-Adjunct $tense ($rel $subj $loc . $rest)) -> (Adjunct $loc))
|
||||||
|
|
||||||
|
)
|
||||||
|
:lexicon
|
||||||
|
'(
|
||||||
|
((Acknowledge $a) -> (yes true) (no false) (maybe unknown) (huh unparsed))
|
||||||
|
((Adjunct $loc) -> here there (nearby near) near left right up down)
|
||||||
|
((Article) -> a an the)
|
||||||
|
((Aux $tense) -> (will future) (did past) (do $finite))
|
||||||
|
((Be $tense) -> (am present) (are present) (is present) (be $finite)
|
||||||
|
(was past) (were past))
|
||||||
|
((Conjunction) -> and --)
|
||||||
|
((Noun $n) -> gold Wumpus pit breeze stench glitter nothing)
|
||||||
|
((Number $n) -> 0 1 2 3 4 5 6 7 8 9)
|
||||||
|
((Prep $prep) -> in at to near)
|
||||||
|
((Pronoun $n) -> (you self) (me master) (I master))
|
||||||
|
|
||||||
|
((Verb/in $rel $tense) -> (go move $finite) (went move past)
|
||||||
|
(move move $finite) (move move past) (shoot shoot $finite))
|
||||||
|
((Verb/tr $rel $tense) -> (move carry $finite) (moved carry past)
|
||||||
|
(carry carry $finite) (carry carried past)
|
||||||
|
(grab grab $finite) (grab grabbed past) (get grab $finite)
|
||||||
|
(got grab past) (release release $finite) (release release past)
|
||||||
|
(drop release $finite) (dropped release past) (shoot shoot-at $finite)
|
||||||
|
(shot shoot-at past) (kill shoot-at $finite) (killed shoot-at past)
|
||||||
|
(smell perceive $finite) (feel perceive $finite) (felt perceive past))
|
||||||
|
((Verb/di $rel $tense) -> (bring bring $finite) (brought bring past)
|
||||||
|
(get bring $finite) (got bring past))
|
||||||
|
))
|
||||||
|
|
||||||
|
(defparameter *sentences*
|
||||||
|
'((I will shoot the wumpus at 4 4)
|
||||||
|
(yes)
|
||||||
|
(You went right -- I will go left)
|
||||||
|
(carry the gold)
|
||||||
|
(yes and no)
|
||||||
|
(did you bring me the gold)
|
||||||
|
(a breeze is here -- I am near 5 3)
|
||||||
|
(a stench is in 3 5)
|
||||||
|
(a pit is nearby)
|
||||||
|
(is the wumpus near)
|
||||||
|
(Did you go to 3 8)
|
||||||
|
(Yes -- Nothing is there)
|
||||||
|
(Shoot -- Shoot left)
|
||||||
|
(Kill the wumpus -- shoot up)))
|
||||||
|
|
||||||
|
(defun ss (&optional (sentences *sentences*))
|
||||||
|
"Run some test sentences, and count how many were not parsed."
|
||||||
|
(count-if-not
|
||||||
|
#'(lambda (s)
|
||||||
|
(format t "~2&>>> ~(~{~a ~}~)~%" s)
|
||||||
|
(write (second (parse s)) :pretty t))
|
||||||
|
*sentences*))
|
Binary file not shown.
After Width: | Height: | Size: 124 KiB |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,112 @@
|
||||||
|
.TH XARGS 1L \" -*- nroff -*-
|
||||||
|
.SH NAME
|
||||||
|
xargs \- build and execute command lines from standard input
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.B xargs
|
||||||
|
[\-0prtx] [\-e[eof-str]] [\-i[replace-str]] [\-l[max-lines]]
|
||||||
|
[\-n max-args] [\-s max-chars] [\-P max-procs] [\-\-null] [\-\-eof[=eof-str]]
|
||||||
|
[\-\-replace[=replace-str]] [\-\-max-lines[=max-lines]] [\-\-interactive]
|
||||||
|
[\-\-max-chars=max-chars] [\-\-verbose] [\-\-exit] [\-\-max-procs=max-procs]
|
||||||
|
[\-\-max-args=max-args] [\-\-no-run-if-empty] [\-\-version] [\-\-help]
|
||||||
|
[command [initial-arguments]]
|
||||||
|
.SH DESCRIPTION
|
||||||
|
This manual page
|
||||||
|
documents the GNU version of
|
||||||
|
.BR xargs .
|
||||||
|
.B xargs
|
||||||
|
reads arguments from the standard input, delimited by blanks (which can be
|
||||||
|
protected with double or single quotes or a backslash) or newlines,
|
||||||
|
and executes the
|
||||||
|
.I command
|
||||||
|
(default is /bin/echo) one or more times with any
|
||||||
|
.I initial-arguments
|
||||||
|
followed by arguments read from standard input. Blank lines on the
|
||||||
|
standard input are ignored.
|
||||||
|
.P
|
||||||
|
.B xargs
|
||||||
|
exits with the following status:
|
||||||
|
.nf
|
||||||
|
0 if it succeeds
|
||||||
|
123 if any invocation of the command exited with status 1-125
|
||||||
|
124 if the command exited with status 255
|
||||||
|
125 if the command is killed by a signal
|
||||||
|
126 if the command cannot be run
|
||||||
|
127 if the command is not found
|
||||||
|
1 if some other error occurred.
|
||||||
|
.fi
|
||||||
|
.SS OPTIONS
|
||||||
|
.TP
|
||||||
|
.I "\-\-null, \-0"
|
||||||
|
Input filenames are terminated by a null character instead of by
|
||||||
|
whitespace, and the quotes and backslash are not special (every
|
||||||
|
character is taken literally). Disables the end of file string, which
|
||||||
|
is treated like any other argument. Useful when arguments might
|
||||||
|
contain white space, quote marks, or backslashes. The GNU find
|
||||||
|
\-print0 option produces input suitable for this mode.
|
||||||
|
.TP
|
||||||
|
.I "\-\-eof[=eof-str], \-e[eof-str]"
|
||||||
|
Set the end of file string to \fIeof-str\fR. If the end of file
|
||||||
|
string occurs as a line of input, the rest of the input is ignored.
|
||||||
|
If \fIeof-str\fR is omitted, there is no end of file string. If this
|
||||||
|
option is not given, the end of file string defaults to "_".
|
||||||
|
.TP
|
||||||
|
.I "\-\-help"
|
||||||
|
Print a summary of the options to
|
||||||
|
.B xargs
|
||||||
|
and exit.
|
||||||
|
.TP
|
||||||
|
.I "\-\-replace[=replace-str], \-i[replace-str]"
|
||||||
|
Replace occurences of \fIreplace-str\fR in the initial arguments with
|
||||||
|
names read from standard input.
|
||||||
|
Also, unquoted blanks do not terminate arguments.
|
||||||
|
If \fIreplace-str\fR is omitted, it
|
||||||
|
defaults to "{}" (like for `find \-exec'). Implies \fI\-x\fP and
|
||||||
|
\fI\-l 1\fP.
|
||||||
|
.TP
|
||||||
|
.I "\-\-max-lines[=max-lines], -l[max-lines]"
|
||||||
|
Use at most \fImax-lines\fR nonblank input lines per command line;
|
||||||
|
\fImax-lines\fR defaults to 1 if omitted. Trailing blanks cause an
|
||||||
|
input line to be logically continued on the next input line. Implies
|
||||||
|
\fI\-x\fR.
|
||||||
|
.TP
|
||||||
|
.I "\-\-max-args=max-args, \-n max-args"
|
||||||
|
Use at most \fImax-args\fR arguments per command line. Fewer than
|
||||||
|
\fImax-args\fR arguments will be used if the size (see the \-s option)
|
||||||
|
is exceeded, unless the \-x option is given, in which case \fBxargs\fR
|
||||||
|
will exit.
|
||||||
|
.TP
|
||||||
|
.I "\-\-interactive, \-p"
|
||||||
|
Prompt the user about whether to run each command line and read a line
|
||||||
|
from the terminal. Only run the command line if the response starts
|
||||||
|
with `y' or `Y'. Implies \fI\-t\fR.
|
||||||
|
.TP
|
||||||
|
.I "\-\-no-run-if-empty, \-r"
|
||||||
|
If the standard input does not contain any nonblanks, do not run the
|
||||||
|
command. Normally, the command is run once even if there is no input.
|
||||||
|
.TP
|
||||||
|
.I "\-\-max-chars=max-chars, \-s max-chars"
|
||||||
|
Use at most \fImax-chars\fR characters per command line, including the
|
||||||
|
command and initial arguments and the terminating nulls at the ends of
|
||||||
|
the argument strings. The default is as large as possible, up to 20k
|
||||||
|
characters.
|
||||||
|
.TP
|
||||||
|
.I "\-\-verbose, \-t"
|
||||||
|
Print the command line on the standard error output before executing
|
||||||
|
it.
|
||||||
|
.TP
|
||||||
|
.I "\-\-version"
|
||||||
|
Print the version number of
|
||||||
|
.B xargs
|
||||||
|
and exit.
|
||||||
|
.TP
|
||||||
|
.I "\-\-exit, \-x"
|
||||||
|
Exit if the size (see the \fI\-s\fR option) is exceeded.
|
||||||
|
.TP
|
||||||
|
.I "\-\-max-procs=max-procs, \-P max-procs"
|
||||||
|
Run up to \fImax-procs\fR processes at a time; the default is 1. If
|
||||||
|
\fImax-procs\fR is 0, \fBxargs\fR will run as many processes as
|
||||||
|
possible at a time. Use the \fI\-n\fR option with \fI\-P\fR;
|
||||||
|
otherwise chances are that only one exec will be done.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
\fBfind\fP(1L), \fBlocate\fP(1L), \fBlocatedb\fP(5L), \fBupdatedb\fP(1)
|
||||||
|
\fBFinding Files\fP (on-line in Info, or printed)
|
Loading…
Reference in New Issue