]> git.ipfire.org Git - thirdparty/gettext.git/commit
build: Restore the ability to build gettext-tools separately, part 1.
authorBruno Haible <bruno@clisp.org>
Sat, 18 May 2019 21:33:06 +0000 (23:33 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 13 Apr 2020 10:49:33 +0000 (12:49 +0200)
commit6fb13bceb0fb72373f732da9154babd6085f9728
tree0f2583fc46065904272cc3ab9e384936a135cf06
parenta71d50462159d5c3f4381ed916b5cd9aa2be1887
build: Restore the ability to build gettext-tools separately, part 1.

Reported by Hanspeter Niederstrasser <nieder@users.sourceforge.net>
in <https://savannah.gnu.org/bugs/?56333>.

Code based on patch by Miguel Ángel Arruga Vivas <rosen644835@gmail.com>.

* autogen.sh: Copy libtextstyle.m4 for use by gettext-tools.
* gettext-tools/configure.ac: New option --with-installed-libtextstyle.
(USE_INSTALLED_LIBTEXTSTYLE): New conditional.
* gettext-tools/src/Makefile.am (textstyle.h): Disable rule if
USE_INSTALLED_LIBTEXTSTYLE is true.
(LT_LIBTEXTSTYLE): New variable.
(libgettextsrc_la_LDFLAGS): Use it instead of hardcoding a relative filename of
libtextstyle.la.
* configure.ac: Filter out --with-installed-libtextstyle from inherited --help
output.
* Makefile.am (distcheck-hook): Compare different copies of libtextstyle.m4.
* PACKAGING: Document that gettext-tools's configure needs to be invoked with
--with-installed-libtextstyle.
Makefile.am
PACKAGING
autogen.sh
configure.ac
gettext-tools/configure.ac
gettext-tools/src/Makefile.am