Fixed bootstrap with different gettext version on the build host

The problem is autopoint can install only all files or no files
at all and without updating of M4 macros in any case.
Build process failed at make-time of dist because of version mismatch
for M4 macros and po/* files.
This commit is contained in:
Evgeny Grin (Karlson2k)
2021-01-19 17:00:33 +03:00
parent a611d6dfac
commit 7b2c73d1b9
5 changed files with 1042 additions and 2 deletions
+17 -1
View File
@@ -27,7 +27,23 @@ else
fi
if existence libtool || existence libtoolize || existence glibtoolize || existence slibtool; then
autoreconf -I m4 -i ${1+"$@"}
echo "Running autotools..."
aclocal -I m4 --install && \
libtoolize -c -i -v && \
autoconf && \
autoheader && \
automake -a -c --gnu
if test $? -ne 0 || ! test -x configure || ! test -f Makefile.in ; then
echo "Autotools failed, retrying with autoreconf..."
if ! autoreconf -i ${1+"$@"} ; then
echo "Failed to autoreconf, retrying with force install..."
if ! autoreconf -i -f ${1+"$@"} ; then
echo "*** Failed to create 'configure' and other autotools generated files. ***" >&2
exit 1
fi
fi
fi
echo "The ${bs_scrdir-.}/configure is ready to run."
else
echo "*** No libtoolize (libtool) or libtool found, please install it ***" >&2;
exit 1