Building an m4 snapshot on FreeBSD, with GNU gettext installed, I see a link error of 'test-error', regarding the symbol 'libintl_gettext'. This patch should fix it.
2023-01-14 Bruno Haible <br...@clisp.org> error, verror tests: Fix link error when the package uses libintl. * modules/error-tests (Makefile.am): Link test-error with $(LIBINTL). * modules/verror-tests (Makefile.am): Link test-verror with $(LIBINTL). diff --git a/modules/error-tests b/modules/error-tests index c0cef0f9b6..58369089e3 100644 --- a/modules/error-tests +++ b/modules/error-tests @@ -10,3 +10,4 @@ configure.ac: Makefile.am: TESTS += test-error.sh check_PROGRAMS += test-error +test_error_LDADD = $(LDADD) $(LIBINTL) diff --git a/modules/verror-tests b/modules/verror-tests index e02309658a..bd76d768c1 100644 --- a/modules/verror-tests +++ b/modules/verror-tests @@ -10,3 +10,4 @@ configure.ac: Makefile.am: TESTS += test-verror.sh check_PROGRAMS += test-verror +test_verror_LDADD = $(LDADD) $(LIBINTL)