[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AM_LANGINFO_CODESET missing
From: |
Bruno Haible |
Subject: |
Re: AM_LANGINFO_CODESET missing |
Date: |
Wed, 01 Jan 2020 10:11:42 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-170-generic; KDE/5.18.0; x86_64; ; ) |
Hi,
Adam Nielsen wrote:
> I'm trying to install the "gnokii" software package, but it no longer
> compiles with gettext 0.20. It worked with 0.19.8, but with 0.20 gives
> this error:
>
> configure.ac:75: error: possibly undefined macro: AM_LANGINFO_CODESET
Looking at autogen.sh and configure.ac of gnokii [1] I can see that
* autogen.sh uses glib-gettextize. Nowadays you can use
"gettextize --no-changelog" instead. [2]
* configure.ac invokes AM_LANGINFO_CODESET, which is defined in codeset.m4.
In earlier versions, gettextize installed codeset.m4 into the package when
either the option --intl was given or an Automake version < 1.9 was found.
In version 0.20, the --intl option is no longer supported and Automake 1.9
or newer is mandatory; therefore codeset.m4 is no longer present.
You can now take codeset.m4 from gnulib [3], through a command such as
gnulib-tool --copy m4/codeset.m4
or
wget -q --timeout=5 -O codeset.m4
'https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;f=m4/codeset.m4'
Bruno
[1] https://git.savannah.nongnu.org/gitweb/?p=gnokii.git;a=tree
[2] https://developer.gnome.org/glib/stable/glib-gettextize.html
[3] https://www.gnu.org/software/gnulib/manual/html_node/index.html
> Doing some digging it looks like the AM_LANGINFO_CODESET macro was
> removed in this commit:
>
> commit 8c2bfdbddb13a480d88ceac4ab0e5886bda957cb
> Author: Bruno Haible <address@hidden>
> Date: Sun Nov 25 02:12:04 2018 +0100
>
> build: Remove some duplicate .m4 files.
>
> * autogen.sh: Copy wchar_t.m4 and wint_t.m4 for libasprintf.
> * gettext-runtime/m4/codeset.m4: Remove file.
> * gettext-runtime/m4/extern-inline.m4: Remove file.
> * gettext-runtime/m4/intl-thread-locale.m4: Remove file.
> * gettext-runtime/m4/lcmessage.m4: Remove file.
> * gettext-runtime/m4/lock.m4: Remove file.
> * gettext-runtime/m4/longlong.m4: Remove file.
> * gettext-runtime/m4/threadlib.m4: Remove file.
> * gettext-runtime/m4/wchar_t.m4: Remove file.
> * gettext-runtime/m4/wint_t.m4: Remove file.
> * gettext-runtime/m4/Makefile.am (EXTRA_DIST): Don't distribute them.
> * Makefile.am (distcheck-hook): Don't verify that they are identical
> copies.
>
> I had a look through the README and NEWS but couldn't find any
> information about what has replaced AM_LANGINFO_CODESET or even that it
> had been removed.
>
> Was its removal a mistake, or has it been replaced with a different
> macro? Or have I just missed the place where this change was explained?
>
> I'm just a user of the gnokii library so I'm not sure why they are
> using this macro, only that I am unable to compile it any more!
>
> Many thanks,
> Adam.
>
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: AM_LANGINFO_CODESET missing,
Bruno Haible <=