remove autotools (#2941)
* remove autotools It seems to all work. I tested with gtk-doc enabled. I probably missed a few things argh. * oop, forgot m4/
This commit is contained in:
parent
7010903538
commit
538aa2a841
370
INSTALL
370
INSTALL
@ -1,370 +0,0 @@
|
|||||||
Installation Instructions
|
|
||||||
*************************
|
|
||||||
|
|
||||||
Copyright (C) 1994-1996, 1999-2002, 2004-2012 Free Software Foundation,
|
|
||||||
Inc.
|
|
||||||
|
|
||||||
Copying and distribution of this file, with or without modification,
|
|
||||||
are permitted in any medium without royalty provided the copyright
|
|
||||||
notice and this notice are preserved. This file is offered as-is,
|
|
||||||
without warranty of any kind.
|
|
||||||
|
|
||||||
Basic Installation
|
|
||||||
==================
|
|
||||||
|
|
||||||
Briefly, the shell commands `./configure; make; make install' should
|
|
||||||
configure, build, and install this package. The following
|
|
||||||
more-detailed instructions are generic; see the `README' file for
|
|
||||||
instructions specific to this package. Some packages provide this
|
|
||||||
`INSTALL' file but do not implement all of the features documented
|
|
||||||
below. The lack of an optional feature in a given package is not
|
|
||||||
necessarily a bug. More recommendations for GNU packages can be found
|
|
||||||
in *note Makefile Conventions: (standards)Makefile Conventions.
|
|
||||||
|
|
||||||
The `configure' shell script attempts to guess correct values for
|
|
||||||
various system-dependent variables used during compilation. It uses
|
|
||||||
those values to create a `Makefile' in each directory of the package.
|
|
||||||
It may also create one or more `.h' files containing system-dependent
|
|
||||||
definitions. Finally, it creates a shell script `config.status' that
|
|
||||||
you can run in the future to recreate the current configuration, and a
|
|
||||||
file `config.log' containing compiler output (useful mainly for
|
|
||||||
debugging `configure').
|
|
||||||
|
|
||||||
It can also use an optional file (typically called `config.cache'
|
|
||||||
and enabled with `--cache-file=config.cache' or simply `-C') that saves
|
|
||||||
the results of its tests to speed up reconfiguring. Caching is
|
|
||||||
disabled by default to prevent problems with accidental use of stale
|
|
||||||
cache files.
|
|
||||||
|
|
||||||
If you need to do unusual things to compile the package, please try
|
|
||||||
to figure out how `configure' could check whether to do them, and mail
|
|
||||||
diffs or instructions to the address given in the `README' so they can
|
|
||||||
be considered for the next release. If you are using the cache, and at
|
|
||||||
some point `config.cache' contains results you don't want to keep, you
|
|
||||||
may remove or edit it.
|
|
||||||
|
|
||||||
The file `configure.ac' (or `configure.in') is used to create
|
|
||||||
`configure' by a program called `autoconf'. You need `configure.ac' if
|
|
||||||
you want to change it or regenerate `configure' using a newer version
|
|
||||||
of `autoconf'.
|
|
||||||
|
|
||||||
The simplest way to compile this package is:
|
|
||||||
|
|
||||||
1. `cd' to the directory containing the package's source code and type
|
|
||||||
`./configure' to configure the package for your system.
|
|
||||||
|
|
||||||
Running `configure' might take a while. While running, it prints
|
|
||||||
some messages telling which features it is checking for.
|
|
||||||
|
|
||||||
2. Type `make' to compile the package.
|
|
||||||
|
|
||||||
3. Optionally, type `make check' to run any self-tests that come with
|
|
||||||
the package, generally using the just-built uninstalled binaries.
|
|
||||||
|
|
||||||
4. Type `make install' to install the programs and any data files and
|
|
||||||
documentation. When installing into a prefix owned by root, it is
|
|
||||||
recommended that the package be configured and built as a regular
|
|
||||||
user, and only the `make install' phase executed with root
|
|
||||||
privileges.
|
|
||||||
|
|
||||||
5. Optionally, type `make installcheck' to repeat any self-tests, but
|
|
||||||
this time using the binaries in their final installed location.
|
|
||||||
This target does not install anything. Running this target as a
|
|
||||||
regular user, particularly if the prior `make install' required
|
|
||||||
root privileges, verifies that the installation completed
|
|
||||||
correctly.
|
|
||||||
|
|
||||||
6. You can remove the program binaries and object files from the
|
|
||||||
source code directory by typing `make clean'. To also remove the
|
|
||||||
files that `configure' created (so you can compile the package for
|
|
||||||
a different kind of computer), type `make distclean'. There is
|
|
||||||
also a `make maintainer-clean' target, but that is intended mainly
|
|
||||||
for the package's developers. If you use it, you may have to get
|
|
||||||
all sorts of other programs in order to regenerate files that came
|
|
||||||
with the distribution.
|
|
||||||
|
|
||||||
7. Often, you can also type `make uninstall' to remove the installed
|
|
||||||
files again. In practice, not all packages have tested that
|
|
||||||
uninstallation works correctly, even though it is required by the
|
|
||||||
GNU Coding Standards.
|
|
||||||
|
|
||||||
8. Some packages, particularly those that use Automake, provide `make
|
|
||||||
distcheck', which can by used by developers to test that all other
|
|
||||||
targets like `make install' and `make uninstall' work correctly.
|
|
||||||
This target is generally not run by end users.
|
|
||||||
|
|
||||||
Compilers and Options
|
|
||||||
=====================
|
|
||||||
|
|
||||||
Some systems require unusual options for compilation or linking that
|
|
||||||
the `configure' script does not know about. Run `./configure --help'
|
|
||||||
for details on some of the pertinent environment variables.
|
|
||||||
|
|
||||||
You can give `configure' initial values for configuration parameters
|
|
||||||
by setting variables in the command line or in the environment. Here
|
|
||||||
is an example:
|
|
||||||
|
|
||||||
./configure CC=c99 CFLAGS=-g LIBS=-lposix
|
|
||||||
|
|
||||||
*Note Defining Variables::, for more details.
|
|
||||||
|
|
||||||
Compiling For Multiple Architectures
|
|
||||||
====================================
|
|
||||||
|
|
||||||
You can compile the package for more than one kind of computer at the
|
|
||||||
same time, by placing the object files for each architecture in their
|
|
||||||
own directory. To do this, you can use GNU `make'. `cd' to the
|
|
||||||
directory where you want the object files and executables to go and run
|
|
||||||
the `configure' script. `configure' automatically checks for the
|
|
||||||
source code in the directory that `configure' is in and in `..'. This
|
|
||||||
is known as a "VPATH" build.
|
|
||||||
|
|
||||||
With a non-GNU `make', it is safer to compile the package for one
|
|
||||||
architecture at a time in the source code directory. After you have
|
|
||||||
installed the package for one architecture, use `make distclean' before
|
|
||||||
reconfiguring for another architecture.
|
|
||||||
|
|
||||||
On MacOS X 10.5 and later systems, you can create libraries and
|
|
||||||
executables that work on multiple system types--known as "fat" or
|
|
||||||
"universal" binaries--by specifying multiple `-arch' options to the
|
|
||||||
compiler but only a single `-arch' option to the preprocessor. Like
|
|
||||||
this:
|
|
||||||
|
|
||||||
./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
|
|
||||||
CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
|
|
||||||
CPP="gcc -E" CXXCPP="g++ -E"
|
|
||||||
|
|
||||||
This is not guaranteed to produce working output in all cases, you
|
|
||||||
may have to build one architecture at a time and combine the results
|
|
||||||
using the `lipo' tool if you have problems.
|
|
||||||
|
|
||||||
Installation Names
|
|
||||||
==================
|
|
||||||
|
|
||||||
By default, `make install' installs the package's commands under
|
|
||||||
`/usr/local/bin', include files under `/usr/local/include', etc. You
|
|
||||||
can specify an installation prefix other than `/usr/local' by giving
|
|
||||||
`configure' the option `--prefix=PREFIX', where PREFIX must be an
|
|
||||||
absolute file name.
|
|
||||||
|
|
||||||
You can specify separate installation prefixes for
|
|
||||||
architecture-specific files and architecture-independent files. If you
|
|
||||||
pass the option `--exec-prefix=PREFIX' to `configure', the package uses
|
|
||||||
PREFIX as the prefix for installing programs and libraries.
|
|
||||||
Documentation and other data files still use the regular prefix.
|
|
||||||
|
|
||||||
In addition, if you use an unusual directory layout you can give
|
|
||||||
options like `--bindir=DIR' to specify different values for particular
|
|
||||||
kinds of files. Run `configure --help' for a list of the directories
|
|
||||||
you can set and what kinds of files go in them. In general, the
|
|
||||||
default for these options is expressed in terms of `${prefix}', so that
|
|
||||||
specifying just `--prefix' will affect all of the other directory
|
|
||||||
specifications that were not explicitly provided.
|
|
||||||
|
|
||||||
The most portable way to affect installation locations is to pass the
|
|
||||||
correct locations to `configure'; however, many packages provide one or
|
|
||||||
both of the following shortcuts of passing variable assignments to the
|
|
||||||
`make install' command line to change installation locations without
|
|
||||||
having to reconfigure or recompile.
|
|
||||||
|
|
||||||
The first method involves providing an override variable for each
|
|
||||||
affected directory. For example, `make install
|
|
||||||
prefix=/alternate/directory' will choose an alternate location for all
|
|
||||||
directory configuration variables that were expressed in terms of
|
|
||||||
`${prefix}'. Any directories that were specified during `configure',
|
|
||||||
but not in terms of `${prefix}', must each be overridden at install
|
|
||||||
time for the entire installation to be relocated. The approach of
|
|
||||||
makefile variable overrides for each directory variable is required by
|
|
||||||
the GNU Coding Standards, and ideally causes no recompilation.
|
|
||||||
However, some platforms have known limitations with the semantics of
|
|
||||||
shared libraries that end up requiring recompilation when using this
|
|
||||||
method, particularly noticeable in packages that use GNU Libtool.
|
|
||||||
|
|
||||||
The second method involves providing the `DESTDIR' variable. For
|
|
||||||
example, `make install DESTDIR=/alternate/directory' will prepend
|
|
||||||
`/alternate/directory' before all installation names. The approach of
|
|
||||||
`DESTDIR' overrides is not required by the GNU Coding Standards, and
|
|
||||||
does not work on platforms that have drive letters. On the other hand,
|
|
||||||
it does better at avoiding recompilation issues, and works well even
|
|
||||||
when some directory options were not specified in terms of `${prefix}'
|
|
||||||
at `configure' time.
|
|
||||||
|
|
||||||
Optional Features
|
|
||||||
=================
|
|
||||||
|
|
||||||
If the package supports it, you can cause programs to be installed
|
|
||||||
with an extra prefix or suffix on their names by giving `configure' the
|
|
||||||
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
|
||||||
|
|
||||||
Some packages pay attention to `--enable-FEATURE' options to
|
|
||||||
`configure', where FEATURE indicates an optional part of the package.
|
|
||||||
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
|
||||||
is something like `gnu-as' or `x' (for the X Window System). The
|
|
||||||
`README' should mention any `--enable-' and `--with-' options that the
|
|
||||||
package recognizes.
|
|
||||||
|
|
||||||
For packages that use the X Window System, `configure' can usually
|
|
||||||
find the X include and library files automatically, but if it doesn't,
|
|
||||||
you can use the `configure' options `--x-includes=DIR' and
|
|
||||||
`--x-libraries=DIR' to specify their locations.
|
|
||||||
|
|
||||||
Some packages offer the ability to configure how verbose the
|
|
||||||
execution of `make' will be. For these packages, running `./configure
|
|
||||||
--enable-silent-rules' sets the default to minimal output, which can be
|
|
||||||
overridden with `make V=1'; while running `./configure
|
|
||||||
--disable-silent-rules' sets the default to verbose, which can be
|
|
||||||
overridden with `make V=0'.
|
|
||||||
|
|
||||||
Particular systems
|
|
||||||
==================
|
|
||||||
|
|
||||||
On HP-UX, the default C compiler is not ANSI C compatible. If GNU
|
|
||||||
CC is not installed, it is recommended to use the following options in
|
|
||||||
order to use an ANSI C compiler:
|
|
||||||
|
|
||||||
./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
|
|
||||||
|
|
||||||
and if that doesn't work, install pre-built binaries of GCC for HP-UX.
|
|
||||||
|
|
||||||
HP-UX `make' updates targets which have the same time stamps as
|
|
||||||
their prerequisites, which makes it generally unusable when shipped
|
|
||||||
generated files such as `configure' are involved. Use GNU `make'
|
|
||||||
instead.
|
|
||||||
|
|
||||||
On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
|
|
||||||
parse its `<wchar.h>' header file. The option `-nodtk' can be used as
|
|
||||||
a workaround. If GNU CC is not installed, it is therefore recommended
|
|
||||||
to try
|
|
||||||
|
|
||||||
./configure CC="cc"
|
|
||||||
|
|
||||||
and if that doesn't work, try
|
|
||||||
|
|
||||||
./configure CC="cc -nodtk"
|
|
||||||
|
|
||||||
On Solaris, don't put `/usr/ucb' early in your `PATH'. This
|
|
||||||
directory contains several dysfunctional programs; working variants of
|
|
||||||
these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
|
|
||||||
in your `PATH', put it _after_ `/usr/bin'.
|
|
||||||
|
|
||||||
On Haiku, software installed for all users goes in `/boot/common',
|
|
||||||
not `/usr/local'. It is recommended to use the following options:
|
|
||||||
|
|
||||||
./configure --prefix=/boot/common
|
|
||||||
|
|
||||||
Specifying the System Type
|
|
||||||
==========================
|
|
||||||
|
|
||||||
There may be some features `configure' cannot figure out
|
|
||||||
automatically, but needs to determine by the type of machine the package
|
|
||||||
will run on. Usually, assuming the package is built to be run on the
|
|
||||||
_same_ architectures, `configure' can figure that out, but if it prints
|
|
||||||
a message saying it cannot guess the machine type, give it the
|
|
||||||
`--build=TYPE' option. TYPE can either be a short name for the system
|
|
||||||
type, such as `sun4', or a canonical name which has the form:
|
|
||||||
|
|
||||||
CPU-COMPANY-SYSTEM
|
|
||||||
|
|
||||||
where SYSTEM can have one of these forms:
|
|
||||||
|
|
||||||
OS
|
|
||||||
KERNEL-OS
|
|
||||||
|
|
||||||
See the file `config.sub' for the possible values of each field. If
|
|
||||||
`config.sub' isn't included in this package, then this package doesn't
|
|
||||||
need to know the machine type.
|
|
||||||
|
|
||||||
If you are _building_ compiler tools for cross-compiling, you should
|
|
||||||
use the option `--target=TYPE' to select the type of system they will
|
|
||||||
produce code for.
|
|
||||||
|
|
||||||
If you want to _use_ a cross compiler, that generates code for a
|
|
||||||
platform different from the build platform, you should specify the
|
|
||||||
"host" platform (i.e., that on which the generated programs will
|
|
||||||
eventually be run) with `--host=TYPE'.
|
|
||||||
|
|
||||||
Sharing Defaults
|
|
||||||
================
|
|
||||||
|
|
||||||
If you want to set default values for `configure' scripts to share,
|
|
||||||
you can create a site shell script called `config.site' that gives
|
|
||||||
default values for variables like `CC', `cache_file', and `prefix'.
|
|
||||||
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
|
||||||
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
|
||||||
`CONFIG_SITE' environment variable to the location of the site script.
|
|
||||||
A warning: not all `configure' scripts look for a site script.
|
|
||||||
|
|
||||||
Defining Variables
|
|
||||||
==================
|
|
||||||
|
|
||||||
Variables not defined in a site shell script can be set in the
|
|
||||||
environment passed to `configure'. However, some packages may run
|
|
||||||
configure again during the build, and the customized values of these
|
|
||||||
variables may be lost. In order to avoid this problem, you should set
|
|
||||||
them in the `configure' command line, using `VAR=value'. For example:
|
|
||||||
|
|
||||||
./configure CC=/usr/local2/bin/gcc
|
|
||||||
|
|
||||||
causes the specified `gcc' to be used as the C compiler (unless it is
|
|
||||||
overridden in the site shell script).
|
|
||||||
|
|
||||||
Unfortunately, this technique does not work for `CONFIG_SHELL' due to
|
|
||||||
an Autoconf limitation. Until the limitation is lifted, you can use
|
|
||||||
this workaround:
|
|
||||||
|
|
||||||
CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
|
|
||||||
|
|
||||||
`configure' Invocation
|
|
||||||
======================
|
|
||||||
|
|
||||||
`configure' recognizes the following options to control how it
|
|
||||||
operates.
|
|
||||||
|
|
||||||
`--help'
|
|
||||||
`-h'
|
|
||||||
Print a summary of all of the options to `configure', and exit.
|
|
||||||
|
|
||||||
`--help=short'
|
|
||||||
`--help=recursive'
|
|
||||||
Print a summary of the options unique to this package's
|
|
||||||
`configure', and exit. The `short' variant lists options used
|
|
||||||
only in the top level, while the `recursive' variant lists options
|
|
||||||
also present in any nested packages.
|
|
||||||
|
|
||||||
`--version'
|
|
||||||
`-V'
|
|
||||||
Print the version of Autoconf used to generate the `configure'
|
|
||||||
script, and exit.
|
|
||||||
|
|
||||||
`--cache-file=FILE'
|
|
||||||
Enable the cache: use and save the results of the tests in FILE,
|
|
||||||
traditionally `config.cache'. FILE defaults to `/dev/null' to
|
|
||||||
disable caching.
|
|
||||||
|
|
||||||
`--config-cache'
|
|
||||||
`-C'
|
|
||||||
Alias for `--cache-file=config.cache'.
|
|
||||||
|
|
||||||
`--quiet'
|
|
||||||
`--silent'
|
|
||||||
`-q'
|
|
||||||
Do not print messages saying which checks are being made. To
|
|
||||||
suppress all normal output, redirect it to `/dev/null' (any error
|
|
||||||
messages will still be shown).
|
|
||||||
|
|
||||||
`--srcdir=DIR'
|
|
||||||
Look for the package's source code in directory DIR. Usually
|
|
||||||
`configure' can determine that directory automatically.
|
|
||||||
|
|
||||||
`--prefix=DIR'
|
|
||||||
Use DIR as the installation prefix. *note Installation Names::
|
|
||||||
for more details, including other options available for fine-tuning
|
|
||||||
the installation locations.
|
|
||||||
|
|
||||||
`--no-create'
|
|
||||||
`-n'
|
|
||||||
Run the configure checks, but stop before creating any output
|
|
||||||
files.
|
|
||||||
|
|
||||||
`configure' also accepts some other, not widely useful, options. Run
|
|
||||||
`configure --help' for more details.
|
|
34
Makefile.am
34
Makefile.am
@ -1,34 +0,0 @@
|
|||||||
SUBDIRS = \
|
|
||||||
libvips \
|
|
||||||
cplusplus \
|
|
||||||
tools \
|
|
||||||
po \
|
|
||||||
man \
|
|
||||||
doc \
|
|
||||||
test \
|
|
||||||
fuzz
|
|
||||||
|
|
||||||
EXTRA_DIST = \
|
|
||||||
autogen.sh \
|
|
||||||
benchmark \
|
|
||||||
depcomp \
|
|
||||||
m4 \
|
|
||||||
meson.build \
|
|
||||||
meson_options.txt \
|
|
||||||
po/meson.build \
|
|
||||||
README.md \
|
|
||||||
suppressions \
|
|
||||||
vips-cpp.pc.in \
|
|
||||||
vips.pc.in
|
|
||||||
|
|
||||||
pkgconfig_DATA = vips.pc vips-cpp.pc
|
|
||||||
|
|
||||||
dist-hook:
|
|
||||||
# make sure we don't get any .svn dirs from EXTRA_DIST
|
|
||||||
# also "fred" gets left around occasionally
|
|
||||||
-find $(distdir) -name .svn -exec rm -rf {} \;
|
|
||||||
-find $(distdir) -name fred -exec rm {} \;
|
|
||||||
|
|
||||||
ACLOCAL_AMFLAGS = -I m4
|
|
||||||
|
|
||||||
DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc --enable-introspection
|
|
49
autogen.sh
49
autogen.sh
@ -1,49 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# Based on: https://wiki.gnome.org/Projects/GnomeCommon/Migration#autogen.sh
|
|
||||||
# Run this to generate all the initial makefiles, etc.
|
|
||||||
test -n "$srcdir" || srcdir=$(dirname "$0")
|
|
||||||
test -n "$srcdir" || srcdir=.
|
|
||||||
|
|
||||||
olddir=$(pwd)
|
|
||||||
|
|
||||||
cd $srcdir
|
|
||||||
|
|
||||||
(test -f configure.ac) || {
|
|
||||||
echo "*** ERROR: Directory '$srcdir' does not look like" >&2
|
|
||||||
echo "*** like the top-level project directory" >&2
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
if ! gtkdocize --version > /dev/null; then
|
|
||||||
echo "*** ERROR: You must have gtkdocize installed" >&2
|
|
||||||
echo "*** to be able to reconfigure libvips." >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# shellcheck disable=SC2016
|
|
||||||
PKG_NAME=$(autoconf --trace 'AC_INIT:$1' configure.ac)
|
|
||||||
|
|
||||||
if [ "$#" = 0 -a "x$NOCONFIGURE" = "x" ]; then
|
|
||||||
echo "*** WARNING: I am going to run 'configure' with no arguments." >&2
|
|
||||||
echo "*** If you wish to pass any to it, please specify them on the" >&2
|
|
||||||
echo "*** '$0' command line." >&2
|
|
||||||
echo "" >&2
|
|
||||||
fi
|
|
||||||
|
|
||||||
aclocal -I m4 --install || exit 1
|
|
||||||
glib-gettextize --force --copy > /dev/null || exit 1
|
|
||||||
gtkdocize --copy --docdir doc --flavour no-tmpl || exit 1
|
|
||||||
autoreconf --verbose --force --install -Wno-portability || exit 1
|
|
||||||
|
|
||||||
cd "$olddir"
|
|
||||||
if [ "$NOCONFIGURE" = "" ]; then
|
|
||||||
$srcdir/configure "$@" || exit 1
|
|
||||||
|
|
||||||
if [ "$1" = "--help" ]; then
|
|
||||||
exit 0
|
|
||||||
else
|
|
||||||
echo "Now type 'make' to compile $PKG_NAME" || exit 1
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "Skipping configure process."
|
|
||||||
fi
|
|
1700
configure.ac
1700
configure.ac
File diff suppressed because it is too large
Load Diff
@ -1,62 +0,0 @@
|
|||||||
SUBDIRS = \
|
|
||||||
include
|
|
||||||
|
|
||||||
AM_CPPFLAGS = \
|
|
||||||
-I$(top_srcdir)/libvips/include \
|
|
||||||
-I$(top_srcdir)/cplusplus/include \
|
|
||||||
@VIPS_CFLAGS@
|
|
||||||
|
|
||||||
lib_LTLIBRARIES = libvips-cpp.la
|
|
||||||
|
|
||||||
libvips_cpp_la_SOURCES = \
|
|
||||||
VImage.cpp \
|
|
||||||
VInterpolate.cpp \
|
|
||||||
VRegion.cpp \
|
|
||||||
VConnection.cpp \
|
|
||||||
VError.cpp
|
|
||||||
|
|
||||||
libvips_cpp_la_LDFLAGS = \
|
|
||||||
-no-undefined \
|
|
||||||
-version-info @LIBRARY_CURRENT@:@LIBRARY_REVISION@:@LIBRARY_AGE@
|
|
||||||
|
|
||||||
libvips_cpp_la_LIBADD = \
|
|
||||||
$(top_builddir)/libvips/libvips.la @VIPS_LIBS@
|
|
||||||
|
|
||||||
vips-operators.cpp:
|
|
||||||
echo "// bodies for vips operations" > vips-operators.cpp; \
|
|
||||||
echo -n "// " >> vips-operators.cpp; \
|
|
||||||
date >> vips-operators.cpp; \
|
|
||||||
echo "// this file is generated automatically, do not edit!" >> vips-operators.cpp; \
|
|
||||||
./gen-operators.py -g cpp >> vips-operators.cpp
|
|
||||||
|
|
||||||
if HAVE_DOXYGEN
|
|
||||||
html_DATA = html
|
|
||||||
|
|
||||||
html: doxygen.stamp
|
|
||||||
|
|
||||||
doxygen.stamp: Doxyfile
|
|
||||||
$(DOXYGEN) $^
|
|
||||||
touch doxygen.stamp
|
|
||||||
|
|
||||||
install-htmlDATA:
|
|
||||||
-mkdir -p $(DESTDIR)$(htmldir)
|
|
||||||
-cp -r html $(DESTDIR)$(htmldir)
|
|
||||||
|
|
||||||
uninstall-htmlDATA:
|
|
||||||
rm -rf $(DESTDIR)$(htmldir)/html
|
|
||||||
endif
|
|
||||||
|
|
||||||
# "make tidy" to run the clang-tidy linter
|
|
||||||
.PHONY: tidy
|
|
||||||
tidy: $(libvips_cpp_la_SOURCES)
|
|
||||||
clang-tidy $^ \
|
|
||||||
-checks=clang-analyzer-*,portability-* \
|
|
||||||
-- $(AM_CPPFLAGS)
|
|
||||||
|
|
||||||
EXTRA_DIST = \
|
|
||||||
Doxyfile.in \
|
|
||||||
gen-operators.py \
|
|
||||||
meson.build \
|
|
||||||
README.md \
|
|
||||||
vips-operators.cpp
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
|||||||
|
|
||||||
SUBDIRS = vips
|
|
@ -1,18 +0,0 @@
|
|||||||
pkginclude_HEADERS = \
|
|
||||||
VError8.h \
|
|
||||||
VImage8.h \
|
|
||||||
VInterpolate8.h \
|
|
||||||
VRegion8.h \
|
|
||||||
VConnection8.h \
|
|
||||||
vips8
|
|
||||||
|
|
||||||
EXTRA_DIST = \
|
|
||||||
meson.build
|
|
||||||
|
|
||||||
vips-operators:
|
|
||||||
echo "// headers for vips operations" > vips-operators; \
|
|
||||||
echo "// paste this file into VImage8.h, do not leave in repo" > vips-operators; \
|
|
||||||
echo -n "// " >> vips-operators; \
|
|
||||||
date >> vips-operators; \
|
|
||||||
echo "// this file is generated automatically, do not edit!" >> vips-operators; \
|
|
||||||
./../../gen-operators.py -g h >> vips-operators
|
|
203
doc/Makefile.am
203
doc/Makefile.am
@ -1,203 +0,0 @@
|
|||||||
## Process this file with automake to produce Makefile.in
|
|
||||||
|
|
||||||
# We require automake 1.6 at least.
|
|
||||||
AUTOMAKE_OPTIONS = 1.6
|
|
||||||
|
|
||||||
# This is a blank Makefile.am for using gtk-doc.
|
|
||||||
# Copy this to your project's API docs directory and modify the variables to
|
|
||||||
# suit your project. See the GTK+ Makefiles in gtk+/docs/reference for examples
|
|
||||||
# of using the various options.
|
|
||||||
|
|
||||||
# The name of the module, e.g. 'glib'.
|
|
||||||
DOC_MODULE=libvips
|
|
||||||
|
|
||||||
# Uncomment for versioned docs and specify the version of the module, e.g. '2'.
|
|
||||||
#DOC_MODULE_VERSION=2
|
|
||||||
|
|
||||||
|
|
||||||
# The top-level XML file (SGML in the past). You can change this if you want to.
|
|
||||||
DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml
|
|
||||||
|
|
||||||
# Directories containing the source code.
|
|
||||||
# gtk-doc will search all .c and .h files beneath these paths
|
|
||||||
# for inline comments documenting functions and macros.
|
|
||||||
# e.g. DOC_SOURCE_DIR=$(top_srcdir)/gtk $(top_srcdir)/gdk
|
|
||||||
DOC_SOURCE_DIR=$(top_srcdir)/libvips
|
|
||||||
|
|
||||||
# Extra options to pass to gtkdoc-scangobj. Not normally needed.
|
|
||||||
SCANGOBJ_OPTIONS=
|
|
||||||
|
|
||||||
# Extra options to supply to gtkdoc-scan.
|
|
||||||
# e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED"
|
|
||||||
SCAN_OPTIONS=--rebuild-types
|
|
||||||
|
|
||||||
# Extra options to supply to gtkdoc-mkdb.
|
|
||||||
# e.g. MKDB_OPTIONS=--xml-mode --output-format=xml
|
|
||||||
MKDB_OPTIONS=--xml-mode --output-format=xml
|
|
||||||
|
|
||||||
# Extra options to supply to gtkdoc-mktmpl
|
|
||||||
# e.g. MKTMPL_OPTIONS=--only-section-tmpl
|
|
||||||
MKTMPL_OPTIONS=
|
|
||||||
|
|
||||||
# Extra options to supply to gtkdoc-mkhtml
|
|
||||||
MKHTML_OPTIONS=
|
|
||||||
|
|
||||||
# Extra options to supply to gtkdoc-fixref. Not normally needed.
|
|
||||||
# e.g. FIXXREF_OPTIONS=--extra-dir=../gdk-pixbuf/html --extra-dir=../gdk/html
|
|
||||||
FIXXREF_OPTIONS=
|
|
||||||
|
|
||||||
# Used for dependencies. The docs will be rebuilt if any of these change.
|
|
||||||
# e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h
|
|
||||||
# e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c
|
|
||||||
HFILE_GLOB=$(top_srcdir)/libvips/include/vips/*.h
|
|
||||||
CFILE_GLOB=$(top_srcdir)/libvips/*/*.c
|
|
||||||
|
|
||||||
# Extra header to include when scanning, which are not under DOC_SOURCE_DIR
|
|
||||||
# e.g. EXTRA_HFILES=$(top_srcdir}/contrib/extra.h
|
|
||||||
EXTRA_HFILES=
|
|
||||||
|
|
||||||
# Header files or dirs to ignore when scanning. Use base file/dir names
|
|
||||||
# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h private_code
|
|
||||||
|
|
||||||
IGNORE_VIPS_INCLUDE = \
|
|
||||||
almostdeprecated.h \
|
|
||||||
deprecated.h \
|
|
||||||
vips7compat.h \
|
|
||||||
dispatch.h \
|
|
||||||
enumtypes.h \
|
|
||||||
internal.h \
|
|
||||||
thread.h \
|
|
||||||
intl.h \
|
|
||||||
format.h \
|
|
||||||
mask.h \
|
|
||||||
private.h \
|
|
||||||
video.h
|
|
||||||
|
|
||||||
# ignore all .h files in libvips/*, these are internal
|
|
||||||
IGNORE_VIPS_C = \
|
|
||||||
binary.h \
|
|
||||||
hough.h \
|
|
||||||
nary.h \
|
|
||||||
parithmetic.h \
|
|
||||||
statistic.h \
|
|
||||||
unary.h \
|
|
||||||
unaryconst.h \
|
|
||||||
pcolour.h \
|
|
||||||
profiles.h \
|
|
||||||
bandary.h \
|
|
||||||
pconversion.h \
|
|
||||||
correlation.h \
|
|
||||||
pconvolution.h \
|
|
||||||
pcreate.h \
|
|
||||||
pmask.h \
|
|
||||||
point.h \
|
|
||||||
drawink.h \
|
|
||||||
pdraw.h \
|
|
||||||
dbh.h \
|
|
||||||
jpeg.h \
|
|
||||||
magick.h \
|
|
||||||
pforeign.h \
|
|
||||||
tiff.h \
|
|
||||||
pfreqfilt.h \
|
|
||||||
hist_unary.h \
|
|
||||||
phistogram.h \
|
|
||||||
sink.h \
|
|
||||||
vipsmarshal.h \
|
|
||||||
pmorphology.h \
|
|
||||||
global_balance.h \
|
|
||||||
pmosaicing.h \
|
|
||||||
presample.h \
|
|
||||||
templates.h
|
|
||||||
|
|
||||||
IGNORE_HFILES = $(IGNORE_VIPS_INCLUDE) $(IGNORE_VIPS_C)
|
|
||||||
|
|
||||||
# Images to copy into HTML directory.
|
|
||||||
# e.g. HTML_IMAGES=$(top_srcdir)/gtk/stock-icons/stock_about_24.png
|
|
||||||
HTML_IMAGES = \
|
|
||||||
$(top_srcdir)/doc/images/owl.jpg \
|
|
||||||
$(top_srcdir)/doc/images/tn_owl.jpg \
|
|
||||||
$(top_srcdir)/doc/images/interconvert.png \
|
|
||||||
$(top_srcdir)/doc/images/Combine.png \
|
|
||||||
$(top_srcdir)/doc/images/Memtrace.png \
|
|
||||||
$(top_srcdir)/doc/images/Sequence.png \
|
|
||||||
$(top_srcdir)/doc/images/Sink.png \
|
|
||||||
$(top_srcdir)/doc/images/Vips-smp.png
|
|
||||||
|
|
||||||
# we have some files in markdown ... convert to docbook for gtk-doc
|
|
||||||
# pandoc makes section headers, we want refsect3 for gtk-doc
|
|
||||||
.md.xml:
|
|
||||||
pandoc -s --template="$(realpath pandoc-docbook-template.docbook)" --wrap=none -V title="$<" -f markdown+smart -t docbook -o $@ $<
|
|
||||||
sed -i -e 's|<section|<refsect3|g' -e 's|</section|</refsect3|g' $@
|
|
||||||
|
|
||||||
# Our markdown source files
|
|
||||||
markdown_content_files = \
|
|
||||||
How-it-works.md \
|
|
||||||
libvips-from-C++.md \
|
|
||||||
Using-vipsthumbnail.md \
|
|
||||||
How-it-opens-files.md \
|
|
||||||
Examples.md \
|
|
||||||
Cite.md \
|
|
||||||
binding.md \
|
|
||||||
Making-image-pyramids.md
|
|
||||||
|
|
||||||
# converted to xml in this dir by pandoc
|
|
||||||
markdown_content_files_docbook = $(markdown_content_files:.md=.xml)
|
|
||||||
|
|
||||||
# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE).
|
|
||||||
# e.g. content_files=running.sgml building.sgml changes-2.0.sgml
|
|
||||||
content_files = \
|
|
||||||
using-command-line.xml \
|
|
||||||
using-C.xml \
|
|
||||||
using-threads.xml \
|
|
||||||
extending.xml \
|
|
||||||
function-list.xml \
|
|
||||||
file-format.xml \
|
|
||||||
${markdown_content_files_docbook}
|
|
||||||
|
|
||||||
# SGML files where gtk-doc abbrevations (#GtkWidget) are expanded
|
|
||||||
# These files must be listed here *and* in content_files
|
|
||||||
# e.g. expand_content_files=running.sgml
|
|
||||||
expand_content_files = \
|
|
||||||
using-command-line.xml \
|
|
||||||
using-C.xml \
|
|
||||||
using-threads.xml \
|
|
||||||
extending.xml \
|
|
||||||
function-list.xml \
|
|
||||||
file-format.xml \
|
|
||||||
${markdown_content_files_docbook}
|
|
||||||
|
|
||||||
# CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library.
|
|
||||||
# Only needed if you are using gtkdoc-scangobj to dynamically query widget
|
|
||||||
# signals and properties.
|
|
||||||
# e.g. GTKDOC_CFLAGS=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS)
|
|
||||||
# e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib)
|
|
||||||
GTKDOC_CFLAGS = @VIPS_CFLAGS@ @VIPS_INCLUDES@
|
|
||||||
GTKDOC_LIBS = @VIPS_CFLAGS@ ${top_builddir}/libvips/libvips.la @VIPS_LIBS@
|
|
||||||
|
|
||||||
# This includes the standard gtk-doc make rules, copied by gtkdocize.
|
|
||||||
include gtk-doc.make
|
|
||||||
|
|
||||||
# Other files to distribute
|
|
||||||
# e.g. EXTRA_DIST += version.xml.in
|
|
||||||
EXTRA_DIST += \
|
|
||||||
${markdown_content_files} \
|
|
||||||
gen-function-list.py \
|
|
||||||
images \
|
|
||||||
meson.build \
|
|
||||||
pandoc-docbook-template.docbook
|
|
||||||
|
|
||||||
# Files not to distribute
|
|
||||||
# for --rebuild-types in $(SCAN_OPTIONS), e.g. $(DOC_MODULE).types
|
|
||||||
# for --rebuild-sections in $(SCAN_OPTIONS) e.g. $(DOC_MODULE)-sections.txt
|
|
||||||
DISTCLEANFILES = libvips.types
|
|
||||||
|
|
||||||
# Comment this out if you want 'make check' to test you doc status
|
|
||||||
# and run some sanity checks
|
|
||||||
if ENABLE_GTK_DOC
|
|
||||||
TESTS_ENVIRONMENT = \
|
|
||||||
DOC_MODULE=$(DOC_MODULE) DOC_MAIN_SGML_FILE=$(DOC_MAIN_SGML_FILE) \
|
|
||||||
SRCDIR=$(abs_srcdir) BUILDDIR=$(abs_builddir)
|
|
||||||
#TESTS = $(GTKDOC_CHECK)
|
|
||||||
endif
|
|
||||||
|
|
||||||
-include $(top_srcdir)/git.mk
|
|
@ -1,32 +0,0 @@
|
|||||||
TESTS = \
|
|
||||||
test_fuzz.sh
|
|
||||||
|
|
||||||
FUZZPROGS = \
|
|
||||||
jpegsave_file_fuzzer \
|
|
||||||
jpegsave_buffer_fuzzer \
|
|
||||||
pngsave_buffer_fuzzer \
|
|
||||||
webpsave_buffer_fuzzer \
|
|
||||||
gifsave_buffer_fuzzer \
|
|
||||||
sharpen_fuzzer \
|
|
||||||
thumbnail_fuzzer \
|
|
||||||
smartcrop_fuzzer \
|
|
||||||
mosaic_fuzzer
|
|
||||||
|
|
||||||
AM_DEFAULT_SOURCE_EXT = .cc
|
|
||||||
|
|
||||||
FUZZLIBS = libstandaloneengine.a
|
|
||||||
|
|
||||||
# Include debug symbols by default as recommended by libfuzzer
|
|
||||||
AM_CXXFLAGS = -g -I${top_srcdir}/libvips/include @VIPS_CFLAGS@ @VIPS_INCLUDES@
|
|
||||||
AM_LDFLAGS = @LDFLAGS@
|
|
||||||
LDADD = ${top_builddir}/libvips/libvips.la @VIPS_LIBS@ @LIB_FUZZING_ENGINE@
|
|
||||||
|
|
||||||
libstandaloneengine_a_SOURCES = StandaloneFuzzTargetMain.c
|
|
||||||
|
|
||||||
check_PROGRAMS = $(FUZZPROGS)
|
|
||||||
noinst_LIBRARIES = $(FUZZLIBS)
|
|
||||||
|
|
||||||
EXTRA_DIST = \
|
|
||||||
$(TESTS) \
|
|
||||||
common_fuzzer_corpus \
|
|
||||||
meson.build
|
|
@ -1,204 +0,0 @@
|
|||||||
OPTIONAL_COMPILE_DIR =
|
|
||||||
OPTIONAL_DIST_DIR =
|
|
||||||
OPTIONAL_LIB =
|
|
||||||
|
|
||||||
if ENABLE_DEPRECATED
|
|
||||||
OPTIONAL_COMPILE_DIR += deprecated
|
|
||||||
OPTIONAL_LIB += deprecated/libdeprecated.la
|
|
||||||
else
|
|
||||||
OPTIONAL_DIST_DIR += deprecated
|
|
||||||
endif
|
|
||||||
|
|
||||||
if ENABLE_NSGIF
|
|
||||||
OPTIONAL_LIB += foreign/libnsgif/libnsgif.la
|
|
||||||
endif
|
|
||||||
|
|
||||||
SUBDIRS = \
|
|
||||||
include \
|
|
||||||
foreign \
|
|
||||||
arithmetic \
|
|
||||||
resample \
|
|
||||||
colour \
|
|
||||||
conversion \
|
|
||||||
convolution \
|
|
||||||
$(OPTIONAL_COMPILE_DIR) \
|
|
||||||
freqfilt \
|
|
||||||
histogram \
|
|
||||||
draw \
|
|
||||||
iofuncs \
|
|
||||||
morphology \
|
|
||||||
module \
|
|
||||||
mosaicing \
|
|
||||||
create
|
|
||||||
|
|
||||||
lib_LTLIBRARIES = libvips.la
|
|
||||||
|
|
||||||
# empty means default to C linking
|
|
||||||
libvips_la_SOURCES =
|
|
||||||
|
|
||||||
# make sure we link the top-level with c++
|
|
||||||
nodist_EXTRA_libvips_la_SOURCES = resample/dummy2.cc
|
|
||||||
|
|
||||||
# DLLs need dependant libs there too ... put @VIPS_LIBS@ at the end
|
|
||||||
libvips_la_LIBADD = \
|
|
||||||
resample/libresample.la \
|
|
||||||
arithmetic/libarithmetic.la \
|
|
||||||
colour/libcolour.la \
|
|
||||||
conversion/libconversion.la \
|
|
||||||
convolution/libconvolution.la \
|
|
||||||
$(OPTIONAL_LIB) \
|
|
||||||
foreign/libforeign.la \
|
|
||||||
freqfilt/libfreqfilt.la \
|
|
||||||
histogram/libhistogram.la \
|
|
||||||
draw/libdraw.la \
|
|
||||||
iofuncs/libiofuncs.la \
|
|
||||||
morphology/libmorphology.la \
|
|
||||||
mosaicing/libmosaicing.la \
|
|
||||||
create/libcreate.la \
|
|
||||||
@VIPS_LIBS@
|
|
||||||
|
|
||||||
libvips_la_LDFLAGS = \
|
|
||||||
$(LDFLAGS_Z_NODELETE) \
|
|
||||||
-no-undefined \
|
|
||||||
-version-info @LIBRARY_CURRENT@:@LIBRARY_REVISION@:@LIBRARY_AGE@
|
|
||||||
|
|
||||||
EXTRA_DIST = \
|
|
||||||
$(OPTIONAL_DIST_DIR) \
|
|
||||||
meson.build
|
|
||||||
|
|
||||||
CLEANFILES =
|
|
||||||
|
|
||||||
# Modules
|
|
||||||
|
|
||||||
module_LTLIBRARIES =
|
|
||||||
|
|
||||||
# All modules within the $VIPSHOME/lib/vips-modules-MAJOR.MINOR
|
|
||||||
# directory are automatically loaded on vips_init.
|
|
||||||
|
|
||||||
moduledir = @VIPS_LIBDIR@/vips-modules-@VIPS_MAJOR_VERSION@.@VIPS_MINOR_VERSION@
|
|
||||||
|
|
||||||
if MAGICK_MODULE
|
|
||||||
module_LTLIBRARIES += vips-magick.la
|
|
||||||
endif # MAGICK_MODULE
|
|
||||||
|
|
||||||
if LIBJXL_MODULE
|
|
||||||
module_LTLIBRARIES += vips-jxl.la
|
|
||||||
endif # LIBJXL_MODULE
|
|
||||||
|
|
||||||
if HEIF_MODULE
|
|
||||||
module_LTLIBRARIES += vips-heif.la
|
|
||||||
endif # HEIF_MODULE
|
|
||||||
|
|
||||||
if POPPLER_MODULE
|
|
||||||
module_LTLIBRARIES += vips-poppler.la
|
|
||||||
endif # POPPLER_MODULE
|
|
||||||
|
|
||||||
if OPENSLIDE_MODULE
|
|
||||||
module_LTLIBRARIES += vips-openslide.la
|
|
||||||
endif # OPENSLIDE_MODULE
|
|
||||||
|
|
||||||
MODULE_CPPFLAGS = \
|
|
||||||
-I${top_srcdir}/libvips/include \
|
|
||||||
$(REQUIRED_CFLAGS)
|
|
||||||
|
|
||||||
MODULE_LDFLAGS = \
|
|
||||||
-no-undefined \
|
|
||||||
-shared \
|
|
||||||
-module \
|
|
||||||
-avoid-version
|
|
||||||
|
|
||||||
MODULE_LIBADD = \
|
|
||||||
libvips.la \
|
|
||||||
$(REQUIRED_LIBS)
|
|
||||||
|
|
||||||
# Note that only the GObject part should be included in a
|
|
||||||
# dynamically loadable module. The C definitions are always
|
|
||||||
# included in the main library.
|
|
||||||
|
|
||||||
vips_magick_la_SOURCES = \
|
|
||||||
module/magick.c \
|
|
||||||
foreign/magick.c \
|
|
||||||
foreign/magick.h \
|
|
||||||
foreign/magick2vips.c \
|
|
||||||
foreign/magick6load.c \
|
|
||||||
foreign/magick7load.c \
|
|
||||||
foreign/vips2magick.c
|
|
||||||
vips_magick_la_CPPFLAGS = $(MODULE_CPPFLAGS) $(MAGICK_CFLAGS)
|
|
||||||
vips_magick_la_LDFLAGS = $(MODULE_LDFLAGS)
|
|
||||||
vips_magick_la_LIBADD = $(MODULE_LIBADD) $(MAGICK_LIBS)
|
|
||||||
|
|
||||||
vips_jxl_la_SOURCES = module/jxl.c foreign/jxlload.c foreign/jxlsave.c
|
|
||||||
vips_jxl_la_CPPFLAGS = $(MODULE_CPPFLAGS) $(LIBJXL_CFLAGS)
|
|
||||||
vips_jxl_la_LDFLAGS = $(MODULE_LDFLAGS)
|
|
||||||
vips_jxl_la_LIBADD = $(MODULE_LIBADD) $(LIBJXL_LIBS)
|
|
||||||
|
|
||||||
vips_heif_la_SOURCES = module/heif.c foreign/heifload.c foreign/heifsave.c
|
|
||||||
vips_heif_la_CPPFLAGS = $(MODULE_CPPFLAGS) $(HEIF_CFLAGS)
|
|
||||||
vips_heif_la_LDFLAGS = $(MODULE_LDFLAGS)
|
|
||||||
vips_heif_la_LIBADD = $(MODULE_LIBADD) $(HEIF_LIBS)
|
|
||||||
|
|
||||||
vips_poppler_la_SOURCES = module/poppler.c foreign/popplerload.c
|
|
||||||
vips_poppler_la_CPPFLAGS = $(MODULE_CPPFLAGS) $(POPPLER_CFLAGS)
|
|
||||||
vips_poppler_la_LDFLAGS = $(MODULE_LDFLAGS)
|
|
||||||
vips_poppler_la_LIBADD = $(MODULE_LIBADD) $(POPPLER_LIBS)
|
|
||||||
|
|
||||||
vips_openslide_la_SOURCES = module/openslide.c foreign/openslideload.c
|
|
||||||
vips_openslide_la_CPPFLAGS = $(MODULE_CPPFLAGS) $(OPENSLIDE_CFLAGS)
|
|
||||||
vips_openslide_la_LDFLAGS = $(MODULE_LDFLAGS)
|
|
||||||
vips_openslide_la_LIBADD = $(MODULE_LIBADD) $(OPENSLIDE_LIBS)
|
|
||||||
|
|
||||||
# Introspection
|
|
||||||
|
|
||||||
-include $(INTROSPECTION_MAKEFILE)
|
|
||||||
INTROSPECTION_GIRS =
|
|
||||||
INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir)
|
|
||||||
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
|
|
||||||
|
|
||||||
if HAVE_INTROSPECTION
|
|
||||||
|
|
||||||
AM_CPPFLAGS = \
|
|
||||||
-I${top_srcdir}/libvips/include \
|
|
||||||
@VIPS_CFLAGS@ \
|
|
||||||
@VIPS_INCLUDES@ \
|
|
||||||
@INTROSPECTION_CFLAGS@
|
|
||||||
AM_LDFLAGS = \
|
|
||||||
@INTROSPECTION_LIBS@ \
|
|
||||||
@LDFLAGS@
|
|
||||||
LDADD = @INTROSPECTION_LIBS@ @VIPS_CFLAGS@ libvips.la @VIPS_LIBS@
|
|
||||||
|
|
||||||
noinst_PROGRAMS = \
|
|
||||||
introspect$(EXEEXT)
|
|
||||||
introspect_SOURCES = \
|
|
||||||
introspect.c
|
|
||||||
|
|
||||||
# we can't get the _SOURCES lists from the subdirs directly, we get passed it
|
|
||||||
# by configure instead
|
|
||||||
introspection_sources = @vips_introspection_sources@
|
|
||||||
|
|
||||||
# we make the vips8 API
|
|
||||||
Vips-8.0.gir: introspect$(EXEEXT)
|
|
||||||
Vips_8_0_gir_INCLUDES = GObject-2.0
|
|
||||||
Vips_8_0_gir_CFLAGS = $(INCLUDES) -I${top_srcdir}/libvips/include
|
|
||||||
Vips_8_0_gir_LIBS = libvips.la
|
|
||||||
Vips_8_0_gir_FILES = $(introspection_sources)
|
|
||||||
INTROSPECTION_GIRS += Vips-8.0.gir
|
|
||||||
|
|
||||||
# don't use
|
|
||||||
# --warn-all --verbose
|
|
||||||
# too annoying
|
|
||||||
Vips_8_0_gir_SCANNERFLAGS = \
|
|
||||||
--program=./introspect$(EXEEXT) \
|
|
||||||
--identifier-prefix=Vips \
|
|
||||||
--identifier-prefix=vips \
|
|
||||||
--symbol-prefix=vips \
|
|
||||||
--c-include=vips/vips.h
|
|
||||||
|
|
||||||
girdir = $(datadir)/gir-1.0
|
|
||||||
gir_DATA = $(INTROSPECTION_GIRS)
|
|
||||||
|
|
||||||
typelibdir = $(libdir)/girepository-1.0
|
|
||||||
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
|
|
||||||
|
|
||||||
CLEANFILES += $(gir_DATA) $(typelib_DATA)
|
|
||||||
|
|
||||||
endif
|
|
@ -1,52 +0,0 @@
|
|||||||
noinst_LTLIBRARIES = libarithmetic.la
|
|
||||||
|
|
||||||
libarithmetic_la_SOURCES = \
|
|
||||||
find_trim.c \
|
|
||||||
sum.c \
|
|
||||||
hough.c \
|
|
||||||
hough.h \
|
|
||||||
hough_line.c \
|
|
||||||
hough_circle.c \
|
|
||||||
abs.c \
|
|
||||||
complex.c \
|
|
||||||
deviate.c \
|
|
||||||
divide.c \
|
|
||||||
measure.c \
|
|
||||||
getpoint.c \
|
|
||||||
multiply.c \
|
|
||||||
remainder.c \
|
|
||||||
sign.c \
|
|
||||||
statistic.c \
|
|
||||||
statistic.h \
|
|
||||||
stats.c \
|
|
||||||
avg.c \
|
|
||||||
min.c \
|
|
||||||
max.c \
|
|
||||||
hist_find.c \
|
|
||||||
hist_find_ndim.c \
|
|
||||||
hist_find_indexed.c \
|
|
||||||
project.c \
|
|
||||||
profile.c \
|
|
||||||
subtract.c \
|
|
||||||
math.c \
|
|
||||||
arithmetic.c \
|
|
||||||
parithmetic.h \
|
|
||||||
binary.c \
|
|
||||||
binary.h \
|
|
||||||
unary.c \
|
|
||||||
unary.h \
|
|
||||||
nary.c \
|
|
||||||
nary.h \
|
|
||||||
unaryconst.c \
|
|
||||||
unaryconst.h \
|
|
||||||
relational.c \
|
|
||||||
boolean.c \
|
|
||||||
add.c \
|
|
||||||
linear.c \
|
|
||||||
invert.c \
|
|
||||||
math2.c \
|
|
||||||
round.c
|
|
||||||
|
|
||||||
AM_CPPFLAGS = -I${top_srcdir}/libvips/include @VIPS_CFLAGS@ @VIPS_INCLUDES@
|
|
||||||
|
|
||||||
EXTRA_DIST = meson.build
|
|
@ -1,50 +0,0 @@
|
|||||||
SUBDIRS = profiles
|
|
||||||
|
|
||||||
noinst_LTLIBRARIES = libcolour.la
|
|
||||||
|
|
||||||
libcolour_la_SOURCES = \
|
|
||||||
profiles.c \
|
|
||||||
profiles.h \
|
|
||||||
profile_load.c \
|
|
||||||
colour.c \
|
|
||||||
pcolour.h \
|
|
||||||
CMYK2XYZ.c \
|
|
||||||
XYZ2CMYK.c \
|
|
||||||
colourspace.c \
|
|
||||||
dE76.c \
|
|
||||||
dE00.c \
|
|
||||||
dECMC.c \
|
|
||||||
icc_transform.c \
|
|
||||||
Lab2XYZ.c \
|
|
||||||
Lab2LCh.c \
|
|
||||||
LCh2Lab.c \
|
|
||||||
LCh2UCS.c \
|
|
||||||
UCS2LCh.c \
|
|
||||||
XYZ2Lab.c \
|
|
||||||
XYZ2Yxy.c \
|
|
||||||
Yxy2XYZ.c \
|
|
||||||
float2rad.c \
|
|
||||||
rad2float.c \
|
|
||||||
Lab2LabQ.c \
|
|
||||||
LabQ2Lab.c \
|
|
||||||
LabS2Lab.c \
|
|
||||||
Lab2LabS.c \
|
|
||||||
LabS2LabQ.c \
|
|
||||||
LabQ2LabS.c \
|
|
||||||
LabQ2sRGB.c \
|
|
||||||
sRGB2scRGB.c \
|
|
||||||
sRGB2HSV.c \
|
|
||||||
HSV2sRGB.c \
|
|
||||||
scRGB2XYZ.c \
|
|
||||||
scRGB2BW.c \
|
|
||||||
XYZ2scRGB.c \
|
|
||||||
scRGB2sRGB.c
|
|
||||||
|
|
||||||
profiles.c:
|
|
||||||
./wrap-profiles.sh profiles profiles.c
|
|
||||||
|
|
||||||
EXTRA_DIST = \
|
|
||||||
meson.build \
|
|
||||||
wrap-profiles.sh
|
|
||||||
|
|
||||||
AM_CPPFLAGS = -I${top_srcdir}/libvips/include @VIPS_CFLAGS@ @VIPS_INCLUDES@
|
|
@ -1,4 +0,0 @@
|
|||||||
EXTRA_DIST = \
|
|
||||||
p3.icm \
|
|
||||||
cmyk.icm \
|
|
||||||
sRGB.icm
|
|
@ -1,56 +0,0 @@
|
|||||||
noinst_LTLIBRARIES = libconversion.la
|
|
||||||
|
|
||||||
libconversion_la_SOURCES = \
|
|
||||||
switch.c \
|
|
||||||
transpose3d.c \
|
|
||||||
composite.cpp \
|
|
||||||
smartcrop.c \
|
|
||||||
conversion.c \
|
|
||||||
pconversion.h \
|
|
||||||
tilecache.c \
|
|
||||||
gamma.c \
|
|
||||||
sequential.c \
|
|
||||||
flatten.c \
|
|
||||||
premultiply.c \
|
|
||||||
unpremultiply.c \
|
|
||||||
byteswap.c \
|
|
||||||
cache.c \
|
|
||||||
copy.c \
|
|
||||||
embed.c \
|
|
||||||
flip.c \
|
|
||||||
insert.c \
|
|
||||||
join.c \
|
|
||||||
arrayjoin.c \
|
|
||||||
extract.c \
|
|
||||||
replicate.c \
|
|
||||||
cast.c \
|
|
||||||
bandjoin.c \
|
|
||||||
bandrank.c \
|
|
||||||
recomb.c \
|
|
||||||
bandmean.c \
|
|
||||||
bandfold.c \
|
|
||||||
bandunfold.c \
|
|
||||||
bandbool.c \
|
|
||||||
bandary.h \
|
|
||||||
bandary.c \
|
|
||||||
rot.c \
|
|
||||||
rot45.c \
|
|
||||||
autorot.c \
|
|
||||||
ifthenelse.c \
|
|
||||||
falsecolour.c \
|
|
||||||
msb.c \
|
|
||||||
grid.c \
|
|
||||||
scale.c \
|
|
||||||
wrap.c \
|
|
||||||
subsample.c \
|
|
||||||
zoom.c
|
|
||||||
|
|
||||||
# gcc annoyingly warns about clang pragmas, and does not support suppressing
|
|
||||||
# the warning with a gcc pragma
|
|
||||||
AM_CPPFLAGS = \
|
|
||||||
-I${top_srcdir}/libvips/include \
|
|
||||||
@VIPS_CFLAGS@ @VIPS_INCLUDES@ \
|
|
||||||
-Wno-unknown-pragmas
|
|
||||||
|
|
||||||
EXTRA_DIST = meson.build
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
|||||||
noinst_LTLIBRARIES = libconvolution.la
|
|
||||||
|
|
||||||
libconvolution_la_SOURCES = \
|
|
||||||
canny.c \
|
|
||||||
sobel.c \
|
|
||||||
convolution.c \
|
|
||||||
pconvolution.h \
|
|
||||||
correlation.c \
|
|
||||||
correlation.h \
|
|
||||||
conv.c \
|
|
||||||
conva.c \
|
|
||||||
convf.c \
|
|
||||||
convi.c \
|
|
||||||
convasep.c \
|
|
||||||
convsep.c \
|
|
||||||
compass.c \
|
|
||||||
fastcor.c \
|
|
||||||
spcor.c \
|
|
||||||
sharpen.c \
|
|
||||||
gaussblur.c
|
|
||||||
|
|
||||||
AM_CPPFLAGS = -I${top_srcdir}/libvips/include @VIPS_CFLAGS@ @VIPS_INCLUDES@
|
|
||||||
|
|
||||||
EXTRA_DIST = meson.build
|
|
@ -1,40 +0,0 @@
|
|||||||
noinst_LTLIBRARIES = libcreate.la
|
|
||||||
|
|
||||||
libcreate_la_SOURCES = \
|
|
||||||
perlin.c \
|
|
||||||
worley.c \
|
|
||||||
create.c \
|
|
||||||
pcreate.h \
|
|
||||||
gaussmat.c \
|
|
||||||
logmat.c \
|
|
||||||
buildlut.c \
|
|
||||||
invertlut.c \
|
|
||||||
tonelut.c \
|
|
||||||
identity.c \
|
|
||||||
point.c \
|
|
||||||
point.h \
|
|
||||||
mask.c \
|
|
||||||
pmask.h \
|
|
||||||
mask_ideal.c \
|
|
||||||
mask_ideal_ring.c \
|
|
||||||
mask_ideal_band.c \
|
|
||||||
mask_butterworth.c \
|
|
||||||
mask_butterworth_ring.c \
|
|
||||||
mask_butterworth_band.c \
|
|
||||||
mask_gaussian.c \
|
|
||||||
mask_gaussian_ring.c \
|
|
||||||
mask_gaussian_band.c \
|
|
||||||
mask_fractal.c \
|
|
||||||
fractsurf.c \
|
|
||||||
eye.c \
|
|
||||||
grey.c \
|
|
||||||
xyz.c \
|
|
||||||
black.c \
|
|
||||||
text.c \
|
|
||||||
gaussnoise.c \
|
|
||||||
sines.c \
|
|
||||||
zone.c
|
|
||||||
|
|
||||||
AM_CPPFLAGS = -I${top_srcdir}/libvips/include @VIPS_CFLAGS@ @VIPS_INCLUDES@
|
|
||||||
|
|
||||||
EXTRA_DIST = meson.build
|
|
@ -1,101 +0,0 @@
|
|||||||
noinst_LTLIBRARIES = libdeprecated.la
|
|
||||||
|
|
||||||
libdeprecated_la_SOURCES = \
|
|
||||||
video_dispatch.c \
|
|
||||||
im_video_test.c \
|
|
||||||
cimg_dispatch.c \
|
|
||||||
inplace_dispatch.c \
|
|
||||||
tone.c \
|
|
||||||
freq_dispatch.c \
|
|
||||||
im_linreg.c \
|
|
||||||
im_point_bilinear.c \
|
|
||||||
resample_dispatch.c \
|
|
||||||
im_openslide2vips.c \
|
|
||||||
im_nifti2vips.c \
|
|
||||||
im_lab_morph.c \
|
|
||||||
deprecated_dispatch.c \
|
|
||||||
mosaicing_dispatch.c \
|
|
||||||
im_maxpos_subpel.c \
|
|
||||||
im_align_bands.c \
|
|
||||||
morph_dispatch.c \
|
|
||||||
colour_dispatch.c \
|
|
||||||
convol_dispatch.c \
|
|
||||||
im_zerox.c \
|
|
||||||
arith_dispatch.c \
|
|
||||||
hist_dispatch.c \
|
|
||||||
other_dispatch.c \
|
|
||||||
im_maxpos_avg.c \
|
|
||||||
lazy.c \
|
|
||||||
im_dif_std.c \
|
|
||||||
im_simcontr.c \
|
|
||||||
im_spatres.c \
|
|
||||||
im_stretch3.c \
|
|
||||||
im_clamp.c \
|
|
||||||
cooc_funcs.c \
|
|
||||||
glds_funcs.c \
|
|
||||||
im_fav4.c \
|
|
||||||
im_benchmark.c \
|
|
||||||
im_gadd.c \
|
|
||||||
im_gaddim.c \
|
|
||||||
im_gradcor.c \
|
|
||||||
im_cmulnorm.c \
|
|
||||||
im_printlines.c \
|
|
||||||
im_convsub.c \
|
|
||||||
im_line.c \
|
|
||||||
im_measure.c \
|
|
||||||
im_resize_linear.c \
|
|
||||||
im_debugim.c \
|
|
||||||
im_gfadd.c \
|
|
||||||
im_setbox.c \
|
|
||||||
rename.c \
|
|
||||||
vips7compat.c \
|
|
||||||
dispatch_types.c \
|
|
||||||
package.c \
|
|
||||||
im_bernd.c \
|
|
||||||
im_thresh.c \
|
|
||||||
im_slice.c \
|
|
||||||
im_print.c \
|
|
||||||
im_litecor.c \
|
|
||||||
im_mask2vips.c \
|
|
||||||
im_vips2mask.c \
|
|
||||||
rotmask.c \
|
|
||||||
rw_mask.c \
|
|
||||||
im_matcat.c \
|
|
||||||
im_matinv.c \
|
|
||||||
im_matmul.c \
|
|
||||||
im_mattrn.c \
|
|
||||||
matalloc.c \
|
|
||||||
mask_dispatch.c \
|
|
||||||
fits.c \
|
|
||||||
format.c \
|
|
||||||
format_dispatch.c \
|
|
||||||
im_analyze2vips.c \
|
|
||||||
im_csv2vips.c \
|
|
||||||
im_exr2vips.c \
|
|
||||||
im_jpeg2vips.c \
|
|
||||||
im_magick2vips.c \
|
|
||||||
im_png2vips.c \
|
|
||||||
im_webp2vips.c \
|
|
||||||
im_ppm2vips.c \
|
|
||||||
im_tiff2vips.c \
|
|
||||||
im_vips2csv.c \
|
|
||||||
im_vips2jpeg.c \
|
|
||||||
im_vips2png.c \
|
|
||||||
im_vips2webp.c \
|
|
||||||
im_vips2ppm.c \
|
|
||||||
im_vips2tiff.c \
|
|
||||||
conver_dispatch.c \
|
|
||||||
im_vips2dz.c \
|
|
||||||
im_freq_mask.c \
|
|
||||||
matlab.c \
|
|
||||||
radiance.c \
|
|
||||||
raw.c
|
|
||||||
|
|
||||||
# don't warn about deprecation for funcs in this directory
|
|
||||||
AM_CPPFLAGS = \
|
|
||||||
-I${top_srcdir}/libvips/include \
|
|
||||||
@VIPS_CFLAGS@ \
|
|
||||||
@VIPS_INCLUDES@ \
|
|
||||||
-DVIPS_DISABLE_DEPRECATION_WARNINGS
|
|
||||||
|
|
||||||
EXTRA_DIST = meson.build
|
|
@ -1,18 +0,0 @@
|
|||||||
noinst_LTLIBRARIES = libdraw.la
|
|
||||||
|
|
||||||
libdraw_la_SOURCES = \
|
|
||||||
draw.c \
|
|
||||||
pdraw.h \
|
|
||||||
drawink.c \
|
|
||||||
drawink.h \
|
|
||||||
draw_circle.c \
|
|
||||||
draw_flood.c \
|
|
||||||
draw_mask.c \
|
|
||||||
draw_image.c \
|
|
||||||
draw_rect.c \
|
|
||||||
draw_line.c \
|
|
||||||
draw_smudge.c
|
|
||||||
|
|
||||||
AM_CPPFLAGS = -I${top_srcdir}/libvips/include @VIPS_CFLAGS@ @VIPS_INCLUDES@
|
|
||||||
|
|
||||||
EXTRA_DIST = meson.build
|
|
@ -1,3 +0,0 @@
|
|||||||
/* mac os x libtool hates empty link sections in convenience libraries
|
|
||||||
*/
|
|
||||||
const int vips__dummy_value = 42;
|
|
@ -1,98 +0,0 @@
|
|||||||
SUBDIRS = libnsgif
|
|
||||||
|
|
||||||
noinst_LTLIBRARIES = libforeign.la
|
|
||||||
|
|
||||||
libforeign_la_SOURCES = \
|
|
||||||
analyze2vips.c \
|
|
||||||
analyzeload.c \
|
|
||||||
cairo.c \
|
|
||||||
cgifsave.c \
|
|
||||||
csvload.c \
|
|
||||||
csvsave.c \
|
|
||||||
dbh.h \
|
|
||||||
dzsave.c \
|
|
||||||
exif.c \
|
|
||||||
fits.c \
|
|
||||||
fitsload.c \
|
|
||||||
fitssave.c \
|
|
||||||
foreign.c \
|
|
||||||
jp2kload.c \
|
|
||||||
jp2ksave.c \
|
|
||||||
jpeg2vips.c \
|
|
||||||
jpeg.h \
|
|
||||||
jpegload.c \
|
|
||||||
jpegsave.c \
|
|
||||||
magickload.c \
|
|
||||||
magicksave.c \
|
|
||||||
matlab.c \
|
|
||||||
matload.c \
|
|
||||||
matrixload.c \
|
|
||||||
matrixsave.c \
|
|
||||||
niftiload.c \
|
|
||||||
niftisave.c \
|
|
||||||
nsgifload.c \
|
|
||||||
openexr2vips.c \
|
|
||||||
openexrload.c \
|
|
||||||
pdfiumload.c \
|
|
||||||
pforeign.h \
|
|
||||||
pngload.c \
|
|
||||||
spngsave.c \
|
|
||||||
pngsave.c \
|
|
||||||
ppmload.c \
|
|
||||||
ppmsave.c \
|
|
||||||
quantise.h \
|
|
||||||
quantise.c \
|
|
||||||
radiance.c \
|
|
||||||
radload.c \
|
|
||||||
radsave.c \
|
|
||||||
rawload.c \
|
|
||||||
rawsave.c \
|
|
||||||
spngload.c \
|
|
||||||
svgload.c \
|
|
||||||
tiff2vips.c \
|
|
||||||
tiff.c \
|
|
||||||
tiff.h \
|
|
||||||
tiffload.c \
|
|
||||||
tiffsave.c \
|
|
||||||
vips2jpeg.c \
|
|
||||||
vips2tiff.c \
|
|
||||||
vips2webp.c \
|
|
||||||
vipsload.c \
|
|
||||||
vipspng.c \
|
|
||||||
vipssave.c \
|
|
||||||
webp2vips.c \
|
|
||||||
webpload.c \
|
|
||||||
webpsave.c
|
|
||||||
|
|
||||||
# We still need to include the GObject part of a loader/saver
|
|
||||||
# if it is not built as a dynamically loadable module.
|
|
||||||
|
|
||||||
if !MAGICK_MODULE
|
|
||||||
libforeign_la_SOURCES += \
|
|
||||||
magick.c \
|
|
||||||
magick.h \
|
|
||||||
magick2vips.c \
|
|
||||||
magick6load.c \
|
|
||||||
magick7load.c \
|
|
||||||
vips2magick.c
|
|
||||||
endif # !MAGICK_MODULE
|
|
||||||
|
|
||||||
if !LIBJXL_MODULE
|
|
||||||
libforeign_la_SOURCES += jxlload.c jxlsave.c
|
|
||||||
endif # !LIBJXL_MODULE
|
|
||||||
|
|
||||||
if !HEIF_MODULE
|
|
||||||
libforeign_la_SOURCES += heifload.c heifsave.c
|
|
||||||
endif # !HEIF_MODULE
|
|
||||||
|
|
||||||
if !POPPLER_MODULE
|
|
||||||
libforeign_la_SOURCES += popplerload.c
|
|
||||||
endif # !POPPLER_MODULE
|
|
||||||
|
|
||||||
if !OPENSLIDE_MODULE
|
|
||||||
libforeign_la_SOURCES += openslideload.c
|
|
||||||
endif # !OPENSLIDE_MODULE
|
|
||||||
|
|
||||||
AM_CPPFLAGS = -I${top_srcdir}/libvips/include @VIPS_CFLAGS@ @VIPS_INCLUDES@
|
|
||||||
|
|
||||||
EXTRA_DIST = meson.build
|
|
@ -1,23 +0,0 @@
|
|||||||
noinst_LTLIBRARIES = libnsgif.la
|
|
||||||
|
|
||||||
MY_SOURCES = \
|
|
||||||
nsgif.h \
|
|
||||||
gif.c \
|
|
||||||
lzw.c \
|
|
||||||
lzw.h
|
|
||||||
|
|
||||||
if ENABLE_NSGIF
|
|
||||||
libnsgif_la_SOURCES = $(MY_SOURCES)
|
|
||||||
endif
|
|
||||||
|
|
||||||
EXTRA_DIST = \
|
|
||||||
meson.build \
|
|
||||||
patches \
|
|
||||||
README.md \
|
|
||||||
README-ns.md \
|
|
||||||
update.sh
|
|
||||||
|
|
||||||
if !ENABLE_NSGIF
|
|
||||||
EXTRA_DIST += \
|
|
||||||
$(MY_SOURCES)
|
|
||||||
endif
|
|
@ -1,14 +0,0 @@
|
|||||||
noinst_LTLIBRARIES = libfreqfilt.la
|
|
||||||
|
|
||||||
libfreqfilt_la_SOURCES = \
|
|
||||||
freqfilt.c \
|
|
||||||
pfreqfilt.h \
|
|
||||||
fwfft.c \
|
|
||||||
invfft.c \
|
|
||||||
freqmult.c \
|
|
||||||
spectrum.c \
|
|
||||||
phasecor.c
|
|
||||||
|
|
||||||
AM_CPPFLAGS = -I${top_srcdir}/libvips/include @VIPS_CFLAGS@ @VIPS_INCLUDES@
|
|
||||||
|
|
||||||
EXTRA_DIST = meson.build
|
|
@ -1,23 +0,0 @@
|
|||||||
noinst_LTLIBRARIES = libhistogram.la
|
|
||||||
|
|
||||||
libhistogram_la_SOURCES = \
|
|
||||||
histogram.c \
|
|
||||||
phistogram.h \
|
|
||||||
maplut.c \
|
|
||||||
case.c \
|
|
||||||
hist_unary.c \
|
|
||||||
hist_unary.h \
|
|
||||||
hist_cum.c \
|
|
||||||
hist_norm.c \
|
|
||||||
hist_equal.c \
|
|
||||||
hist_plot.c \
|
|
||||||
hist_match.c \
|
|
||||||
hist_local.c \
|
|
||||||
percent.c \
|
|
||||||
hist_ismonotonic.c \
|
|
||||||
hist_entropy.c \
|
|
||||||
stdif.c
|
|
||||||
|
|
||||||
AM_CPPFLAGS = -I${top_srcdir}/libvips/include @VIPS_CFLAGS@ @VIPS_INCLUDES@
|
|
||||||
|
|
||||||
EXTRA_DIST = meson.build
|
|
@ -1,2 +0,0 @@
|
|||||||
|
|
||||||
SUBDIRS = vips
|
|
@ -1,83 +0,0 @@
|
|||||||
pkginclude_HEADERS = \
|
|
||||||
connection.h \
|
|
||||||
sbuf.h \
|
|
||||||
basic.h \
|
|
||||||
type.h \
|
|
||||||
gate.h \
|
|
||||||
almostdeprecated.h \
|
|
||||||
deprecated.h \
|
|
||||||
arithmetic.h \
|
|
||||||
buf.h \
|
|
||||||
dbuf.h \
|
|
||||||
colour.h \
|
|
||||||
conversion.h \
|
|
||||||
convolution.h \
|
|
||||||
debug.h \
|
|
||||||
dispatch.h \
|
|
||||||
enumtypes.h \
|
|
||||||
error.h \
|
|
||||||
operation.h \
|
|
||||||
format.h \
|
|
||||||
foreign.h \
|
|
||||||
draw.h \
|
|
||||||
generate.h \
|
|
||||||
header.h \
|
|
||||||
histogram.h \
|
|
||||||
freqfilt.h \
|
|
||||||
image.h \
|
|
||||||
interpolate.h \
|
|
||||||
intl.h \
|
|
||||||
mask.h \
|
|
||||||
memory.h \
|
|
||||||
morphology.h \
|
|
||||||
mosaicing.h \
|
|
||||||
create.h \
|
|
||||||
video.h \
|
|
||||||
object.h \
|
|
||||||
private.h \
|
|
||||||
rect.h \
|
|
||||||
region.h \
|
|
||||||
resample.h \
|
|
||||||
semaphore.h \
|
|
||||||
threadpool.h \
|
|
||||||
thread.h \
|
|
||||||
transform.h \
|
|
||||||
util.h \
|
|
||||||
vector.h \
|
|
||||||
vips7compat.h \
|
|
||||||
vips.h
|
|
||||||
|
|
||||||
nodist_pkginclude_HEADERS = version.h
|
|
||||||
|
|
||||||
EXTRA_DIST = \
|
|
||||||
enumtemplate \
|
|
||||||
enumtypes.c.in \
|
|
||||||
enumtypes.h.in \
|
|
||||||
internal.h \
|
|
||||||
meson.build \
|
|
||||||
version.h.in
|
|
||||||
|
|
||||||
# the headers we scan for enums etc.
|
|
||||||
# keep in sync with ${top_srcdir}/libvips/iofuncs/Makefile.am
|
|
||||||
# we need absolute filenames here since this list appears in the src dir as
|
|
||||||
# well
|
|
||||||
vips_scan_headers = \
|
|
||||||
${top_srcdir}/libvips/include/vips/resample.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/memory.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/create.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/foreign.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/arithmetic.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/conversion.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/util.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/image.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/colour.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/operation.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/convolution.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/morphology.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/draw.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/basic.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/object.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/region.h
|
|
||||||
|
|
||||||
enumtypes.h: $(vips_scan_headers) Makefile.am
|
|
||||||
glib-mkenums --template ${top_srcdir}/libvips/include/vips/enumtemplate $(vips_scan_headers) > enumtypes.h
|
|
@ -1,85 +0,0 @@
|
|||||||
noinst_LTLIBRARIES = libiofuncs.la
|
|
||||||
|
|
||||||
libiofuncs_la_SOURCES = \
|
|
||||||
ginputsource.c \
|
|
||||||
sourceginput.c \
|
|
||||||
connection.c \
|
|
||||||
source.c \
|
|
||||||
sourcecustom.c \
|
|
||||||
target.c \
|
|
||||||
targetcustom.c \
|
|
||||||
sbuf.c \
|
|
||||||
dbuf.c \
|
|
||||||
reorder.c \
|
|
||||||
vipsmarshal.h \
|
|
||||||
vipsmarshal.c \
|
|
||||||
type.c \
|
|
||||||
gate.c \
|
|
||||||
enumtypes.c \
|
|
||||||
object.c \
|
|
||||||
error.c \
|
|
||||||
image.c \
|
|
||||||
vips.c \
|
|
||||||
generate.c \
|
|
||||||
mapfile.c \
|
|
||||||
cache.c \
|
|
||||||
sink.h \
|
|
||||||
sink.c \
|
|
||||||
sinkmemory.c \
|
|
||||||
sinkdisc.c \
|
|
||||||
sinkscreen.c \
|
|
||||||
memory.c \
|
|
||||||
header.c \
|
|
||||||
operation.c \
|
|
||||||
region.c \
|
|
||||||
rect.c \
|
|
||||||
semaphore.c \
|
|
||||||
threadpool.c \
|
|
||||||
util.c \
|
|
||||||
init.c \
|
|
||||||
buf.c \
|
|
||||||
window.c \
|
|
||||||
vector.c \
|
|
||||||
system.c \
|
|
||||||
buffer.c
|
|
||||||
|
|
||||||
vipsmarshal.h: vipsmarshal.list
|
|
||||||
glib-genmarshal --prefix=vips --header vipsmarshal.list > vipsmarshal.h
|
|
||||||
vipsmarshal.c: vipsmarshal.list
|
|
||||||
echo "#include \"vipsmarshal.h\"" > vipsmarshal.c
|
|
||||||
glib-genmarshal --prefix=vips --body vipsmarshal.list >> vipsmarshal.c
|
|
||||||
|
|
||||||
EXTRA_DIST = \
|
|
||||||
enumtemplate \
|
|
||||||
meson.build \
|
|
||||||
vipsmarshal.c \
|
|
||||||
vipsmarshal.h \
|
|
||||||
vipsmarshal.list
|
|
||||||
|
|
||||||
AM_CPPFLAGS = -I${top_srcdir}/libvips/include @VIPS_CFLAGS@ @VIPS_INCLUDES@
|
|
||||||
|
|
||||||
# the headers we scan for enums etc.
|
|
||||||
# keep in sync with ../include/vips/Makefile.am
|
|
||||||
# we need absolute filenames here since this list appears in the header dir as
|
|
||||||
# well
|
|
||||||
vips_scan_headers = \
|
|
||||||
${top_srcdir}/libvips/include/vips/resample.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/memory.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/create.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/foreign.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/conversion.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/arithmetic.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/util.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/image.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/colour.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/operation.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/convolution.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/morphology.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/draw.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/basic.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/object.h \
|
|
||||||
${top_srcdir}/libvips/include/vips/region.h
|
|
||||||
|
|
||||||
enumtypes.c: $(vips_scan_headers) Makefile.am
|
|
||||||
glib-mkenums --template ${top_srcdir}/libvips/iofuncs/enumtemplate $(vips_scan_headers) > enumtypes.c
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
|||||||
EXTRA_DIST = \
|
|
||||||
jxl.c \
|
|
||||||
heif.c \
|
|
||||||
magick.c \
|
|
||||||
openslide.c \
|
|
||||||
poppler.c
|
|
@ -1,14 +0,0 @@
|
|||||||
noinst_LTLIBRARIES = libmorphology.la
|
|
||||||
|
|
||||||
libmorphology_la_SOURCES = \
|
|
||||||
nearest.c \
|
|
||||||
morphology.c \
|
|
||||||
pmorphology.h \
|
|
||||||
countlines.c \
|
|
||||||
rank.c \
|
|
||||||
morph.c \
|
|
||||||
labelregions.c
|
|
||||||
|
|
||||||
AM_CPPFLAGS = -I${top_srcdir}/libvips/include @VIPS_CFLAGS@ @VIPS_INCLUDES@
|
|
||||||
|
|
||||||
EXTRA_DIST = meson.build
|
|
@ -1,28 +0,0 @@
|
|||||||
noinst_LTLIBRARIES = libmosaicing.la
|
|
||||||
|
|
||||||
libmosaicing_la_SOURCES = \
|
|
||||||
mosaicing.c \
|
|
||||||
merge.c \
|
|
||||||
mosaic.c \
|
|
||||||
match.c \
|
|
||||||
mosaic1.c \
|
|
||||||
chkpair.c \
|
|
||||||
matrixinvert.c \
|
|
||||||
global_balance.c \
|
|
||||||
lrmerge.c \
|
|
||||||
tbmerge.c \
|
|
||||||
lrmosaic.c \
|
|
||||||
tbmosaic.c \
|
|
||||||
remosaic.c \
|
|
||||||
im_avgdxdy.c \
|
|
||||||
im_clinear.c \
|
|
||||||
im_improve.c \
|
|
||||||
im_initialize.c \
|
|
||||||
im_lrcalcon.c \
|
|
||||||
im_tbcalcon.c \
|
|
||||||
global_balance.h \
|
|
||||||
pmosaicing.h
|
|
||||||
|
|
||||||
AM_CPPFLAGS = -I${top_srcdir}/libvips/include @VIPS_CFLAGS@ @VIPS_INCLUDES@
|
|
||||||
|
|
||||||
EXTRA_DIST = meson.build
|
|
@ -1,30 +0,0 @@
|
|||||||
libresample_la_SOURCES = \
|
|
||||||
thumbnail.c \
|
|
||||||
mapim.c \
|
|
||||||
affine.c \
|
|
||||||
quadratic.c \
|
|
||||||
resample.c \
|
|
||||||
similarity.c \
|
|
||||||
resize.c \
|
|
||||||
presample.h \
|
|
||||||
shrink.c \
|
|
||||||
shrinkh.c \
|
|
||||||
shrinkv.c \
|
|
||||||
reduce.c \
|
|
||||||
reduceh.cpp \
|
|
||||||
reducev.cpp \
|
|
||||||
interpolate.c \
|
|
||||||
transform.c \
|
|
||||||
bicubic.cpp \
|
|
||||||
lbb.cpp \
|
|
||||||
nohalo.cpp \
|
|
||||||
vsqbs.cpp \
|
|
||||||
templates.h
|
|
||||||
|
|
||||||
EXTRA_DIST = \
|
|
||||||
dummy2.cc \
|
|
||||||
meson.build
|
|
||||||
|
|
||||||
noinst_LTLIBRARIES = libresample.la
|
|
||||||
|
|
||||||
AM_CPPFLAGS = -I${top_srcdir}/libvips/include @VIPS_CFLAGS@ @VIPS_INCLUDES@
|
|
@ -1,141 +0,0 @@
|
|||||||
# ===========================================================================
|
|
||||||
# https://www.gnu.org/software/autoconf-archive/ax_gcc_var_attribute.html
|
|
||||||
# ===========================================================================
|
|
||||||
#
|
|
||||||
# SYNOPSIS
|
|
||||||
#
|
|
||||||
# AX_GCC_VAR_ATTRIBUTE(ATTRIBUTE)
|
|
||||||
#
|
|
||||||
# DESCRIPTION
|
|
||||||
#
|
|
||||||
# This macro checks if the compiler supports one of GCC's variable
|
|
||||||
# attributes; many other compilers also provide variable attributes with
|
|
||||||
# the same syntax. Compiler warnings are used to detect supported
|
|
||||||
# attributes as unsupported ones are ignored by default so quieting
|
|
||||||
# warnings when using this macro will yield false positives.
|
|
||||||
#
|
|
||||||
# The ATTRIBUTE parameter holds the name of the attribute to be checked.
|
|
||||||
#
|
|
||||||
# If ATTRIBUTE is supported define HAVE_VAR_ATTRIBUTE_<ATTRIBUTE>.
|
|
||||||
#
|
|
||||||
# The macro caches its result in the ax_cv_have_var_attribute_<attribute>
|
|
||||||
# variable.
|
|
||||||
#
|
|
||||||
# The macro currently supports the following variable attributes:
|
|
||||||
#
|
|
||||||
# aligned
|
|
||||||
# cleanup
|
|
||||||
# common
|
|
||||||
# nocommon
|
|
||||||
# deprecated
|
|
||||||
# mode
|
|
||||||
# packed
|
|
||||||
# tls_model
|
|
||||||
# unused
|
|
||||||
# used
|
|
||||||
# vector_size
|
|
||||||
# weak
|
|
||||||
# dllimport
|
|
||||||
# dllexport
|
|
||||||
# init_priority
|
|
||||||
#
|
|
||||||
# Unsupported variable attributes will be tested against a global integer
|
|
||||||
# variable and without any arguments given to the attribute itself; the
|
|
||||||
# result of this check might be wrong or meaningless so use with care.
|
|
||||||
#
|
|
||||||
# LICENSE
|
|
||||||
#
|
|
||||||
# Copyright (c) 2013 Gabriele Svelto <gabriele.svelto@gmail.com>
|
|
||||||
#
|
|
||||||
# Copying and distribution of this file, with or without modification, are
|
|
||||||
# permitted in any medium without royalty provided the copyright notice
|
|
||||||
# and this notice are preserved. This file is offered as-is, without any
|
|
||||||
# warranty.
|
|
||||||
|
|
||||||
#serial 5
|
|
||||||
|
|
||||||
AC_DEFUN([AX_GCC_VAR_ATTRIBUTE], [
|
|
||||||
AS_VAR_PUSHDEF([ac_var], [ax_cv_have_var_attribute_$1])
|
|
||||||
|
|
||||||
AC_CACHE_CHECK([for __attribute__(($1))], [ac_var], [
|
|
||||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([
|
|
||||||
m4_case([$1],
|
|
||||||
[aligned], [
|
|
||||||
int foo __attribute__(($1(32)));
|
|
||||||
],
|
|
||||||
[cleanup], [
|
|
||||||
int bar(int *t) { return *t; };
|
|
||||||
],
|
|
||||||
[common], [
|
|
||||||
int foo __attribute__(($1));
|
|
||||||
],
|
|
||||||
[nocommon], [
|
|
||||||
int foo __attribute__(($1));
|
|
||||||
],
|
|
||||||
[deprecated], [
|
|
||||||
int foo __attribute__(($1)) = 0;
|
|
||||||
],
|
|
||||||
[mode], [
|
|
||||||
long foo __attribute__(($1(word)));
|
|
||||||
],
|
|
||||||
[packed], [
|
|
||||||
struct bar {
|
|
||||||
int baz __attribute__(($1));
|
|
||||||
};
|
|
||||||
],
|
|
||||||
[tls_model], [
|
|
||||||
__thread int bar1 __attribute__(($1("global-dynamic")));
|
|
||||||
__thread int bar2 __attribute__(($1("local-dynamic")));
|
|
||||||
__thread int bar3 __attribute__(($1("initial-exec")));
|
|
||||||
__thread int bar4 __attribute__(($1("local-exec")));
|
|
||||||
],
|
|
||||||
[unused], [
|
|
||||||
int foo __attribute__(($1));
|
|
||||||
],
|
|
||||||
[used], [
|
|
||||||
int foo __attribute__(($1));
|
|
||||||
],
|
|
||||||
[vector_size], [
|
|
||||||
int foo __attribute__(($1(16)));
|
|
||||||
],
|
|
||||||
[weak], [
|
|
||||||
int foo __attribute__(($1));
|
|
||||||
],
|
|
||||||
[dllimport], [
|
|
||||||
int foo __attribute__(($1));
|
|
||||||
],
|
|
||||||
[dllexport], [
|
|
||||||
int foo __attribute__(($1));
|
|
||||||
],
|
|
||||||
[init_priority], [
|
|
||||||
struct bar { bar() {} ~bar() {} };
|
|
||||||
bar b __attribute__(($1(65535/2)));
|
|
||||||
],
|
|
||||||
[
|
|
||||||
m4_warn([syntax], [Unsupported attribute $1, the test may fail])
|
|
||||||
int foo __attribute__(($1));
|
|
||||||
]
|
|
||||||
)], [
|
|
||||||
m4_case([$1],
|
|
||||||
[cleanup], [
|
|
||||||
int foo __attribute__(($1(bar))) = 0;
|
|
||||||
foo = foo + 1;
|
|
||||||
],
|
|
||||||
[]
|
|
||||||
)])
|
|
||||||
],
|
|
||||||
dnl GCC doesn't exit with an error if an unknown attribute is
|
|
||||||
dnl provided but only outputs a warning, so accept the attribute
|
|
||||||
dnl only if no warning were issued.
|
|
||||||
[AS_IF([test -s conftest.err],
|
|
||||||
[AS_VAR_SET([ac_var], [no])],
|
|
||||||
[AS_VAR_SET([ac_var], [yes])])],
|
|
||||||
[AS_VAR_SET([ac_var], [no])])
|
|
||||||
])
|
|
||||||
|
|
||||||
AS_IF([test yes = AS_VAR_GET([ac_var])],
|
|
||||||
[AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_VAR_ATTRIBUTE_$1), 1,
|
|
||||||
[Define to 1 if the system has the `$1' variable attribute])], [])
|
|
||||||
|
|
||||||
AS_VAR_POPDEF([ac_var])
|
|
||||||
])
|
|
39
m4/expat.m4
39
m4/expat.m4
@ -1,39 +0,0 @@
|
|||||||
dnl Look for expat, set EXPAT_CFLAGS, EXPAT_LIBS
|
|
||||||
dnl Use --with-expat=PREFIX to set a specific prefix
|
|
||||||
dnl
|
|
||||||
dnl This is modified from the usual expat.m4:
|
|
||||||
dnl - default to with_expat=yes
|
|
||||||
dnl - don't set a conditional
|
|
||||||
|
|
||||||
AC_DEFUN([AM_WITH_EXPAT],
|
|
||||||
[ AC_ARG_WITH(expat,
|
|
||||||
[ --with-expat=PREFIX Use system Expat library],
|
|
||||||
, with_expat=yes)
|
|
||||||
|
|
||||||
EXPAT_CFLAGS=
|
|
||||||
EXPAT_LIBS=
|
|
||||||
if test $with_expat != no; then
|
|
||||||
if test $with_expat != yes; then
|
|
||||||
EXPAT_CFLAGS="-I$with_expat/include"
|
|
||||||
EXPAT_LIBS="-L$with_expat/lib"
|
|
||||||
fi
|
|
||||||
AC_CHECK_LIB(expat, XML_ParserCreate,
|
|
||||||
[ EXPAT_LIBS="$EXPAT_LIBS -lexpat"
|
|
||||||
expat_found=yes ],
|
|
||||||
[ expat_found=no ],
|
|
||||||
"$EXPAT_LIBS")
|
|
||||||
if test $expat_found = no; then
|
|
||||||
AC_MSG_ERROR([Could not find the Expat library])
|
|
||||||
fi
|
|
||||||
expat_save_CFLAGS="$CFLAGS"
|
|
||||||
CFLAGS="$CFLAGS $EXPAT_CFLAGS"
|
|
||||||
AC_CHECK_HEADERS(expat.h, , expat_found=no)
|
|
||||||
if test $expat_found = no; then
|
|
||||||
AC_MSG_ERROR([Could not find expat.h])
|
|
||||||
fi
|
|
||||||
CFLAGS="$expat_save_CFLAGS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_SUBST(EXPAT_CFLAGS)
|
|
||||||
AC_SUBST(EXPAT_LIBS)
|
|
||||||
])
|
|
117
m4/gif.m4
117
m4/gif.m4
@ -1,117 +0,0 @@
|
|||||||
dnl From FIND_MOTIF and ACX_PTHREAD, without much understanding
|
|
||||||
dnl
|
|
||||||
dnl FIND_GIFLIB[ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]
|
|
||||||
dnl ---------------------------------------------------
|
|
||||||
dnl
|
|
||||||
dnl Find GIFLIB libraries and headers
|
|
||||||
dnl
|
|
||||||
dnl Put compile stuff in GIFLIB_INCLUDES
|
|
||||||
dnl Put link stuff in GIFLIB_LIBS
|
|
||||||
dnl Define HAVE_GIFLIB if found.
|
|
||||||
dnl
|
|
||||||
AC_DEFUN([FIND_GIFLIB], [
|
|
||||||
AC_REQUIRE([AC_PATH_XTRA])
|
|
||||||
|
|
||||||
GIFLIB_INCLUDES=""
|
|
||||||
GIFLIB_LIBS=""
|
|
||||||
|
|
||||||
AC_ARG_WITH(giflib,
|
|
||||||
AS_HELP_STRING([--without-giflib], [build without giflib (default: test)]))
|
|
||||||
# Treat --without-giflib like --without-giflib-includes --without-giflib-libraries.
|
|
||||||
if test "$with_giflib" = "no"; then
|
|
||||||
GIFLIB_INCLUDES=no
|
|
||||||
GIFLIB_LIBS=no
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_ARG_WITH(giflib-includes,
|
|
||||||
AS_HELP_STRING([--with-giflib-includes=DIR], [giflib includes are in DIR]),
|
|
||||||
GIFLIB_INCLUDES="-I$withval")
|
|
||||||
AC_ARG_WITH(giflib-libraries,
|
|
||||||
AS_HELP_STRING([--with-giflib-libraries=DIR], [giflib libraries are in DIR]),
|
|
||||||
GIFLIB_LIBS="-L$withval -lgif")
|
|
||||||
|
|
||||||
AC_MSG_CHECKING(for giflib)
|
|
||||||
|
|
||||||
# Look for gif_lib.h
|
|
||||||
if test "$GIFLIB_INCLUDES" = ""; then
|
|
||||||
# Check the standard search path
|
|
||||||
AC_TRY_COMPILE([#include <gif_lib.h>],[int a;],[
|
|
||||||
GIFLIB_INCLUDES=""
|
|
||||||
], [
|
|
||||||
# gif_lib.h is not in the standard search path, try
|
|
||||||
# $prefix
|
|
||||||
giflib_save_CFLAGS="$CFLAGS"
|
|
||||||
|
|
||||||
CFLAGS="-I${prefix}/include $CFLAGS"
|
|
||||||
|
|
||||||
AC_TRY_COMPILE([#include <gif_lib.h>],[int a;],[
|
|
||||||
GIFLIB_INCLUDES="-I${prefix}/include"
|
|
||||||
], [
|
|
||||||
GIFLIB_INCLUDES="no"
|
|
||||||
])
|
|
||||||
|
|
||||||
CFLAGS=$giflib_save_CFLAGS
|
|
||||||
])
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Now for the libraries
|
|
||||||
if test "$GIFLIB_LIBS" = ""; then
|
|
||||||
giflib_save_LIBS="$LIBS"
|
|
||||||
giflib_save_CFLAGS="$CFLAGS"
|
|
||||||
|
|
||||||
LIBS="-lgif $LIBS"
|
|
||||||
CFLAGS="$GIFLIB_INCLUDES $CFLAGS"
|
|
||||||
|
|
||||||
# Try the standard search path first
|
|
||||||
AC_TRY_LINK([#include <gif_lib.h>],[DGifSlurp(0)], [
|
|
||||||
GIFLIB_LIBS="-lgif"
|
|
||||||
], [
|
|
||||||
# giflib is not in the standard search path, try $prefix
|
|
||||||
|
|
||||||
LIBS="-L${prefix}/lib $LIBS"
|
|
||||||
|
|
||||||
AC_TRY_LINK([#include <gif_lib.h>],[DGifSlurp(0)], [
|
|
||||||
GIFLIB_LIBS="-L${prefix}/lib -lgif"
|
|
||||||
], [
|
|
||||||
GIFLIB_LIBS=no
|
|
||||||
])
|
|
||||||
])
|
|
||||||
|
|
||||||
LIBS="$giflib_save_LIBS"
|
|
||||||
CFLAGS="$giflib_save_CFLAGS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_SUBST(GIFLIB_LIBS)
|
|
||||||
AC_SUBST(GIFLIB_INCLUDES)
|
|
||||||
|
|
||||||
# Print a helpful message
|
|
||||||
giflib_libraries_result="$GIFLIB_LIBS"
|
|
||||||
giflib_includes_result="$GIFLIB_INCLUDES"
|
|
||||||
|
|
||||||
if test x"$giflib_libraries_result" = x""; then
|
|
||||||
giflib_libraries_result="in default path"
|
|
||||||
fi
|
|
||||||
if test x"$giflib_includes_result" = x""; then
|
|
||||||
giflib_includes_result="in default path"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$giflib_libraries_result" = "no"; then
|
|
||||||
giflib_libraries_result="(none)"
|
|
||||||
fi
|
|
||||||
if test "$giflib_includes_result" = "no"; then
|
|
||||||
giflib_includes_result="(none)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_MSG_RESULT([libraries $giflib_libraries_result, headers $giflib_includes_result])
|
|
||||||
|
|
||||||
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
|
|
||||||
if test "$GIFLIB_INCLUDES" != "no" && test "$GIFLIB_LIBS" != "no"; then
|
|
||||||
AC_DEFINE(HAVE_GIFLIB,1,[Define if you have giflib libraries and header files.])
|
|
||||||
$1
|
|
||||||
else
|
|
||||||
GIFLIB_INCLUDES=""
|
|
||||||
GIFLIB_LIBS=""
|
|
||||||
$2
|
|
||||||
fi
|
|
||||||
|
|
||||||
])dnl
|
|
123
m4/jpeg.m4
123
m4/jpeg.m4
@ -1,123 +0,0 @@
|
|||||||
dnl From FIND_MOTIF and ACX_PTHREAD, without much understanding
|
|
||||||
dnl
|
|
||||||
dnl FIND_JPEG[ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]
|
|
||||||
dnl ------------------------------------------------
|
|
||||||
dnl
|
|
||||||
dnl Find JPEG libraries and headers
|
|
||||||
dnl
|
|
||||||
dnl Put compile stuff in JPEG_INCLUDES
|
|
||||||
dnl Put link stuff in JPEG_LIBS
|
|
||||||
dnl Define HAVE_JPEG if found
|
|
||||||
dnl
|
|
||||||
AC_DEFUN([FIND_JPEG], [
|
|
||||||
AC_REQUIRE([AC_PATH_XTRA])
|
|
||||||
|
|
||||||
JPEG_INCLUDES=""
|
|
||||||
JPEG_LIBS=""
|
|
||||||
|
|
||||||
AC_ARG_WITH(jpeg,
|
|
||||||
AS_HELP_STRING([--without-jpeg], [build without libjpeg (default: test)]))
|
|
||||||
# Treat --without-jpeg like --without-jpeg-includes --without-jpeg-libraries.
|
|
||||||
if test "$with_jpeg" = "no"; then
|
|
||||||
JPEG_INCLUDES=no
|
|
||||||
JPEG_LIBS=no
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_ARG_WITH(jpeg-includes,
|
|
||||||
AS_HELP_STRING([--with-jpeg-includes=DIR], [libjpeg includes are in DIR]),
|
|
||||||
JPEG_INCLUDES="-I$withval")
|
|
||||||
AC_ARG_WITH(jpeg-libraries,
|
|
||||||
AS_HELP_STRING([--with-jpeg-libraries=DIR], [libjpeg libraries are in DIR]),
|
|
||||||
JPEG_LIBS="-L$withval -ljpeg")
|
|
||||||
|
|
||||||
AC_MSG_CHECKING(for JPEG)
|
|
||||||
|
|
||||||
# Look for jpeglib.h
|
|
||||||
if test "$JPEG_INCLUDES" = ""; then
|
|
||||||
# Check the standard search path
|
|
||||||
AC_TRY_COMPILE([#include <stdio.h>
|
|
||||||
#include <jpeglib.h>],[int a;],[
|
|
||||||
JPEG_INCLUDES=""
|
|
||||||
], [
|
|
||||||
# jpeglib.h is not in the standard search path, try
|
|
||||||
# $prefix
|
|
||||||
jpeg_save_CFLAGS="$CFLAGS"
|
|
||||||
|
|
||||||
CFLAGS="-I${prefix}/include $CFLAGS"
|
|
||||||
|
|
||||||
AC_TRY_COMPILE([#include <stdio.h>
|
|
||||||
#include <jpeglib.h>],[int a;],[
|
|
||||||
JPEG_INCLUDES="-I${prefix}/include"
|
|
||||||
], [
|
|
||||||
JPEG_INCLUDES="no"
|
|
||||||
])
|
|
||||||
|
|
||||||
CFLAGS=$jpeg_save_CFLAGS
|
|
||||||
])
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Now for the libraries
|
|
||||||
if test "$JPEG_LIBS" = ""; then
|
|
||||||
jpeg_save_LIBS="$LIBS"
|
|
||||||
jpeg_save_CFLAGS="$CFLAGS"
|
|
||||||
|
|
||||||
LIBS="-ljpeg $LIBS"
|
|
||||||
CFLAGS="$JPEG_INCLUDES $CFLAGS"
|
|
||||||
|
|
||||||
# Try the standard search path first
|
|
||||||
AC_TRY_LINK([#include <stdio.h>
|
|
||||||
#include <jpeglib.h>
|
|
||||||
],[jpeg_abort((void*)0)], [
|
|
||||||
JPEG_LIBS="-ljpeg"
|
|
||||||
], [
|
|
||||||
# libjpeg is not in the standard search path, try $prefix
|
|
||||||
|
|
||||||
LIBS="-L${prefix}/lib $LIBS"
|
|
||||||
|
|
||||||
AC_TRY_LINK([#include <stdio.h>
|
|
||||||
#include <jpeg.h>
|
|
||||||
],[jpeg_abort((void*)0)], [
|
|
||||||
JPEG_LIBS="-L${prefix}/lib -ljpeg"
|
|
||||||
], [
|
|
||||||
JPEG_LIBS=no
|
|
||||||
])
|
|
||||||
])
|
|
||||||
|
|
||||||
LIBS="$jpeg_save_LIBS"
|
|
||||||
CFLAGS="$jpeg_save_CFLAGS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_SUBST(JPEG_LIBS)
|
|
||||||
AC_SUBST(JPEG_INCLUDES)
|
|
||||||
|
|
||||||
# Print a helpful message
|
|
||||||
jpeg_libraries_result="$JPEG_LIBS"
|
|
||||||
jpeg_includes_result="$JPEG_INCLUDES"
|
|
||||||
|
|
||||||
if test x"$jpeg_libraries_result" = x""; then
|
|
||||||
jpeg_libraries_result="in default path"
|
|
||||||
fi
|
|
||||||
if test x"$jpeg_includes_result" = x""; then
|
|
||||||
jpeg_includes_result="in default path"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$jpeg_libraries_result" = "no"; then
|
|
||||||
jpeg_libraries_result="(none)"
|
|
||||||
fi
|
|
||||||
if test "$jpeg_includes_result" = "no"; then
|
|
||||||
jpeg_includes_result="(none)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_MSG_RESULT([libraries $jpeg_libraries_result, headers $jpeg_includes_result])
|
|
||||||
|
|
||||||
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
|
|
||||||
if test "$JPEG_INCLUDES" != "no" && test "$JPEG_LIBS" != "no"; then
|
|
||||||
AC_DEFINE(HAVE_JPEG,1,[Define if you have jpeg libraries and header files.])
|
|
||||||
$1
|
|
||||||
else
|
|
||||||
JPEG_INCLUDES=""
|
|
||||||
JPEG_LIBS=""
|
|
||||||
$2
|
|
||||||
fi
|
|
||||||
|
|
||||||
])dnl
|
|
63
m4/mkdir.m4
63
m4/mkdir.m4
@ -1,63 +0,0 @@
|
|||||||
dnl @synopsis AC_FUNC_MKDIR
|
|
||||||
dnl
|
|
||||||
dnl Check whether mkdir() is mkdir or _mkdir, and whether it takes one
|
|
||||||
dnl or two arguments.
|
|
||||||
dnl
|
|
||||||
dnl This macro can define HAVE_MKDIR, HAVE__MKDIR, and
|
|
||||||
dnl MKDIR_TAKES_ONE_ARG, which are expected to be used as follows:
|
|
||||||
dnl
|
|
||||||
dnl #if HAVE_MKDIR
|
|
||||||
dnl # if MKDIR_TAKES_ONE_ARG
|
|
||||||
dnl /* MinGW32 */
|
|
||||||
dnl # define mkdir(a, b) mkdir(a)
|
|
||||||
dnl # endif
|
|
||||||
dnl #else
|
|
||||||
dnl # if HAVE__MKDIR
|
|
||||||
dnl /* plain Windows 32 */
|
|
||||||
dnl # define mkdir(a, b) _mkdir(a)
|
|
||||||
dnl # else
|
|
||||||
dnl # error "Don't know how to create a directory on this system."
|
|
||||||
dnl # endif
|
|
||||||
dnl #endif
|
|
||||||
dnl
|
|
||||||
dnl @category C
|
|
||||||
dnl @author Alexandre Duret-Lutz <adl@gnu.org>
|
|
||||||
dnl @version 2003-12-28
|
|
||||||
dnl @license GPLWithACException
|
|
||||||
|
|
||||||
AC_DEFUN([AC_FUNC_MKDIR],
|
|
||||||
[AC_CHECK_FUNCS([mkdir _mkdir])
|
|
||||||
AC_CACHE_CHECK([whether mkdir takes one argument],
|
|
||||||
[ac_cv_mkdir_takes_one_arg],
|
|
||||||
[AC_TRY_COMPILE([
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#if HAVE_UNISTD_H
|
|
||||||
# include <unistd.h>
|
|
||||||
#endif
|
|
||||||
], [mkdir (".");],
|
|
||||||
[ac_cv_mkdir_takes_one_arg=yes], [ac_cv_mkdir_takes_one_arg=no])])
|
|
||||||
if test x"$ac_cv_mkdir_takes_one_arg" = xyes; then
|
|
||||||
AC_DEFINE([MKDIR_TAKES_ONE_ARG], 1,
|
|
||||||
[Define if mkdir takes only one argument.])
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
|
|
||||||
dnl Note:
|
|
||||||
dnl =====
|
|
||||||
dnl I have not implemented the following suggestion because I don't have
|
|
||||||
dnl access to such a broken environment to test the macro. So I'm just
|
|
||||||
dnl appending the comments here in case you have, and want to fix
|
|
||||||
dnl AC_FUNC_MKDIR that way.
|
|
||||||
dnl
|
|
||||||
dnl |Thomas E. Dickey (dickey@herndon4.his.com) said:
|
|
||||||
dnl | it doesn't cover the problem areas (compilers that mistreat mkdir
|
|
||||||
dnl | may prototype it in dir.h and dirent.h, for instance).
|
|
||||||
dnl |
|
|
||||||
dnl |Alexandre:
|
|
||||||
dnl | Would it be sufficient to check for these headers and #include
|
|
||||||
dnl | them in the AC_TRY_COMPILE block? (and is AC_HEADER_DIRENT
|
|
||||||
dnl | suitable for this?)
|
|
||||||
dnl |
|
|
||||||
dnl |Thomas:
|
|
||||||
dnl | I think that might be a good starting point (with the set of recommended
|
|
||||||
dnl | ifdef's and includes for AC_HEADER_DIRENT, of course).
|
|
122
m4/nifti.m4
122
m4/nifti.m4
@ -1,122 +0,0 @@
|
|||||||
dnl From FIND_MOTIF and ACX_PTHREAD, without much understanding
|
|
||||||
dnl
|
|
||||||
dnl FIND_NIFTI[ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]
|
|
||||||
dnl ------------------------------------------------
|
|
||||||
dnl
|
|
||||||
dnl Find NIFTI libraries and headers
|
|
||||||
dnl
|
|
||||||
dnl Put compile stuff in NIFTI_INCLUDES
|
|
||||||
dnl Put link stuff in NIFTI_LIBS
|
|
||||||
dnl Define HAVE_NIFTI if found
|
|
||||||
dnl
|
|
||||||
AC_DEFUN([FIND_NIFTI], [
|
|
||||||
AC_REQUIRE([AC_PATH_XTRA])
|
|
||||||
|
|
||||||
NIFTI_INCLUDES=""
|
|
||||||
NIFTI_LIBS=""
|
|
||||||
|
|
||||||
AC_ARG_WITH(nifti,
|
|
||||||
AS_HELP_STRING([--without-nifti], [build without nifti (default: test)]))
|
|
||||||
# Treat --without-nifti like --without-nifti-includes --without-nifti-libraries.
|
|
||||||
if test "$with_nifti" = "no"; then
|
|
||||||
NIFTI_INCLUDES=no
|
|
||||||
NIFTI_LIBS=no
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_ARG_WITH(nifti-includes,
|
|
||||||
AS_HELP_STRING([--with-nifti-includes=DIR], [libniftiio includes are in DIR]),
|
|
||||||
NIFTI_INCLUDES="-I$withval"
|
|
||||||
)
|
|
||||||
AC_ARG_WITH(nifti-libraries,
|
|
||||||
AS_HELP_STRING([--with-nifti-libraries=DIR],
|
|
||||||
[libniftiio libraries are in DIR]),
|
|
||||||
NIFTI_LIBS="-L$withval -lniftiio -lznz"
|
|
||||||
)
|
|
||||||
|
|
||||||
AC_MSG_CHECKING(for NIFTI)
|
|
||||||
|
|
||||||
# Look for nifti1_io.h ... usually in /usr/include/nifti
|
|
||||||
if test "$NIFTI_INCLUDES" = ""; then
|
|
||||||
nifti_save_CFLAGS="$CFLAGS"
|
|
||||||
|
|
||||||
# annoyingly, the header must be unqualified, so we have to add to the
|
|
||||||
# search path
|
|
||||||
CFLAGS="-I/usr/include/nifti $nifti_save_CFLAGS"
|
|
||||||
|
|
||||||
AC_TRY_COMPILE([#include <nifti1_io.h>],[int a;],[
|
|
||||||
NIFTI_INCLUDES="-I/usr/include/nifti"
|
|
||||||
], [
|
|
||||||
# not in the standard search path, try $prefix
|
|
||||||
CFLAGS="-I${prefix}/include/nifti $nifti_save_CFLAGS"
|
|
||||||
|
|
||||||
AC_TRY_COMPILE([#include <nifti1_io.h>],[int a;],[
|
|
||||||
NIFTI_INCLUDES="-I${prefix}/include/nifti"
|
|
||||||
], [
|
|
||||||
NIFTI_INCLUDES="no"
|
|
||||||
])
|
|
||||||
])
|
|
||||||
|
|
||||||
CFLAGS="$nifti_save_CFLAGS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Now for the libraries
|
|
||||||
if test "$NIFTI_LIBS" = ""; then
|
|
||||||
nifti_save_LIBS="$LIBS"
|
|
||||||
nifti_save_CFLAGS="$CFLAGS"
|
|
||||||
|
|
||||||
LIBS="-lniftiio -lznz -lm $nifti_save_LIBS"
|
|
||||||
CFLAGS="$NIFTI_INCLUDES $CFLAGS"
|
|
||||||
|
|
||||||
# Try the standard search path first
|
|
||||||
AC_TRY_LINK([#include <nifti1_io.h>],[is_nifti_file("")], [
|
|
||||||
NIFTI_LIBS="-lniftiio -lznz"
|
|
||||||
], [
|
|
||||||
# libniftiio is not in the standard search path, try $prefix
|
|
||||||
|
|
||||||
LIBS="-L${prefix}/lib $LIBS"
|
|
||||||
|
|
||||||
AC_TRY_LINK([#include <nifti1_io.h>],[is_nifti_file("")], [
|
|
||||||
NIFTI_LIBS="-L${prefix}/lib -lniftiio -lznz"
|
|
||||||
], [
|
|
||||||
NIFTI_LIBS=no
|
|
||||||
])
|
|
||||||
])
|
|
||||||
|
|
||||||
LIBS="$nifti_save_LIBS"
|
|
||||||
CFLAGS="$nifti_save_CFLAGS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_SUBST(NIFTI_LIBS)
|
|
||||||
AC_SUBST(NIFTI_INCLUDES)
|
|
||||||
|
|
||||||
# Print a helpful message
|
|
||||||
nifti_libraries_result="$NIFTI_LIBS"
|
|
||||||
nifti_includes_result="$NIFTI_INCLUDES"
|
|
||||||
|
|
||||||
if test x"$nifti_libraries_result" = x""; then
|
|
||||||
nifti_libraries_result="in default path"
|
|
||||||
fi
|
|
||||||
if test x"$nifti_includes_result" = x""; then
|
|
||||||
nifti_includes_result="in default path"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$nifti_libraries_result" = "no"; then
|
|
||||||
nifti_libraries_result="(none)"
|
|
||||||
fi
|
|
||||||
if test "$nifti_includes_result" = "no"; then
|
|
||||||
nifti_includes_result="(none)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_MSG_RESULT([libraries $nifti_libraries_result, headers $nifti_includes_result])
|
|
||||||
|
|
||||||
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
|
|
||||||
if test "$NIFTI_INCLUDES" != "no" && test "$NIFTI_LIBS" != "no"; then
|
|
||||||
AC_DEFINE(HAVE_NIFTI,1,[Define if you have nifti libraries and header files.])
|
|
||||||
$1
|
|
||||||
else
|
|
||||||
NIFTI_INCLUDES=""
|
|
||||||
NIFTI_LIBS=""
|
|
||||||
$2
|
|
||||||
fi
|
|
||||||
|
|
||||||
])dnl
|
|
111
m4/pdfium.m4
111
m4/pdfium.m4
@ -1,111 +0,0 @@
|
|||||||
dnl From FIND_MOTIF and ACX_PTHREAD, without much understanding
|
|
||||||
dnl
|
|
||||||
dnl FIND_PDFIUM[ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]
|
|
||||||
dnl ---------------------------------------------------
|
|
||||||
dnl
|
|
||||||
dnl Find pdfium libraries and headers
|
|
||||||
dnl
|
|
||||||
dnl Put -I stuff in PDFIUM_INCLUDES
|
|
||||||
dnl Put PDFium objects in PDFIUM_LIBS (add this to the link line untouched!)
|
|
||||||
dnl Define HAVE_PDFIUM if found
|
|
||||||
dnl
|
|
||||||
AC_DEFUN([FIND_PDFIUM], [
|
|
||||||
AC_REQUIRE([AC_PATH_XTRA])
|
|
||||||
|
|
||||||
ZLIB_INCLUDES=""
|
|
||||||
ZLIB_LIBS=""
|
|
||||||
|
|
||||||
AC_ARG_WITH(pdfium,
|
|
||||||
AS_HELP_STRING([--without-pdfium], [build without pdfium (default: test)]))
|
|
||||||
# Treat --without-pdfium like --without-pdfium-includes
|
|
||||||
# --without-pdfium-libraries
|
|
||||||
if test "$with_pdfium" = "no"; then
|
|
||||||
PDFIUM_INCLUDES=no
|
|
||||||
PDFIUM_LIBS=no
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_ARG_WITH(pdfium-includes,
|
|
||||||
AS_HELP_STRING([--with-pdfium-includes=DIR], [pdfium includes are in DIR]),
|
|
||||||
PDFIUM_INCLUDES="-I$withval")
|
|
||||||
AC_ARG_WITH(pdfium-libraries,
|
|
||||||
AS_HELP_STRING([--with-pdfium-libraries=DIR], [pdfium libraries are in DIR]),
|
|
||||||
PDFIUM_LIBS="$withval")
|
|
||||||
|
|
||||||
AC_MSG_CHECKING(for PDFIUM)
|
|
||||||
|
|
||||||
# Look for fpdfview.h ... this is a documented header, so it should be a good
|
|
||||||
# target
|
|
||||||
#
|
|
||||||
# it won't be in the standard search path, but try $PREFIX
|
|
||||||
if test "$PDFIUM_INCLUDES" = ""; then
|
|
||||||
pdfium_save_CPPFLAGS="$CPPFLAGS"
|
|
||||||
|
|
||||||
CPPFLAGS="-I${prefix}/include $CPPFLAGS"
|
|
||||||
|
|
||||||
AC_TRY_COMPILE([#include <fpdfview.h>],[int a;],[
|
|
||||||
PDFIUM_INCLUDES="-I${prefix}/include"
|
|
||||||
], [
|
|
||||||
PDFIUM_INCLUDES="no"
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
CPPFLAGS="$pdfium_save_CPPFLAGS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Now for the libraries ... if there's nothing set, try $PREFIX/lib
|
|
||||||
if test "$PDFIUM_LIBS" = ""; then
|
|
||||||
pdfium_save_LIBS="$LIBS"
|
|
||||||
pdfium_save_CPPFLAGS="$CPPFLAGS"
|
|
||||||
|
|
||||||
LIBS="-L$prefix/lib -lpdfium -lc++ -licuuc $LIBS"
|
|
||||||
CPPFLAGS="$PDFIUM_INCLUDES $CPPFLAGS"
|
|
||||||
|
|
||||||
AC_TRY_LINK([#include <fpdfview.h>],
|
|
||||||
[FPDF_DOCUMENT doc; doc = FPDF_LoadDocument("", "")],
|
|
||||||
[PDFIUM_LIBS="${prefix}/lib"],
|
|
||||||
[PDFIUM_LIBS=no])
|
|
||||||
|
|
||||||
LIBS="$pdfium_save_LIBS"
|
|
||||||
CPPFLAGS="$pdfium_save_CPPFLAGS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Print a helpful message
|
|
||||||
pdfium_libraries_result="$PDFIUM_LIBS"
|
|
||||||
pdfium_includes_result="$PDFIUM_INCLUDES"
|
|
||||||
|
|
||||||
if test x"$pdfium_libraries_result" = x""; then
|
|
||||||
pdfium_libraries_result="in default path"
|
|
||||||
fi
|
|
||||||
if test x"$pdfium_includes_result" = x""; then
|
|
||||||
pdfium_includes_result="in default path"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$pdfium_libraries_result" = "no"; then
|
|
||||||
pdfium_libraries_result="(none)"
|
|
||||||
fi
|
|
||||||
if test "$pdfium_includes_result" = "no"; then
|
|
||||||
pdfium_includes_result="(none)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_MSG_RESULT([libraries $pdfium_libraries_result, headers $pdfium_includes_result])
|
|
||||||
|
|
||||||
if test x"$PDFIUM_LIBS" != x"no"; then
|
|
||||||
dir="$PDFIUM_LIBS"
|
|
||||||
PDFIUM_LIBS="-L$dir -lpdfium -lc++ -licuuc"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_SUBST(PDFIUM_LIBS)
|
|
||||||
AC_SUBST(PDFIUM_INCLUDES)
|
|
||||||
|
|
||||||
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
|
|
||||||
if test "$PDFIUM_INCLUDES" != "no" && test "$PDFIUM_LIBS" != "no"; then
|
|
||||||
AC_DEFINE(HAVE_PDFIUM,1,
|
|
||||||
[Define if you have pdfium libraries and header files.])
|
|
||||||
$1
|
|
||||||
else
|
|
||||||
PDFIUM_INCLUDES=""
|
|
||||||
PDFIUM_LIBS=""
|
|
||||||
$2
|
|
||||||
fi
|
|
||||||
|
|
||||||
])dnl
|
|
117
m4/png.m4
117
m4/png.m4
@ -1,117 +0,0 @@
|
|||||||
dnl From FIND_MOTIF and ACX_PTHREAD, without much understanding
|
|
||||||
dnl
|
|
||||||
dnl FIND_PNG[ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]
|
|
||||||
dnl ------------------------------------------------
|
|
||||||
dnl
|
|
||||||
dnl Find PNG libraries and headers
|
|
||||||
dnl
|
|
||||||
dnl Put compile stuff in PNG_INCLUDES
|
|
||||||
dnl Put link stuff in PNG_LIBS
|
|
||||||
dnl Define HAVE_PNG if found.
|
|
||||||
dnl
|
|
||||||
AC_DEFUN([FIND_PNG], [
|
|
||||||
AC_REQUIRE([AC_PATH_XTRA])
|
|
||||||
|
|
||||||
PNG_INCLUDES=""
|
|
||||||
PNG_LIBS=""
|
|
||||||
|
|
||||||
AC_ARG_WITH(png,
|
|
||||||
AS_HELP_STRING([--without-png], [build without libpng (default: test)]))
|
|
||||||
# Treat --without-png like --without-png-includes --without-png-libraries.
|
|
||||||
if test "$with_png" = "no"; then
|
|
||||||
PNG_INCLUDES=no
|
|
||||||
PNG_LIBS=no
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_ARG_WITH(png-includes,
|
|
||||||
AS_HELP_STRING([--with-png-includes=DIR], [libpng includes are in DIR]),
|
|
||||||
PNG_INCLUDES="-I$withval")
|
|
||||||
AC_ARG_WITH(png-libraries,
|
|
||||||
AS_HELP_STRING([--with-png-libraries=DIR], [libpng libraries are in DIR]),
|
|
||||||
PNG_LIBS="-L$withval -lpng")
|
|
||||||
|
|
||||||
AC_MSG_CHECKING(for libpng)
|
|
||||||
|
|
||||||
# Look for png.h
|
|
||||||
if test "$PNG_INCLUDES" = ""; then
|
|
||||||
# Check the standard search path
|
|
||||||
AC_TRY_COMPILE([#include <png.h>],[int a;],[
|
|
||||||
PNG_INCLUDES=""
|
|
||||||
], [
|
|
||||||
# png.h is not in the standard search path, try
|
|
||||||
# $prefix
|
|
||||||
png_save_CFLAGS="$CFLAGS"
|
|
||||||
|
|
||||||
CFLAGS="-I${prefix}/include $CFLAGS"
|
|
||||||
|
|
||||||
AC_TRY_COMPILE([#include <png.h>],[int a;],[
|
|
||||||
PNG_INCLUDES="-I${prefix}/include"
|
|
||||||
], [
|
|
||||||
PNG_INCLUDES="no"
|
|
||||||
])
|
|
||||||
|
|
||||||
CFLAGS=$png_save_CFLAGS
|
|
||||||
])
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Now for the libraries
|
|
||||||
if test "$PNG_LIBS" = ""; then
|
|
||||||
png_save_LIBS="$LIBS"
|
|
||||||
png_save_CFLAGS="$CFLAGS"
|
|
||||||
|
|
||||||
LIBS="-lpng $LIBS"
|
|
||||||
CFLAGS="$PNG_INCLUDES $CFLAGS"
|
|
||||||
|
|
||||||
# Try the standard search path first
|
|
||||||
AC_TRY_LINK([#include <png.h>],[png_access_version_number()], [
|
|
||||||
PNG_LIBS="-lpng"
|
|
||||||
], [
|
|
||||||
# libpng is not in the standard search path, try $prefix
|
|
||||||
|
|
||||||
LIBS="-L${prefix}/lib $LIBS"
|
|
||||||
|
|
||||||
AC_TRY_LINK([#include <png.h>],[png_access_version_number()], [
|
|
||||||
PNG_LIBS="-L${prefix}/lib -lpng"
|
|
||||||
], [
|
|
||||||
PNG_LIBS=no
|
|
||||||
])
|
|
||||||
])
|
|
||||||
|
|
||||||
LIBS="$png_save_LIBS"
|
|
||||||
CFLAGS="$png_save_CFLAGS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_SUBST(PNG_LIBS)
|
|
||||||
AC_SUBST(PNG_INCLUDES)
|
|
||||||
|
|
||||||
# Print a helpful message
|
|
||||||
png_libraries_result="$PNG_LIBS"
|
|
||||||
png_includes_result="$PNG_INCLUDES"
|
|
||||||
|
|
||||||
if test x"$png_libraries_result" = x""; then
|
|
||||||
png_libraries_result="in default path"
|
|
||||||
fi
|
|
||||||
if test x"$png_includes_result" = x""; then
|
|
||||||
png_includes_result="in default path"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$png_libraries_result" = "no"; then
|
|
||||||
png_libraries_result="(none)"
|
|
||||||
fi
|
|
||||||
if test "$png_includes_result" = "no"; then
|
|
||||||
png_includes_result="(none)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_MSG_RESULT([libraries $png_libraries_result, headers $png_includes_result])
|
|
||||||
|
|
||||||
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
|
|
||||||
if test "$PNG_INCLUDES" != "no" && test "$PNG_LIBS" != "no"; then
|
|
||||||
AC_DEFINE(HAVE_PNG,1,[Define if you have png libraries and header files.])
|
|
||||||
$1
|
|
||||||
else
|
|
||||||
PNG_INCLUDES=""
|
|
||||||
PNG_LIBS=""
|
|
||||||
$2
|
|
||||||
fi
|
|
||||||
|
|
||||||
])dnl
|
|
117
m4/tiff.m4
117
m4/tiff.m4
@ -1,117 +0,0 @@
|
|||||||
dnl From FIND_MOTIF and ACX_PTHREAD, without much understanding
|
|
||||||
dnl
|
|
||||||
dnl FIND_TIFF[ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]
|
|
||||||
dnl ------------------------------------------------
|
|
||||||
dnl
|
|
||||||
dnl Find TIFF libraries and headers
|
|
||||||
dnl
|
|
||||||
dnl Put compile stuff in TIFF_INCLUDES
|
|
||||||
dnl Put link stuff in TIFF_LIBS
|
|
||||||
dnl Define HAVE_TIFF if found
|
|
||||||
dnl
|
|
||||||
AC_DEFUN([FIND_TIFF], [
|
|
||||||
AC_REQUIRE([AC_PATH_XTRA])
|
|
||||||
|
|
||||||
TIFF_INCLUDES=""
|
|
||||||
TIFF_LIBS=""
|
|
||||||
|
|
||||||
AC_ARG_WITH(tiff,
|
|
||||||
AS_HELP_STRING([--without-tiff], [build without libtiff (default: test)]))
|
|
||||||
# Treat --without-tiff like --without-tiff-includes --without-tiff-libraries.
|
|
||||||
if test "$with_tiff" = "no"; then
|
|
||||||
TIFF_INCLUDES=no
|
|
||||||
TIFF_LIBS=no
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_ARG_WITH(tiff-includes,
|
|
||||||
AS_HELP_STRING([--with-tiff-includes=DIR], [libtiff includes are in DIR]),
|
|
||||||
TIFF_INCLUDES="-I$withval")
|
|
||||||
AC_ARG_WITH(tiff-libraries,
|
|
||||||
AS_HELP_STRING([--with-tiff-libraries=DIR], [libtiff libraries are in DIR]),
|
|
||||||
TIFF_LIBS="-L$withval -ltiff")
|
|
||||||
|
|
||||||
AC_MSG_CHECKING(for TIFF)
|
|
||||||
|
|
||||||
# Look for tiff.h
|
|
||||||
if test "$TIFF_INCLUDES" = ""; then
|
|
||||||
# Check the standard search path
|
|
||||||
AC_TRY_COMPILE([#include <tiff.h>],[int a;],[
|
|
||||||
TIFF_INCLUDES=""
|
|
||||||
], [
|
|
||||||
# tiff.h is not in the standard search path, try
|
|
||||||
# $prefix
|
|
||||||
tiff_save_CFLAGS="$CFLAGS"
|
|
||||||
|
|
||||||
CFLAGS="-I${prefix}/include $CFLAGS"
|
|
||||||
|
|
||||||
AC_TRY_COMPILE([#include <tiff.h>],[int a;],[
|
|
||||||
TIFF_INCLUDES="-I${prefix}/include"
|
|
||||||
], [
|
|
||||||
TIFF_INCLUDES="no"
|
|
||||||
])
|
|
||||||
|
|
||||||
CFLAGS=$tiff_save_CFLAGS
|
|
||||||
])
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Now for the libraries
|
|
||||||
if test "$TIFF_LIBS" = ""; then
|
|
||||||
tiff_save_LIBS="$LIBS"
|
|
||||||
tiff_save_CFLAGS="$CFLAGS"
|
|
||||||
|
|
||||||
LIBS="-ltiff -lm $LIBS"
|
|
||||||
CFLAGS="$TIFF_INCLUDES $CFLAGS"
|
|
||||||
|
|
||||||
# Try the standard search path first
|
|
||||||
AC_TRY_LINK([#include <tiff.h>],[TIFFGetVersion()], [
|
|
||||||
TIFF_LIBS="-ltiff"
|
|
||||||
], [
|
|
||||||
# libtiff is not in the standard search path, try $prefix
|
|
||||||
|
|
||||||
LIBS="-L${prefix}/lib $LIBS"
|
|
||||||
|
|
||||||
AC_TRY_LINK([#include <tiff.h>],[TIFFGetVersion()], [
|
|
||||||
TIFF_LIBS="-L${prefix}/lib -ltiff"
|
|
||||||
], [
|
|
||||||
TIFF_LIBS=no
|
|
||||||
])
|
|
||||||
])
|
|
||||||
|
|
||||||
LIBS="$tiff_save_LIBS"
|
|
||||||
CFLAGS="$tiff_save_CFLAGS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_SUBST(TIFF_LIBS)
|
|
||||||
AC_SUBST(TIFF_INCLUDES)
|
|
||||||
|
|
||||||
# Print a helpful message
|
|
||||||
tiff_libraries_result="$TIFF_LIBS"
|
|
||||||
tiff_includes_result="$TIFF_INCLUDES"
|
|
||||||
|
|
||||||
if test x"$tiff_libraries_result" = x""; then
|
|
||||||
tiff_libraries_result="in default path"
|
|
||||||
fi
|
|
||||||
if test x"$tiff_includes_result" = x""; then
|
|
||||||
tiff_includes_result="in default path"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$tiff_libraries_result" = "no"; then
|
|
||||||
tiff_libraries_result="(none)"
|
|
||||||
fi
|
|
||||||
if test "$tiff_includes_result" = "no"; then
|
|
||||||
tiff_includes_result="(none)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_MSG_RESULT([libraries $tiff_libraries_result, headers $tiff_includes_result])
|
|
||||||
|
|
||||||
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
|
|
||||||
if test "$TIFF_INCLUDES" != "no" && test "$TIFF_LIBS" != "no"; then
|
|
||||||
AC_DEFINE(HAVE_TIFF,1,[Define if you have tiff libraries and header files.])
|
|
||||||
$1
|
|
||||||
else
|
|
||||||
TIFF_INCLUDES=""
|
|
||||||
TIFF_LIBS=""
|
|
||||||
$2
|
|
||||||
fi
|
|
||||||
|
|
||||||
])dnl
|
|
119
m4/webp.m4
119
m4/webp.m4
@ -1,119 +0,0 @@
|
|||||||
dnl From FIND_MOTIF and ACX_PTHREAD, without much understanding
|
|
||||||
dnl
|
|
||||||
dnl FIND_LIBWEBP[ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]
|
|
||||||
dnl ---------------------------------------------------
|
|
||||||
dnl
|
|
||||||
dnl Find webp libraries and headers ... useful for platforms which are missing
|
|
||||||
dnl the webp .pc file
|
|
||||||
dnl
|
|
||||||
dnl Put compile stuff in LIBWEBP_INCLUDES
|
|
||||||
dnl Put link stuff in LIBWEBP_LIBS
|
|
||||||
dnl Define HAVE_LIBWEBP if found.
|
|
||||||
dnl
|
|
||||||
AC_DEFUN([FIND_LIBWEBP], [
|
|
||||||
AC_REQUIRE([AC_PATH_XTRA])
|
|
||||||
|
|
||||||
LIBWEBP_INCLUDES=""
|
|
||||||
LIBWEBP_LIBS=""
|
|
||||||
|
|
||||||
AC_ARG_WITH(libwebp,
|
|
||||||
AS_HELP_STRING([--without-libwebp], [build without libwebp (default: test)]))
|
|
||||||
# Treat --without-libwebp like --without-libwebp-includes --without-libwebp-libraries.
|
|
||||||
if test "$with_libwebp" = "no"; then
|
|
||||||
LIBWEBP_INCLUDES=no
|
|
||||||
LIBWEBP_LIBS=no
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_ARG_WITH(libwebp-includes,
|
|
||||||
AS_HELP_STRING([--with-libwebp-includes=DIR], [libwebp includes are in DIR]),
|
|
||||||
LIBWEBP_INCLUDES="-I$withval")
|
|
||||||
AC_ARG_WITH(libwebp-libraries,
|
|
||||||
AS_HELP_STRING([--with-libwebp-libraries=DIR], [libwebp libraries are in DIR]),
|
|
||||||
LIBWEBP_LIBS="-L$withval -lwebp")
|
|
||||||
|
|
||||||
AC_MSG_CHECKING(for libwebp)
|
|
||||||
|
|
||||||
# Look for webp/decode.h
|
|
||||||
if test "$LIBWEBP_INCLUDES" = ""; then
|
|
||||||
# Check the standard search path
|
|
||||||
AC_TRY_COMPILE([#include <webp/decode.h>],[int a;],[
|
|
||||||
LIBWEBP_INCLUDES=""
|
|
||||||
], [
|
|
||||||
# webp/decode.h is not in the standard search path, try
|
|
||||||
# $prefix
|
|
||||||
libwebp_save_CFLAGS="$CFLAGS"
|
|
||||||
|
|
||||||
CFLAGS="-I${prefix}/include $CFLAGS"
|
|
||||||
|
|
||||||
AC_TRY_COMPILE([#include <webp/decode.h>],[int a;],[
|
|
||||||
LIBWEBP_INCLUDES="-I${prefix}/include"
|
|
||||||
], [
|
|
||||||
LIBWEBP_INCLUDES="no"
|
|
||||||
])
|
|
||||||
|
|
||||||
CFLAGS=$libwebp_save_CFLAGS
|
|
||||||
])
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Now for the libraries
|
|
||||||
if test "$LIBWEBP_LIBS" = ""; then
|
|
||||||
libwebp_save_LIBS="$LIBS"
|
|
||||||
libwebp_save_CFLAGS="$CFLAGS"
|
|
||||||
|
|
||||||
LIBS="-lwebp $LIBS"
|
|
||||||
CFLAGS="$LIBWEBP_INCLUDES $CFLAGS"
|
|
||||||
|
|
||||||
# Try the standard search path first
|
|
||||||
AC_TRY_LINK([#include <webp/decode.h>],[WebPInitDecoderConfig(0)], [
|
|
||||||
LIBWEBP_LIBS="-lwebp"
|
|
||||||
], [
|
|
||||||
# libwebp is not in the standard search path, try $prefix
|
|
||||||
|
|
||||||
LIBS="-L${prefix}/lib $LIBS"
|
|
||||||
|
|
||||||
AC_TRY_LINK([#include <webp/decode.h>],[WebPInitDecoderConfig(0)], [
|
|
||||||
LIBWEBP_LIBS="-L${prefix}/lib -lwebp"
|
|
||||||
], [
|
|
||||||
LIBWEBP_LIBS=no
|
|
||||||
])
|
|
||||||
])
|
|
||||||
|
|
||||||
LIBS="$libwebp_save_LIBS"
|
|
||||||
CFLAGS="$libwebp_save_CFLAGS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_SUBST(LIBWEBP_LIBS)
|
|
||||||
AC_SUBST(LIBWEBP_INCLUDES)
|
|
||||||
|
|
||||||
# Print a helpful message
|
|
||||||
libwebp_libraries_result="$LIBWEBP_LIBS"
|
|
||||||
libwebp_includes_result="$LIBWEBP_INCLUDES"
|
|
||||||
|
|
||||||
if test x"$libwebp_libraries_result" = x""; then
|
|
||||||
libwebp_libraries_result="in default path"
|
|
||||||
fi
|
|
||||||
if test x"$libwebp_includes_result" = x""; then
|
|
||||||
libwebp_includes_result="in default path"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$libwebp_libraries_result" = "no"; then
|
|
||||||
libwebp_libraries_result="(none)"
|
|
||||||
fi
|
|
||||||
if test "$libwebp_includes_result" = "no"; then
|
|
||||||
libwebp_includes_result="(none)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_MSG_RESULT([libraries $libwebp_libraries_result, headers $libwebp_includes_result])
|
|
||||||
|
|
||||||
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
|
|
||||||
if test "$LIBWEBP_INCLUDES" != "no" && test "$LIBWEBP_LIBS" != "no"; then
|
|
||||||
AC_DEFINE(HAVE_LIBWEBP,1,[Define if you have libwebp libraries and header files.])
|
|
||||||
$1
|
|
||||||
else
|
|
||||||
LIBWEBP_INCLUDES=""
|
|
||||||
LIBWEBP_LIBS=""
|
|
||||||
$2
|
|
||||||
fi
|
|
||||||
|
|
||||||
])dnl
|
|
||||||
|
|
124
m4/zlib.m4
124
m4/zlib.m4
@ -1,124 +0,0 @@
|
|||||||
dnl From FIND_MOTIF and ACX_PTHREAD, without much understanding
|
|
||||||
dnl
|
|
||||||
dnl FIND_ZLIB[ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]
|
|
||||||
dnl ------------------------------------------------
|
|
||||||
dnl
|
|
||||||
dnl Find zlib libraries and headers ... useful for platforms which are missing
|
|
||||||
dnl the zlib .pc file
|
|
||||||
dnl
|
|
||||||
dnl Put compile stuff in ZLIB_INCLUDES
|
|
||||||
dnl Put link stuff in ZLIB_LIBS
|
|
||||||
dnl Define HAVE_ZLIB if found
|
|
||||||
dnl
|
|
||||||
AC_DEFUN([FIND_ZLIB], [
|
|
||||||
AC_REQUIRE([AC_PATH_XTRA])
|
|
||||||
|
|
||||||
ZLIB_INCLUDES=""
|
|
||||||
ZLIB_LIBS=""
|
|
||||||
|
|
||||||
AC_ARG_WITH(zlib,
|
|
||||||
AS_HELP_STRING([--without-zlib], [build without zlib (default: test)]))
|
|
||||||
# Treat --without-zlib like --without-zlib-includes --without-zlib-libraries.
|
|
||||||
if test "$with_zlib" = "no"; then
|
|
||||||
ZLIB_INCLUDES=no
|
|
||||||
ZLIB_LIBS=no
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_ARG_WITH(zlib-includes,
|
|
||||||
AS_HELP_STRING([--with-zlib-includes=DIR], [libz includes are in DIR]),
|
|
||||||
ZLIB_INCLUDES="-I$withval")
|
|
||||||
AC_ARG_WITH(zlib-libraries,
|
|
||||||
AS_HELP_STRING([--with-zlib-libraries=DIR], [libz libraries are in DIR]),
|
|
||||||
ZLIB_LIBS="-L$withval -lz")
|
|
||||||
|
|
||||||
AC_MSG_CHECKING(for ZLIB)
|
|
||||||
|
|
||||||
# Look for zlib.h
|
|
||||||
if test "$ZLIB_INCLUDES" = ""; then
|
|
||||||
# Check the standard search path
|
|
||||||
AC_TRY_COMPILE([#include <stdio.h>
|
|
||||||
#include <zlib.h>],[int a;],[
|
|
||||||
ZLIB_INCLUDES=""
|
|
||||||
], [
|
|
||||||
# zlib.h is not in the standard search path, try
|
|
||||||
# $prefix
|
|
||||||
zlib_save_CFLAGS="$CFLAGS"
|
|
||||||
|
|
||||||
CFLAGS="-I${prefix}/include $CFLAGS"
|
|
||||||
|
|
||||||
AC_TRY_COMPILE([#include <stdio.h>
|
|
||||||
#include <zlib.h>],[int a;],[
|
|
||||||
ZLIB_INCLUDES="-I${prefix}/include"
|
|
||||||
], [
|
|
||||||
ZLIB_INCLUDES="no"
|
|
||||||
])
|
|
||||||
|
|
||||||
CFLAGS=$zlib_save_CFLAGS
|
|
||||||
])
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Now for the libraries
|
|
||||||
if test "$ZLIB_LIBS" = ""; then
|
|
||||||
zlib_save_LIBS="$LIBS"
|
|
||||||
zlib_save_CFLAGS="$CFLAGS"
|
|
||||||
|
|
||||||
LIBS="-lz $LIBS"
|
|
||||||
CFLAGS="$ZLIB_INCLUDES $CFLAGS"
|
|
||||||
|
|
||||||
# Try the standard search path first
|
|
||||||
AC_TRY_LINK([#include <stdio.h>
|
|
||||||
#include <zlib.h>
|
|
||||||
],[z_stream zs;inflateInit2(&zs, 15 | 32)], [
|
|
||||||
ZLIB_LIBS="-lz"
|
|
||||||
], [
|
|
||||||
# libz is not in the standard search path, try $prefix
|
|
||||||
|
|
||||||
LIBS="-L${prefix}/lib $LIBS"
|
|
||||||
|
|
||||||
AC_TRY_LINK([#include <stdio.h>
|
|
||||||
#include <zlib.h>
|
|
||||||
],[z_stream zs;inflateInit2(&zs, 15 | 32)], [
|
|
||||||
ZLIB_LIBS="-L${prefix}/lib -lz"
|
|
||||||
], [
|
|
||||||
ZLIB_LIBS=no
|
|
||||||
])
|
|
||||||
])
|
|
||||||
|
|
||||||
LIBS="$zlib_save_LIBS"
|
|
||||||
CFLAGS="$zlib_save_CFLAGS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_SUBST(ZLIB_LIBS)
|
|
||||||
AC_SUBST(ZLIB_INCLUDES)
|
|
||||||
|
|
||||||
# Print a helpful message
|
|
||||||
zlib_libraries_result="$ZLIB_LIBS"
|
|
||||||
zlib_includes_result="$ZLIB_INCLUDES"
|
|
||||||
|
|
||||||
if test x"$zlib_libraries_result" = x""; then
|
|
||||||
zlib_libraries_result="in default path"
|
|
||||||
fi
|
|
||||||
if test x"$zlib_includes_result" = x""; then
|
|
||||||
zlib_includes_result="in default path"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$zlib_libraries_result" = "no"; then
|
|
||||||
zlib_libraries_result="(none)"
|
|
||||||
fi
|
|
||||||
if test "$zlib_includes_result" = "no"; then
|
|
||||||
zlib_includes_result="(none)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_MSG_RESULT([libraries $zlib_libraries_result, headers $zlib_includes_result])
|
|
||||||
|
|
||||||
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
|
|
||||||
if test "$ZLIB_INCLUDES" != "no" && test "$ZLIB_LIBS" != "no"; then
|
|
||||||
AC_DEFINE(HAVE_ZLIB,1,[Define if you have zlib libraries and header files.])
|
|
||||||
$1
|
|
||||||
else
|
|
||||||
ZLIB_INCLUDES=""
|
|
||||||
ZLIB_LIBS=""
|
|
||||||
$2
|
|
||||||
fi
|
|
||||||
|
|
||||||
])dnl
|
|
@ -1,12 +0,0 @@
|
|||||||
man_MANS = \
|
|
||||||
batch_crop.1 \
|
|
||||||
batch_image_convert.1 \
|
|
||||||
batch_rubber_sheet.1 \
|
|
||||||
vipsedit.1 \
|
|
||||||
vipsheader.1 \
|
|
||||||
light_correct.1 \
|
|
||||||
vips.1 \
|
|
||||||
vipsprofile.1 \
|
|
||||||
vipsthumbnail.1
|
|
||||||
|
|
||||||
EXTRA_DIST = ${man_MANS} meson.build
|
|
@ -1,42 +0,0 @@
|
|||||||
# don't run test_thumbnail.sh by default, it takes ages
|
|
||||||
TESTS = \
|
|
||||||
test_connections.sh \
|
|
||||||
test_descriptors.sh \
|
|
||||||
test_cli.sh \
|
|
||||||
test_formats.sh \
|
|
||||||
test_seq.sh \
|
|
||||||
test_stall.sh \
|
|
||||||
test_threading.sh
|
|
||||||
|
|
||||||
SUBDIRS = \
|
|
||||||
test-suite
|
|
||||||
|
|
||||||
noinst_PROGRAMS = \
|
|
||||||
test_descriptors \
|
|
||||||
test_connections
|
|
||||||
|
|
||||||
test_descriptors_SOURCES = \
|
|
||||||
test_descriptors.c
|
|
||||||
|
|
||||||
test_connections_SOURCES = \
|
|
||||||
test_connections.c
|
|
||||||
|
|
||||||
AM_CPPFLAGS = -I${top_srcdir}/libvips/include @VIPS_CFLAGS@ @VIPS_INCLUDES@
|
|
||||||
AM_LDFLAGS = @LDFLAGS@
|
|
||||||
LDADD = @VIPS_CFLAGS@ ${top_builddir}/libvips/libvips.la @VIPS_LIBS@
|
|
||||||
|
|
||||||
EXTRA_DIST = \
|
|
||||||
meson.build \
|
|
||||||
test_cli.sh \
|
|
||||||
test_connections.sh \
|
|
||||||
test_descriptors.sh \
|
|
||||||
test_formats.sh \
|
|
||||||
test_seq.sh \
|
|
||||||
test_stall.sh \
|
|
||||||
test_threading.sh \
|
|
||||||
test_thumbnail.sh \
|
|
||||||
variables.sh.in
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
-rm -rf tmp-*
|
|
||||||
|
|
@ -1,21 +0,0 @@
|
|||||||
SUBDIRS = \
|
|
||||||
helpers
|
|
||||||
|
|
||||||
EXTRA_DIST = \
|
|
||||||
images \
|
|
||||||
conftest.py \
|
|
||||||
__init__.py \
|
|
||||||
test_arithmetic.py \
|
|
||||||
test_colour.py \
|
|
||||||
test_conversion.py \
|
|
||||||
test_convolution.py \
|
|
||||||
test_create.py \
|
|
||||||
test_draw.py \
|
|
||||||
test_foreign.py \
|
|
||||||
test_histogram.py \
|
|
||||||
test_iofuncs.py \
|
|
||||||
test_morphology.py \
|
|
||||||
test_resample.py \
|
|
||||||
test_connection.py
|
|
||||||
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
|||||||
EXTRA_DIST = \
|
|
||||||
helpers.py
|
|
||||||
|
|
||||||
|
|
@ -1,42 +0,0 @@
|
|||||||
bin_PROGRAMS = \
|
|
||||||
vips \
|
|
||||||
vipsedit \
|
|
||||||
vipsthumbnail \
|
|
||||||
vipsheader
|
|
||||||
|
|
||||||
vips_SOURCES = vips.c
|
|
||||||
vipsedit_SOURCES = vipsedit.c
|
|
||||||
vipsheader_SOURCES = vipsheader.c
|
|
||||||
vipsthumbnail_SOURCES = vipsthumbnail.c
|
|
||||||
|
|
||||||
AM_CPPFLAGS = -I${top_srcdir}/libvips/include @VIPS_CFLAGS@ @VIPS_INCLUDES@
|
|
||||||
AM_LDFLAGS = @LDFLAGS@
|
|
||||||
LDADD = @VIPS_CFLAGS@ ${top_builddir}/libvips/libvips.la @VIPS_LIBS@
|
|
||||||
|
|
||||||
bin_SCRIPTS = \
|
|
||||||
light_correct \
|
|
||||||
shrink_width \
|
|
||||||
batch_image_convert \
|
|
||||||
batch_rubber_sheet \
|
|
||||||
batch_crop \
|
|
||||||
vipsprofile \
|
|
||||||
vips-8.13
|
|
||||||
|
|
||||||
EXTRA_DIST = \
|
|
||||||
batch_crop.in \
|
|
||||||
batch_image_convert.in \
|
|
||||||
batch_rubber_sheet.in \
|
|
||||||
light_correct.in \
|
|
||||||
meson.build \
|
|
||||||
shrink_width.in \
|
|
||||||
vips-8.13 \
|
|
||||||
vipsprofile
|
|
||||||
|
|
||||||
install-exec-hook:
|
|
||||||
chmod ugo+x ${DESTDIR}${bindir}/light_correct
|
|
||||||
chmod ugo+x ${DESTDIR}${bindir}/shrink_width
|
|
||||||
chmod ugo+x ${DESTDIR}${bindir}/batch_image_convert
|
|
||||||
chmod ugo+x ${DESTDIR}${bindir}/batch_rubber_sheet
|
|
||||||
chmod ugo+x ${DESTDIR}${bindir}/batch_crop
|
|
||||||
chmod ugo+x ${DESTDIR}${bindir}/vipsprofile
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
|||||||
prefix=@prefix@
|
|
||||||
exec_prefix=@exec_prefix@
|
|
||||||
libdir=@libdir@
|
|
||||||
includedir=@includedir@
|
|
||||||
|
|
||||||
Name: vips-cpp
|
|
||||||
Description: C++ API for vips8 image processing library
|
|
||||||
Version: @VERSION@
|
|
||||||
Requires: vips gobject-2.0
|
|
||||||
Libs: -L${libdir} -lvips-cpp
|
|
14
vips.pc.in
14
vips.pc.in
@ -1,14 +0,0 @@
|
|||||||
prefix=@prefix@
|
|
||||||
exec_prefix=@exec_prefix@
|
|
||||||
libdir=@libdir@
|
|
||||||
includedir=@includedir@
|
|
||||||
|
|
||||||
Name: vips
|
|
||||||
Description: Image processing library
|
|
||||||
Version: @VERSION@
|
|
||||||
Requires.private: @PACKAGES_USED@
|
|
||||||
Requires: gobject-2.0
|
|
||||||
Libs: -L${libdir} -lvips
|
|
||||||
Libs.private: @EXTRA_LIBS_USED@
|
|
||||||
Cflags: -I${includedir}
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user