On Wed, 2025-05-07 at 10:30 -0400, Genes Lists via dovecot wrote:
After updating gettext to 0.24.1 our daily build of git head is now generating this error:
---------------------------------------- autoreconf -fiv ....
configure.ac:266: warning: macro 'AM_ICONV' not found in library autoreconf: running: /usr/bin/autoconf --force configure.ac:266: error: possibly undefined macro: AM_ICONV If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf: error: /usr/bin/autoconf failed with exit status: 1
Indeed running 'aclocal' generates the same error: ----------------------------------------
gettext does include the file : /usr/share/gettext/m4/iconv.m4
Any help appreciated.
I scanned the gettex mail lists but didn't spot anything that seemed relevant.
Thanks for any guidance.
The fix is to update configure.ac with this which is now required in gettext 0.24 and later: diff --git a/configure.ac b/configure.ac index 8c711964de..dff3d3b19e 100644 --- a/configure.ac +++ b/configure.ac @@ -15,6 +15,8 @@ AC_CONFIG_SRCDIR([src]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_AUX_DIR([build-aux]) +AM_GNU_GETTEXT([external]) +AM_GNU_GETTEXT_VERSION(0.24.1) AM_INIT_AUTOMAKE([foreign tar-ustar]) AM_SILENT_RULES([yes]) -- Gene On Wed, 2025-05-07 at 10:30 -0400, Genes Lists via dovecot wrote: After updating gettext to 0.24.1 our daily build of git head is now generating this error: ---------------------------------------- autoreconf -fiv .... configure.ac:266: warning: macro 'AM_ICONV' not found in library autoreconf: running: /usr/bin/autoconf --force configure.ac:266: error: possibly undefined macro: AM_ICONV If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf: error: /usr/bin/autoconf failed with exit status: 1 Indeed running 'aclocal' generates the same error: ---------------------------------------- gettext does include the file : /usr/share/gettext/m4/iconv.m4 Any help appreciated. I scanned the gettex mail lists but didn't spot anything that seemed relevant. Thanks for any guidance. The fix is to update configure.ac with this which is now required in gettext 0.24 and later: diff --git a/configure.ac b/configure.ac index 8c711964de..dff3d3b19e 100644 --- a/configure.ac +++ b/configure.ac @@ -15,6 +15,8 @@ AC_CONFIG_SRCDIR([src]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_AUX_DIR([build-aux]) +AM_GNU_GETTEXT([external]) +AM_GNU_GETTEXT_VERSION(0.24.1) AM_INIT_AUTOMAKE([foreign tar-ustar]) AM_SILENT_RULES([yes]) -- Gene