Build: Create liblzma.pc in a src/liblzma/Makefile.am.
commit090c69dda59e00fc86d0792879bd921bb1156029
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 9 Sep 2013 17:37:03 +0000 (9 20:37 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Sat, 26 Apr 2014 05:29:17 +0000 (26 08:29 +0300)
tree00bc9df339421de7b88e65b08cf0884bb95c94cf
parent1f35331332273de01c46897cafdb37f8e6e285db
Build: Create liblzma.pc in a src/liblzma/Makefile.am.

Previously it was done in configure, but doing that goes
against the Autoconf manual. Autoconf requires that it is
possible to override e.g. prefix after running configure
and that doesn't work correctly if liblzma.pc is created
by configure.

A potential downside of this change is that now e.g.
libdir in liblzma.pc is a standalone string instead of
being defined via ${prefix}, so if one overrides prefix
when running pkg-config the libdir won't get the new value.
I don't know if this matters in practice.

Thanks to Vincent Torri.
configure.ac
src/liblzma/Makefile.am