]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
tests: Avoid an autopoint-3 failure caused by an Autoconf 2.71 bug.
authorBruno Haible <bruno@clisp.org>
Thu, 30 Nov 2023 10:38:36 +0000 (11:38 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 30 Nov 2023 10:40:20 +0000 (11:40 +0100)
* gettext-tools/tests/autopoint-3: Remove the autom4te cache before invoking
automake.

gettext-tools/tests/autopoint-3

index 237c771c73771895c0f6a39667834ebc24f7d2f8..1cedce2d1c0997c51d214a1f11d7cecd128865de 100755 (executable)
@@ -123,6 +123,20 @@ test $? = 0 || { cat autopoint.err; Exit 1; }
 # error "configure.ac:3: error: required file './ltmain.sh' not found".
 touch ltmain.sh
 
+# Avoid an Automake 1.16.5 failure, in the presence of Autoconf 2.71, on an ext4
+# file system:
+#   PREFIX/share/automake-1.16/am/depend2.am: error: am__fastdepCC does not appear in AM_CONDITIONAL
+#   PREFIX/share/automake-1.16/am/depend2.am:   The usual way to define 'am__fastdepCC' is to add 'AC_PROG_CC'
+#   PREFIX/share/automake-1.16/am/depend2.am:   to 'configure.ac' and run 'aclocal' and 'autoconf' again
+#   PREFIX/share/automake-1.16/am/depend2.am: error: AMDEP does not appear in AM_CONDITIONAL
+#   PREFIX/share/automake-1.16/am/depend2.am:   The usual way to define 'AMDEP' is to add one of the compiler tests
+#   PREFIX/share/automake-1.16/am/depend2.am:     AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC, AC_PROG_OBJCXX,
+#   PREFIX/share/automake-1.16/am/depend2.am:     AM_PROG_AS, AM_PROG_GCJ, AM_PROG_UPC
+#   PREFIX/share/automake-1.16/am/depend2.am:   to 'configure.ac' and run 'aclocal' and 'autoconf' again
+# The cause is described in
+# <https://lists.gnu.org/archive/html/bug-automake/2023-07/msg00020.html>.
+rm -rf autom4te.cache
+
 ${AUTOMAKE} -a -c >/dev/null 2>autopoint.err
 test $? = 0 || { cat autopoint.err; Exit 1; }