Tag
Hash :
260f478c
Author :
Date :
2002-07-19T11:04:14
Fix for PR automake/338: * automake.in (seen_gettext_external): New variable. (handle_gettext): Conditionalize the intl/ check on $seen_gettext_external. Fix grep usage. (scan_autoconf_traces): Set $seen_gettext_external if `external' is passed to AM_GNU_GETTEXT. * tests/gettext.test, tests/gettext2.test: New files. * tests/Makefile.am (TESTS): Add gettext.test and gettext2.test.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
#! /bin/sh
# Check gettext support.
required='gettext'
. $srcdir/defs || exit 1
set -e
cat >>configure.in <<END
AM_GNU_GETTEXT
AC_OUTPUT
END
: >Makefile.am
mkdir po intl
$ACLOCAL
# po/ and intl/ are required
$AUTOMAKE --add-missing 2>stderr && exit 1
cat stderr
grep 'AM_GNU_GETTEXT.*SUBDIRS' stderr
echo 'SUBDIRS = po' >Makefile.am
$AUTOMAKE --add-missing 2>stderr && exit 1
cat stderr
grep 'AM_GNU_GETTEXT.*intl' stderr
echo 'SUBDIRS = intl' >Makefile.am
$AUTOMAKE --add-missing 2>stderr && exit 1
cat stderr
grep 'AM_GNU_GETTEXT.*po' stderr
# Ok.
echo 'SUBDIRS = po intl' >Makefile.am
$AUTOMAKE --add-missing