bootstrap: warn about BSD toolchain snafu
authorEric Blake <eblake@redhat.com>
Wed, 4 Dec 2013 00:42:38 +0000 (17:42 -0700)
committerEric Blake <eblake@redhat.com>
Thu, 5 Dec 2013 23:21:04 +0000 (16:21 -0700)
commitfdfe96fe43746d63364f823ab3032c8301d53d1f
treee553a89a09a282c394d8e4aab3f4b225f10ef9d3
parentd6ba92ea479ab1148730e62b937f3115daf47643
bootstrap: warn about BSD toolchain snafu

With my help on IRC, Roman Bogorodskiy identified a bug where the
BSD autoconf wrapper script eats stdin[1], which in turn causes
autopoint from gettext 0.18.3 to fail to find AM_GNU_GETTEXT_VERSION
out of configure.ac[2], with this error:

./bootstrap: autopoint --force
autopoint: *** Missing version: please specify in configure.ac through a line 'AM_GNU_GETTEXT_VERSION(x.yy.zz)' the gettext version the package is using

[1] http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/184479
[2] http://git.sv.gnu.org/cgit/gettext.git/commit/gettext-tools/misc/autopoint.in?id=eea2dddde

The workaround would be painful to automate (because gettext
hardcodes the use of autom4te rather than honoring ${AUTOM4TE},
we'd have to create a temporary wrapper earlier in $PATH that
forwards to the real autom4te-x.yz - basically, repeating the
logic of what a wrapper script was supposed to do).  Further,
while the broken autom4te definitely hurts gettext 0.18.3, it
tends to have no issues with gettext 0.18.2; and since the
problem has been identified, it will not be long before fixed
autom4te and/or improved gettext that is not so stubborn
about using exactly 'autom4te' will be available.  Therefore,
for now we just warn about the situation.

* build-aux/bootstrap: Alert users to a broken autom4te.

Signed-off-by: Eric Blake <eblake@redhat.com>
build-aux/bootstrap