This allows the pkgconfig file to be properly used in cross compile
scenarios by overriding the prefix. Otherwise, it points to host
libraries.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Pull out the library versioning info out of configure and into a common
script that both cmake & autotools can run. This way we have a single
source of truth for the versioning info.
We've been shipping the pkg-config file for a while now and
want people to use that only, so drop this old script.
This also drop the FEATURES variable as it was only available
via `gdlib-config --features` (and no one has complained).
This changeset adds scripts and frontmatter for a user manual
for LibGD. The manual is written using naturaldoc. That is, the
actual manual (minus some front-matter taken from the manual for
version 2.0.36) is generated from specially-formatted comments in
the source code.
bootstrap.sh has been modified to also trigger generation of the
manual.
Up to now, the version numbers were defined in configure.ac and put
into gd.h by generating it from gd.h.in, replacing the values of
several C macros. This violates the DRY principle, won't work on a
dumb build system, confuses some dev tools and is just a huge headache
in general.
This change makes gd.h (no longer generated) the home of the version
number and provides a script (config/getver.pl) which can extract the
requested version components from the header file. configure.ac now
gets the version number from gd.h instead of vice versa.
In addition, there are now C functions that return the values of the
version macros. This is for the benefit of non-C code using the
library without access to the header file. It also provides a way to
get the version number of the library currently linked rather than the
header the program was compiled against. (This could change if the
shared library is updated without recompiling the program using it.)
These are created when people run autotools, so keeping a copy in the
git repo doesn't make much sense (nor is common). Especially when we
don't keep the generated configure or Makefile.in files either.
`configure.ac` and `bootstrap.sh` are moved in the top directory.
`bootstrap.sh` is completed to execute `libtoolize`. The list of files
to clean is reduced. Other files can be cleaned with `make distclean`.
`src/Makefile.am` is fixed for missing `gd_nnquant.c` dependency.
`ACX_PTHREAD` macro is moved to a `m4` directory to make `configure.ac`
easier to read.
--HG--
branch : fix/autotools
rename : src/bootstrap.sh => bootstrap.sh
rename : src/configure.ac => configure.ac