From: Paul Eggert Date: Mon, 4 May 2026 15:49:26 +0000 (-0700) Subject: Port tests to POSIX.1-2001 grep and later X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c724d4e83964fec1e3bcb7e553433741f8d8f73;p=thirdparty%2Fautoconf.git Port tests to POSIX.1-2001 grep and later Stop assuming egrep and fgrep in tests. POSIX.1-2001 removed the requirement to support egrep and fgrep, and in GNU grep 3.8 and later, ‘egrep’ warns that is is obsolete, messing up the output of a test script. * tests/torture.at: (Package requiring autopoint (AM_GNU_GETTEXT + _VERSION)) (autoreconf --exclude (autopoint)): Increase gettext version from 0.11.4 (2002) to 0.13 (2003); this is the first gettext version that did not require the existence of egrep. --- diff --git a/README-hacking b/README-hacking index 3e05a963a..db88c9a68 100644 --- a/README-hacking +++ b/README-hacking @@ -16,6 +16,7 @@ tools we depend upon, including: - Git 1.4.4+ - Automake 1.11+ +- Gettext 0.13+ - Help2man 1.29+ - M4 1.4.16+ - Perl 5.010+ diff --git a/tests/torture.at b/tests/torture.at index 6d1b06a09..03dbfb7cd 100644 --- a/tests/torture.at +++ b/tests/torture.at @@ -2095,9 +2095,8 @@ AT_DATA([configure.ac], AC_CONFIG_MACRO_DIRS([m4]) AM_INIT_AUTOMAKE AM_GNU_GETTEXT([external]) -# This is the oldest version of gettext.m4 that defines the -# AM_GNU_GETTEXT_VERSION macro. -AM_GNU_GETTEXT_VERSION([0.11.4]) +# This is the oldest version of gettext that does not assume egrep. +AM_GNU_GETTEXT_VERSION([0.13]) AC_CONFIG_FILES([Makefile po/Makefile.in]) AC_OUTPUT @@ -2443,9 +2442,8 @@ AT_DATA([configure.ac], AC_CONFIG_MACRO_DIRS([m4]) AM_INIT_AUTOMAKE AM_GNU_GETTEXT([external]) -# This is the oldest version of gettext.m4 that defines the -# AM_GNU_GETTEXT_VERSION macro. -AM_GNU_GETTEXT_VERSION([0.11.4]) +# This is the oldest version of gettext that does not assume egrep. +AM_GNU_GETTEXT_VERSION([0.13]) AC_CONFIG_FILES([Makefile po/Makefile.in]) AC_OUTPUT