# If aclocal fails here, it may be that gettext is too old to
# provide AM_GNU_GETTEXT_VERSION.
if $ACLOCAL; then
-
# autopoint will fail if it's from an older version.
# If gettext is too old to provide autopoint, this will
# fail as well, so we're safe here.
sed '/AM_GNU_GETTEXT_VERSION/d' configure.ac >configure.int
mv -f configure.int configure.ac
+rm -rf autom4te.cache
$ACLOCAL
+$AUTOCONF
# po/ and intl/ are required.
$AUTOMAKE --add-missing
# Make sure distcheck runs './configure --with-included-gettext'.
-grep 'with-included-gettext' Makefile.in
+./configure
+echo distdir: > po/Makefile
+echo distdir: > intl/Makefile
+$MAKE -n distcheck | grep '.*--with-included-gettext'
# 'SUBDIRS = po intl' isn't required if po/ doesn't exist.
# PR/381.
-rmdir po
+rm -rf po
mkdir sub
echo 'SUBDIRS = sub' >Makefile.am
$AUTOMAKE
: >Makefile.am
AUTOMAKE_fails --add-missing
grep 'AM_GNU_GETTEXT.*SUBDIRS' stderr
+
+:
mkdir foo po
$ACLOCAL
+$AUTOCONF
# config.rpath is required.
: >config.rpath
# Don't try running ./configure --with-included-gettext if the
# user is using AM_GNU_GETTEXT([external]).
-grep 'with-included-gettext' Makefile.in && exit 1
+./configure
+$MAKE -n distcheck | grep 'with-included-gettext' && exit 1
# intl/ isn't wanted with AM_GNU_GETTEXT([external]).