]> git.ipfire.org Git - thirdparty/gettext.git/log
thirdparty/gettext.git
2 years agodoc: Make an example multithread-safe.
Bruno Haible [Fri, 8 Jul 2022 17:26:40 +0000 (19:26 +0200)] 
doc: Make an example multithread-safe.

Reported by Vivien Kraus <vivien@planete-kraus.eu> in
<https://lists.gnu.org/archive/html/bug-gettext/2022-07/msg00015.html>.

* gettext-tools/doc/gettext.texi (Libraries): Make the example code
multithread-safe.

2 years agodoc: Clarify constraints for PO files.
Bruno Haible [Sun, 3 Jul 2022 09:16:27 +0000 (11:16 +0200)] 
doc: Clarify constraints for PO files.

* gettext-tools/doc/gettext.texi (PO Files): Mention that \u and \U escape
sequences are not allowed.

2 years agodoc: Clarify constraints for PO files.
Bruno Haible [Sun, 3 Jul 2022 09:15:39 +0000 (11:15 +0200)] 
doc: Clarify constraints for PO files.

Reported by Gábor Hojtsy <gabor.hojtsy@gmail.com> in
<https://savannah.gnu.org/bugs/?62677>.

* gettext-tools/doc/gettext.texi (PO Files): State uniqueness requirement.

2 years agoxgettext: Add test for last fix.
Bruno Haible [Sun, 26 Jun 2022 07:05:16 +0000 (09:05 +0200)] 
xgettext: Add test for last fix.

Reported by Jonathan Matthew <jonathan@d14n.org>
in <https://savannah.gnu.org/bugs/?62363>.

* gettext-tools/tests/xgettext-18: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.

2 years agoxgettext: Remove side effect of an extraction on later extractions.
Jonathan Matthew [Sun, 26 Jun 2022 07:04:48 +0000 (09:04 +0200)] 
xgettext: Remove side effect of an extraction on later extractions.

Reported in <https://savannah.gnu.org/bugs/?62363>.

* gettext-tools/src/xgettext.c (extract_from_file): Reset
current_formatstring_parser1/2/3 variables before returning.

2 years agodoc: change OpenOffice.org to LibreOffice
Sébastien Wilmet [Fri, 22 Apr 2022 17:48:25 +0000 (19:48 +0200)] 
doc: change OpenOffice.org to LibreOffice

* gettext-tools/doc/gettext.texi (System Installation): Mention LibreOffice
instead of OpenOffice.org.

2 years agointl: On native Windows, actually define the *wprintf functions.
Johannes Schindelin [Sat, 25 Jun 2022 20:32:49 +0000 (22:32 +0200)] 
intl: On native Windows, actually define the *wprintf functions.

In dcaf8c4d7 (Cygwin portability., 2003-09-17), the *wprintf() family of
functions in `gettext-runtime/intl/printf.c` were no longer guarded by
the constant `HAVE_WPRINTF`, but instead by `HAVE_FWPRINTF`.

This apparently worked even if the corresponding part in
`gettext-runtime/intl/libgnuintl.h.in` uses `HAVE_WPRINTF` to guard the
declarations of those functions.

However, in d84f20745 (Make sure that libintl.h declares the *wprintf
overrides on Windows., 2019-04-08), gettext introduced a change where it
would look for `wprintf()` instead of `fwprintf()`. As a consequence it
would no longer define the `HAVE_FWPRINTF` constant at all.

GCC apparently interprets `#if HAVE_FWPRINTF` as `#if 0` if the constant
has not even been defined.

This leads to the funny situation that previously, the *wprintf()
functions would be defined, but not be declared. Whereas now the
functions are not defined, but declared.

Also funny: Cygwin did not even export the `fwprintf()` function until
2009, as per Cygwin's 45e20e47ba (cygwin.din: Export wprintf,
fwprintf, swprintf, vwprintf, vfwprintf, vswprintf. [...] , 2009-03-06),
while the `wprintf()` function was exported already in 2003. So the
Cygwin portability patch from 2003 seems to have turned off all of the
*wprintf() functions in gettext.

Let's revert that "portability" patch, as it now only does harm and has
no benefit anymore.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
[Bruno's summary]
Thank you for the analysis and explanation, Johannes!

The commits dcaf8c4d7 and f5ca7696d (2003-09-17) introduced a test for
fwprintf rather than wprintf. This was designed as a workaround to a
Cygwin problem that existed from 2003 to 2009.

The commit d84f20745 (2019-04-08) switched back from testing fwprintf
to testing wprintf, but did so incompletely: I forgot to modify printf.c.
So, since then, the *wprintf functions are declared but not defined.

2 years agogettext-runtime: Provide helper script to build against uninstalled binaries.
Bruno Haible [Tue, 21 Jun 2022 00:50:34 +0000 (02:50 +0200)] 
gettext-runtime: Provide helper script to build against uninstalled binaries.

Prompted by <https://gcc.gnu.org/pipermail/gcc/2022-June/238929.html>.

* gettext-runtime/uninstalled-config.sh.in: New file.
* gettext-runtime/configure.ac: New variable ENABLE_SHARED. Generate
uninstalled-config.sh at configure time.

2 years agoDon't check for java nor javac when --disable-java is specified.
Bruno Haible [Mon, 20 Jun 2022 06:56:18 +0000 (08:56 +0200)] 
Don't check for java nor javac when --disable-java is specified.

This avoid annoying dialogs on macOS when Java has not been installed so far.
Reported by Iain Sandoe <idsandoe@googlemail.com> in
<https://gcc.gnu.org/pipermail/gcc/2022-June/238929.html>.

* gettext-runtime/configure.ac: When JAVA_CHOICE is 'no', bypass the gt_JAVACOMP
and JAR tests.
* gettext-tools/configure.ac: When JAVA_CHOICE is 'no', bypass the gt_JAVAEXEC,
gt_JAVACOMP, and JAR tests.

2 years agoFix an interference between libintl.h and C++ (boost) header files.
Bruno Haible [Wed, 22 Dec 2021 12:00:02 +0000 (13:00 +0100)] 
Fix an interference between libintl.h and C++ (boost) header files.

Reported by Marc Jeanmougin <marc@jeanmougin.fr> in
<https://lists.gnu.org/archive/html/bug-gettext/2021-12/msg00027.html>.

* gettext-runtime/intl/libgnuintl.in.h (libintl_fprintf, libintl_vfprintf,
libintl_printf, libintl_vprintf, libintl_sprintf, libintl_vsprintf,
libintl_snprintf, libintl_vsnprintf, libintl_asprintf, libintl_vasprintf,
libintl_fwprintf, libintl_vfwprintf, libintl_wprintf, libintl_vwprintf,
libintl_swprintf, libintl_vswprintf, libintl_newlocale, libintl_duplocale,
libintl_freelocale, libintl_setlocale): Inject also into the C++ std namespace.

2 years agointl: Improve indentation of generated libintl.h file.
Bruno Haible [Wed, 22 Dec 2021 11:15:08 +0000 (12:15 +0100)] 
intl: Improve indentation of generated libintl.h file.

* gettext-runtime/intl/libgnuintl.in.h: Indent preprocessor directives.

2 years agodoc: Document availability of Python brace format strings.
Bruno Haible [Tue, 7 Dec 2021 16:23:45 +0000 (17:23 +0100)] 
doc: Document availability of Python brace format strings.

* gettext-tools/doc/lang-python.texi (Python): Show an example of a Python brace
format string.

2 years agoautopoint: Fix structure of man page.
Bruno Haible [Sat, 21 Aug 2021 22:09:06 +0000 (00:09 +0200)] 
autopoint: Fix structure of man page.

Reported by Michio Matsuyama <michio.matsuyama@gmail.com> in
<https://savannah.gnu.org/bugs/?61065>.

* gettext-tools/misc/autopoint.in (func_version): Accept a boolean argument.
Adjust wording. Bump copyright year.
Accept an undocumented option '--version-without-config'.
* gettext-tools/man/Makefile.am ($(man_MAN1MISC)): When creating autopoint.1,
pass the option --version-without-config instead of --version to 'autopoint'.

2 years agoImprove DEPENDENCIES and HACKING files.
Bruno Haible [Sat, 21 Aug 2021 13:46:39 +0000 (15:46 +0200)] 
Improve DEPENDENCIES and HACKING files.

* DEPENDENCIES: Update mono runtime package name.
* HACKING: Add pre-built package names. Recommend TeX Live instead of teTeX.
* libtextstyle/HACKING: Likewise.

2 years ago.gitignore: Ignore the generated config.cache files.
Bruno Haible [Sun, 25 Jul 2021 12:38:17 +0000 (14:38 +0200)] 
.gitignore: Ignore the generated config.cache files.

2 years agolibgettextpo: Tidy up exported symbols.
Bruno Haible [Sun, 20 Jun 2021 20:33:32 +0000 (22:33 +0200)] 
libgettextpo: Tidy up exported symbols.

* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_LDFLAGS): Add an
-export-symbols-regex option.

2 years agoImprove conflict resolution between gnulib and textstyle.h.
Bruno Haible [Sun, 20 Jun 2021 01:47:20 +0000 (03:47 +0200)] 
Improve conflict resolution between gnulib and textstyle.h.

* libtextstyle/lib/textstyle.h (libtextstyle_isatty): Don't override a Gnulib
override.

2 years agoImprove conflict resolution between gnulib and libintl.h.
Bruno Haible [Sun, 20 Jun 2021 01:47:17 +0000 (03:47 +0200)] 
Improve conflict resolution between gnulib and libintl.h.

* gettext-runtime/intl/libgnuintl.in.h (fprintf, vfprintf, printf, vprintf,
sprintf, vsprintf, snprintf, vsnprintf, asprintf, vasprintf): Use Gnulib-
provided macros to test more reliably whether Gnulib overrides these functions.

2 years agointl: Assume strtoul exists.
Bruno Haible [Sun, 20 Jun 2021 01:43:54 +0000 (03:43 +0200)] 
intl: Assume strtoul exists.

* gettext-runtime/intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Assume
HAVE_STRTOUL to be 1.
* gettext-runtime/m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for strtoul.

2 years agointl: Assume strdup exists.
Bruno Haible [Sun, 20 Jun 2021 01:43:50 +0000 (03:43 +0200)] 
intl: Assume strdup exists.

* gettext-runtime/intl/bindtextdom.c (set_binding_values): Assume HAVE_STRDUP
to be 1.
* gettext-runtime/intl/finddomain.c (_nl_find_domain): Likewise.
* gettext-runtime/intl/textdomain.c (TEXTDOMAIN): Likewise.
* gettext-runtime/m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for strdup.

2 years agointl: Assume <limits.h> exists.
Bruno Haible [Sun, 20 Jun 2021 01:43:45 +0000 (03:43 +0200)] 
intl: Assume <limits.h> exists.

* gettext-runtime/intl/dcigettext.c: Include <limits.h> always.
* gettext-runtime/m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for limits.h.

2 years agoAvoid lang-vala failure on Ubuntu 16.04 in 32-bit mode.
Bruno Haible [Sun, 20 Jun 2021 01:42:13 +0000 (03:42 +0200)] 
Avoid lang-vala failure on Ubuntu 16.04 in 32-bit mode.

* gettext-tools/tests/lang-vala: Skip the test if the valac invocation on a
trivial program fails.

2 years agoAvoid lang-vala failure on macOS with MacPorts.
Bruno Haible [Tue, 15 Jun 2021 08:32:19 +0000 (10:32 +0200)] 
Avoid lang-vala failure on macOS with MacPorts.

* gettext-tools/tests/lang-vala: Skip the test if the valac invocation reports
that <glib.h> is not installed.

2 years agoUpdate DEPENDENCIES.
Bruno Haible [Sun, 28 Feb 2021 23:14:46 +0000 (00:14 +0100)] 
Update DEPENDENCIES.

* DEPENDENCIES: Update info regarding libiconv. List pre-built package names.
Add awk as a normal dependency of a package with an Autoconf-generated configure
file.
* libtextstyle/DEPENDENCIES: Likewise.

2 years agobuild: Avoid a warning in a configure test.
Bruno Haible [Sun, 31 Jan 2021 20:01:44 +0000 (21:01 +0100)] 
build: Avoid a warning in a configure test.

Reported through MacPorts.

* gettext-runtime/m4/intdiv0.m4 (gt_INTDIV0): Avoid shadowing the global 'nan()'
function.

2 years agobuild: Remove glibc21.m4 (unused since 2018-09-17).
Bruno Haible [Mon, 28 Dec 2020 13:12:27 +0000 (14:12 +0100)] 
build: Remove glibc21.m4 (unused since 2018-09-17).

* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Don't require gl_GLIBC21.
* gettext-tools/configure.ac: Don't invoke gl_GLIBC21.
* gettext-runtime/m4/glibc21.m4: Remove file.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.

2 years agointl: Support the AIX 7 locale names.
Bruno Haible [Thu, 10 Dec 2020 16:01:43 +0000 (17:01 +0100)] 
intl: Support the AIX 7 locale names.

* gettext-runtime/intl/explodename.c (_nl_find_language): Remove function.
(_nl_explode_name): Inline it here. On AIX, lowercase the language and map a
script identifier to a modifier.
* NEWS: Mention it.

2 years agoxgettext: Make --directory option work right with Ruby input files.
Bruno Haible [Fri, 4 Dec 2020 21:49:27 +0000 (22:49 +0100)] 
xgettext: Make --directory option work right with Ruby input files.

* gettext-tools/src/xgettext.c (extract_from_file_func): Add found_in_dir
argument.
(xgettext_find_file): Return also the directory that was used to find the file.
(extract_from_file): Pass the directory to the extractor.
* gettext-tools/src/x-ruby.h (extract_ruby): Add found_in_dir argument.
* gettext-tools/src/x-ruby.c (extract_ruby): Add found_in_dir argument. Pass the
logical_filename to rxgettext, and run rxgettext in the given directory.
* gettext-tools/tests/xgettext-16: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.

2 years agotests: Fix typos on scheme-format test.
Miguel Arruga Vivas [Mon, 31 Dec 2018 10:38:36 +0000 (11:38 +0100)] 
tests: Fix typos on scheme-format test.

* gettext-tools/tests/format-scheme-2: Fix typos.

2 years agobuild: Remove the need for an autoconf test.
Bruno Haible [Sat, 21 Nov 2020 21:37:30 +0000 (22:37 +0100)] 
build: Remove the need for an autoconf test.

* gettext-runtime/intl/intl-exports.c (IMP): Use predefined preprocessor symbol
tests, not USER_LABEL_PREFIX_UNDERSCORE.
* gettext-runtime/configure.ac (INTL_EXPORTS_FLAGS): Remove variable.
* gnulib-local/modules/gettext-runtime-misc (Makefile.am): Don't use
INTL_EXPORTS_FLAGS.
* gettext-tools/woe32dll/export.h (IMP): Use predefined preprocessor symbol
tests, not USER_LABEL_PREFIX_UNDERSCORE.
* gettext-tools/configure.ac (GETTEXTLIB_EXPORTS_FLAGS): Don't define USER_LABEL_PREFIX_UNDERSCORE.

2 years agobuild: Set permissions of test scripts consistently.
Bruno Haible [Sun, 25 Oct 2020 20:47:23 +0000 (21:47 +0100)] 
build: Set permissions of test scripts consistently.

Reported by Khem Raj <raj.khem@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gettext/2020-09/msg00007.html>.

* gettext-tools/tests/msgmerge-29: Make executable.

2 years agoFix "warning: implicit declaration of function 'open'/'read'/'close'".
Bruno Haible [Sun, 18 Oct 2020 11:42:41 +0000 (13:42 +0200)] 
Fix "warning: implicit declaration of function 'open'/'read'/'close'".

* gettext-runtime/intl/loadmsgcat.c: Include <io.h>.
(open, read, close): New macros on native Windows.

2 years agoFix "warning: 'max' macro redefined".
Bruno Haible [Sat, 17 Oct 2020 19:55:47 +0000 (21:55 +0200)] 
Fix "warning: 'max' macro redefined".

* gettext-tools/src/x-javascript.c (max): Undefine first.
* gettext-tools/src/x-python.c (max): Likewise.

2 years agoFix "warning: no previous extern declaration for non-static variable".
Bruno Haible [Sun, 6 Sep 2020 23:43:59 +0000 (01:43 +0200)] 
Fix "warning: no previous extern declaration for non-static variable".

* gettext-tools/src/write-desktop.c (msgfmt_methods): Make 'static'.
* gettext-tools/src/x-desktop.c (extract_methods): Likewise.

2 years agoFix "warning: this function declaration is not a prototype".
Bruno Haible [Sun, 6 Sep 2020 23:33:56 +0000 (01:33 +0200)] 
Fix "warning: this function declaration is not a prototype".

* gnulib-local/lib/xgetcwd.c (xgetcwd): Use ANSI C prototype syntax.

2 years agoFix "warning: no previous prototype for function 'its_*_eval'".
Bruno Haible [Sun, 6 Sep 2020 23:31:26 +0000 (01:31 +0200)] 
Fix "warning: no previous prototype for function 'its_*_eval'".

* gettext-tools/src/its.c (its_translate_rule_eval,
its_localization_note_rule_eval, its_element_within_text_rule_eval,
its_preserve_space_rule_eval, its_extension_context_rule_eval,
its_extension_escape_rule_eval): Make 'static'.

2 years agoFix "warning: no previous prototype for function 'locating_rule_list_destroy'".
Bruno Haible [Sun, 6 Sep 2020 23:26:42 +0000 (01:26 +0200)] 
Fix "warning: no previous prototype for function 'locating_rule_list_destroy'".

* gettext-tools/src/locating-rule.c (locating_rule_list_destroy): Make 'static'.

2 years agoFix "warning: no previous prototype for function 'xgetcwd'".
Bruno Haible [Sun, 6 Sep 2020 23:24:03 +0000 (01:24 +0200)] 
Fix "warning: no previous prototype for function 'xgetcwd'".

* gnulib-local/lib/xgetcwd.c: Include "xgetcwd.h".

2 years agoFix "warning: unannotated fall-through between switch labels".
Bruno Haible [Sun, 6 Sep 2020 23:08:11 +0000 (01:08 +0200)] 
Fix "warning: unannotated fall-through between switch labels".

* autogen.sh (GNULIB_MODULES_RUNTIME_FOR_SRC, GNULIB_MODULES_TOOLS_FOR_SRC,
GNULIB_MODULES_LIBGETTEXTPO): Add 'attribute'.
* libtextstyle/autogen.sh (GNULIB_MODULES): Likewise.
* gettext-runtime/intl/plural.y: Include attribute.h. Use FALLTHROUGH annotated
empty statements instead of /* FALLTHROUGH */ comments.
* gettext-runtime/src/gettext.c: Likewise.
* gettext-runtime/src/ngettext.c: Likewise.
* gettext-tools/src/format-boost.c: Likewise.
* gettext-tools/src/read-stringtable.c: Likewise.
* gettext-tools/src/write-csharp.c: Likewise.
* gettext-tools/src/write-java.c: Likewise.
* gettext-tools/src/write-po.c: Likewise.
* gettext-tools/src/x-awk.c: Likewise.
* gettext-tools/src/x-c.c: Likewise.
* gettext-tools/src/x-csharp.c: Likewise.
* gettext-tools/src/x-elisp.c: Likewise.
* gettext-tools/src/x-java.c: Likewise.
* gettext-tools/src/x-javascript.c: Likewise.
* gettext-tools/src/x-librep.c: Likewise.
* gettext-tools/src/x-lisp.c: Likewise.
* gettext-tools/src/x-perl.c: Likewise.
* gettext-tools/src/x-php.c: Likewise.
* gettext-tools/src/x-python.c: Likewise.
* gettext-tools/src/x-scheme.c: Likewise.
* gettext-tools/src/x-sh.c: Likewise.
* gettext-tools/src/x-smalltalk.c: Likewise.
* gettext-tools/src/x-tcl.c: Likewise.
* gettext-tools/src/x-vala.c: Likewise.
* gettext-tools/src/x-ycp.c: Likewise.
* gettext-tools/tests/tstgettext.c: Likewise.
* gettext-tools/tests/tstngettext.c: Likewise.
* libtextstyle/gnulib-local/lib/tparm.c: Likewise.
* gettext-runtime/src/escapes.h: Use FALLTHROUGH annotated empty statements
instead of /* FALLTHROUGH */ comments.

2 years agoFix "warning: cast from 'const void *' to 'char *' drops const qualifier".
Bruno Haible [Sun, 6 Sep 2020 21:26:02 +0000 (23:26 +0200)] 
Fix "warning: cast from 'const void *' to 'char *' drops const qualifier".

* libtextstyle/gnulib-local/lib/iconv-ostream.oo.c (iconv_ostream::write_mem):
Add 'const'.

2 years agoFix "warning: cast from 'const void *' to 'char *' drops const qualifier".
Bruno Haible [Sun, 6 Sep 2020 21:23:58 +0000 (23:23 +0200)] 
Fix "warning: cast from 'const void *' to 'char *' drops const qualifier".

* libtextstyle/gnulib-local/lib/html-ostream.oo.c (html_ostream::write_mem): Add
'const'.

2 years agoFix "warning: cast from 'const void *' to 'char *' drops const qualifier".
Bruno Haible [Sun, 6 Sep 2020 21:07:51 +0000 (23:07 +0200)] 
Fix "warning: cast from 'const void *' to 'char *' drops const qualifier".

* libtextstyle/gnulib-local/lib/fd-ostream.oo.c (fd_ostream::write_mem): Add
'const'.

2 years agoFix "warning: cast ... drops const qualifier".
Bruno Haible [Sun, 6 Sep 2020 21:19:33 +0000 (23:19 +0200)] 
Fix "warning: cast ... drops const qualifier".

* gnulib-local/lib/markup.c (slow_name_validate): Add 'const'.

2 years agoFix "warning: cast from 'const void *' to 'struct pre_message *' drops const qualifier".
Bruno Haible [Sun, 6 Sep 2020 21:01:39 +0000 (23:01 +0200)] 
Fix "warning: cast from 'const void *' to 'struct pre_message *' drops const qualifier".

* gettext-tools/src/write-mo.c (compare_id): Add 'const'.

2 years agoFix "warning: cast from 'const char *' to 'char *' drops const qualifier".
Bruno Haible [Sun, 6 Sep 2020 20:42:44 +0000 (22:42 +0200)] 
Fix "warning: cast from 'const char *' to 'char *' drops const qualifier".

* gettext-tools/src/str-list.h (string_list_append_unique_desc,
string_list_member_desc): New declarations.
* gettext-tools/src/str-list.c (string_list_append_unique_desc,
string_list_member_desc): New functions.
* gettext-tools/src/msgfmt.c (add_languages): Don't modify the contents of
'line'.

2 years agoFix "warning: cast from 'const void *' to 'struct compiled_kwset *' drops const quali...
Bruno Haible [Sun, 6 Sep 2020 20:18:28 +0000 (22:18 +0200)] 
Fix "warning: cast from 'const void *' to 'struct compiled_kwset *' drops const qualifier".

* gettext-tools/libgrep/m-fgrep.c (Fexecute): Add 'const'.

2 years agoFix "warning: cast from 'const void *' to 'const char **' drops const qualifier".
Bruno Haible [Sun, 6 Sep 2020 20:13:05 +0000 (22:13 +0200)] 
Fix "warning: cast from 'const void *' to 'const char **' drops const qualifier".

* gettext-runtime/src/envsubst.c (cmp_string): Add 'const'.

2 years agoFix matching of languages in the LINGUAS environment variable.
Bruno Haible [Sun, 6 Sep 2020 19:28:50 +0000 (21:28 +0200)] 
Fix matching of languages in the LINGUAS environment variable.

Setting LINGUAS e.g. to "frs" should not cause fr.mo to get installed,
because Frisian is not a variant of French.

Reported by <arfrever.fta@gmail.com> in <https://savannah.gnu.org/bugs/?59062>.

* gettext-runtime/m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Don't
consider $desiredlang a variant of $presentlang unless it has the syntax of a
variant.

2 years agoOptimize also for clang.
Bruno Haible [Sun, 16 Aug 2020 14:07:23 +0000 (16:07 +0200)] 
Optimize also for clang.

* gnulib-local/lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Set to 1
also on clang.

2 years agoOptimize also for clang.
Bruno Haible [Sun, 16 Aug 2020 14:00:40 +0000 (16:00 +0200)] 
Optimize also for clang.

* gnulib-local/lib/gettext.h (pgettext_aux, npgettext_aux, dcpgettext_expr,
dcnpgettext_expr): Inline also on clang.

2 years agoFix quoting of AC_LANG_SOURCE arguments.
Bruno Haible [Sun, 16 Aug 2020 12:02:31 +0000 (14:02 +0200)] 
Fix quoting of AC_LANG_SOURCE arguments.

* gettext-tools/m4/locale-de.m4 (gt_LOCALE_DE_UTF8): Simplify m4 quoting.

2 years agoFix lang-python-* test failures with Python 3.8.
Bruno Haible [Sun, 2 Jan 2022 14:39:59 +0000 (15:39 +0100)] 
Fix lang-python-* test failures with Python 3.8.

* gettext-tools/tests/lang-python-1: Use syntax that works also with Python 3.
* gettext-tools/tests/lang-python-2: Likewise.

2 years agoHandle known test failure on Alpine Linux.
Bruno Haible [Tue, 15 Jun 2021 00:47:29 +0000 (02:47 +0200)] 
Handle known test failure on Alpine Linux.

* gettext-tools/tests/autopoint-3: Add comment regarding Alpine Linux.

2 years agoAvoid a test failure of the intl-6 test on Cygwin.
Bruno Haible [Wed, 25 Aug 2021 18:50:34 +0000 (20:50 +0200)] 
Avoid a test failure of the intl-6 test on Cygwin.

* gettext-tools/tests/intl-6: On Cygwin, test only the LOCALE_FR_UTF8, not the
LOCALE_FR locale.

2 years agoAdd comment about test failures on Cygwin.
Bruno Haible [Sat, 1 Aug 2020 16:31:23 +0000 (18:31 +0200)] 
Add comment about test failures on Cygwin.

* gettext-tools/tests/msginit-3: Add comment about a possible test failure.
* gettext-tools/tests/msginit-4: Likewise.

2 years agolibtextstyle: Fix a comment.
Bruno Haible [Sun, 30 Jan 2022 20:19:38 +0000 (21:19 +0100)] 
libtextstyle: Fix a comment.

* libtextstyle/gnulib-local/lib/term-ostream.oo.c (term_ostream_create): Fix
typo in comment.

2 years agolibtextstyle: Consider setupterm return code.
Bruno Haible [Sun, 30 Jan 2022 17:46:21 +0000 (18:46 +0100)] 
libtextstyle: Consider setupterm return code.

* libtextstyle/gnulib-local/lib/term-ostream.oo.c (term_ostream_create): Don't
bother retrieving values if $TERM is an unknown terminal type.

2 years agolibtextstyle: Try harder to avoid buffer overflow.
Bruno Haible [Sun, 30 Jan 2022 10:21:45 +0000 (11:21 +0100)] 
libtextstyle: Try harder to avoid buffer overflow.

* libtextstyle/gnulib-local/lib/term-ostream.oo.c (term_ostream_create): Double
the size of termcapbuf and termentrybuf.

2 years agolibtextstyle: Fix comment.
Bruno Haible [Sun, 20 Jun 2021 11:49:47 +0000 (13:49 +0200)] 
libtextstyle: Fix comment.

* libtextstyle/lib/Makefile.am: Fix outdated comment.

2 years agolibtextstyle: Fix compilation error with cc on Solaris 10.
Bruno Haible [Sun, 20 Jun 2021 01:41:26 +0000 (03:41 +0200)] 
libtextstyle: Fix compilation error with cc on Solaris 10.

* gnulib-local/lib/libxml/timsort.h: Use 'inline' instead of '__inline'.

2 years agolibtextstyle: Fix build in locales other than the C locale (regression 2021-04-07).
Bruno Haible [Sun, 20 Jun 2021 01:41:45 +0000 (03:41 +0200)] 
libtextstyle: Fix build in locales other than the C locale (regression 2021-04-07).

* libtextstyle/lib/Makefile.am (config.h): Invoke join-v-1 in the C locale.

2 years agolibtextstyle: Fix the set of exported symbols on Alpine Linux.
Bruno Haible [Tue, 6 Apr 2021 23:37:51 +0000 (01:37 +0200)] 
libtextstyle: Fix the set of exported symbols on Alpine Linux.

* libtextstyle/build-aux/join-v-1: New file, from GNU libunistring.
* libtextstyle/Makefile.am (EXTRA_DIST): Add it.
* libtextstyle/lib/Makefile.am (config.h): Use it instead of 'join -v 1'.

2 years agoFix build failure on AIX 7.
Bruno Haible [Tue, 15 Jun 2021 08:36:08 +0000 (10:36 +0200)] 
Fix build failure on AIX 7.

* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Require gl_LOCALE_H_DEFAULTS
before gt_INTL_THREAD_LOCALE_NAME.

2 years agoNEWS: Mention the Unicode standard update (work done in gnulib).
Bruno Haible [Mon, 12 Sep 2022 00:18:33 +0000 (02:18 +0200)] 
NEWS: Mention the Unicode standard update (work done in gnulib).

2 years agoUpdate NEWS.
Bruno Haible [Sun, 11 Sep 2022 23:51:39 +0000 (01:51 +0200)] 
Update NEWS.

* NEWS: Mention that a build failure on macOS 11/arm64 and a build failure on
Linux/powerpc64le with glibc 2.35 are now fixed (through gnulib).

2 years agoUpdate after gnulib changed: Fix link errors of gnulib tests on Windows.
Bruno Haible [Mon, 12 Sep 2022 21:45:02 +0000 (23:45 +0200)] 
Update after gnulib changed: Fix link errors of gnulib tests on Windows.

This avoids link errors of some tests in gnulib-tests on Cygwin and mingw
with --enable-shared.

* autogen.sh: Avoid the *-list-tests, since they reference a variable, leading
to a problem with --enable-shared.

2 years agoUpdate after gnulib changed: Fix link errors on MSVC.
Bruno Haible [Tue, 13 Sep 2022 12:26:20 +0000 (14:26 +0200)] 
Update after gnulib changed: Fix link errors on MSVC.

This fixes a link error on MSVC with --enable-shared.

* gettext-runtime/configure.ac: Define DLL_VARIABLE to empty always.

2 years agoUpdate after gnulib changed: Fix link errors on MSVC.
Bruno Haible [Mon, 12 Sep 2022 23:28:06 +0000 (01:28 +0200)] 
Update after gnulib changed: Fix link errors on MSVC.

* gettext-runtime/configure.ac: For the expansion of DLL_VARIABLE, test
WOE32DLL, not _DLL.
* gettext-tools/configure.ac: Set the module indicator variable
GL_GTPO_GNULIB_VFPRINTF to 0.

2 years agoUpdate after gnulib changed: Fix link errors of gettextpo-1-prg on mingw.
Bruno Haible [Mon, 12 Sep 2022 21:44:17 +0000 (23:44 +0200)] 
Update after gnulib changed: Fix link errors of gettextpo-1-prg on mingw.

* gettext-tools/configure.ac: Set the module indicator variables
GL_GTPO_GNULIB_{PUTC,FPUTC,FPUTS,FWRITE,FPRINTF} to 0.
* gettext-tools/libgettextpo/Makefile.am (config.h): Undefine REPLACE_FCHDIR
that is defined in the parent config.h.

2 years agobuild: Fix build failure on Cygwin and mingw.
Michele Locati [Thu, 30 Jul 2020 16:58:02 +0000 (18:58 +0200)] 
build: Fix build failure on Cygwin and mingw.

* gettext-tools/woe32dll/gettextsrc-exports.c: Export formatstring_ruby.

2 years agoFix build error on Solaris 11 in 32-bit mode.
Bruno Haible [Tue, 28 Jul 2020 17:52:13 +0000 (19:52 +0200)] 
Fix build error on Solaris 11 in 32-bit mode.

This fixes a compilation error on Solaris 11.3 (both x86_64 and SPARC,
both with gcc and cc) in 32-bit mode.

Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp> in
<https://lists.gnu.org/archive/html/bug-gettext/2020-07/msg00034.html>.

* gnulib-local/lib/getopt-core.h.diff: Don't include <config.h> if it has
already been included. This fixes the compilation of vma-iter.c.

2 years agoUpdate after gnulib changed.
Bruno Haible [Sun, 20 Dec 2020 22:42:14 +0000 (23:42 +0100)] 
Update after gnulib changed.

This fixes a compilation error e.g. on FreeBSD and AIX.

* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC, GNULIB_MODULES_LIBGETTEXTPO): Add
'free-posix'.
* gnulib-local/lib/libxml/parser.in.h: Include <stdlib.h>.
* gettext-tools/src/format.h: Likewise.
* gettext-tools/tests/gettextpo-1-prg.c: Undefine free.

2 years agoUpdate after gnulib changed.
Bruno Haible [Mon, 12 Sep 2022 00:47:22 +0000 (02:47 +0200)] 
Update after gnulib changed.

Previously, different gnulib-tool invocations within the scope of the same
configure.ac interfered with each other (through the GNULIB_* indicator macros,
used in the generated .h files), and libgrep relied on it. Now, each gnulib-tool
invocation needs its own copy of the generated .h files, in particular locale.h.
Needed for the localeconv() override on native Windows.

* autogen.sh: When invoking gnulib-tool for libgrep, don't avoid 'locale' and
the other header file modules.
* gettext-tools/configure.ac: Set GL_GRGL_GNULIB_SETLOCALE_NULL to 1.

2 years agoUpdate after gnulib changed on 2017-06-17.
Bruno Haible [Sun, 4 Apr 2021 11:46:34 +0000 (13:46 +0200)] 
Update after gnulib changed on 2017-06-17.

* gnulib-local/lib/diffseq.h.diff: Remove file.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove it.

2 years agoUpdate after gnulib changed.
Bruno Haible [Thu, 7 Jan 2021 22:15:05 +0000 (23:15 +0100)] 
Update after gnulib changed.

* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Test
gt_localename_enhances_locale_funcs instead of gt_nameless_locales. Set
ENHANCE_LOCALE_FUNCS, not HAVE_NAMELESS_LOCALES.
* gettext-runtime/intl/Makefile.am (libgnuintl.h, libintl.h): Substitute
ENHANCE_LOCALE_FUNCS, not HAVE_NAMELESS_LOCALES.
* gettext-runtime/intl/libgnuintl.in.h: Test ENHANCE_LOCALE_FUNCS, not
HAVE_NAMELESS_LOCALES.

2 years agoUpdate after gnulib changed.
Bruno Haible [Sun, 20 Jun 2021 01:44:25 +0000 (03:44 +0200)] 
Update after gnulib changed.

* libtextstyle/configure.ac: Update for changed naming convention of module
indicator variables.

2 years agoUpdate after gnulib changed.
Bruno Haible [Fri, 25 Dec 2020 18:25:13 +0000 (19:25 +0100)] 
Update after gnulib changed.

* libtextstyle/configure.ac: Set GNULIB_MDA_ISATTY. This fixes a link error on
native Windows.

2 years agoUpdate after gnulib changed.
Bruno Haible [Sun, 2 Jan 2022 14:43:41 +0000 (15:43 +0100)] 
Update after gnulib changed.

* gettext-tools/tests/msgcat-17: Update test for changed libunistring line
breaking behaviour.
* gettext-tools/tests/msgfilter-sr-latin-1: Likewise.
* gettext-tools/tests/msgmerge-11: Likewise.
* gettext-tools/tests/xgettext-python-1: Likewise.

2 years agoUpdate after gnulib changed.
Bruno Haible [Sun, 11 Sep 2022 15:56:11 +0000 (17:56 +0200)] 
Update after gnulib changed.

* gettext-tools/po/POTFILES.in: Update.

2 years agoUse xalloc module from gnulib.
Bruno Haible [Sun, 4 Apr 2021 14:01:02 +0000 (16:01 +0200)] 
Use xalloc module from gnulib.

* gnulib-local/lib/xalloc.h: Remove file.
* gnulib-local/lib/xmalloc.c: Remove file.
* gnulib-local/lib/xstrdup.c: Remove file.
* gnulib-local/modules/xalloc: Remove file.
* gnulib-local/modules/xalloc-die: Remove file.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove them.
* libtextstyle/lib/misc.c (xmalloc_exit_failure): Remove declaration.
(libtextstyle_set_failure_exit_code): Don't set xmalloc_exit_failure.

2 years agoUpdate after gnulib changed.
Bruno Haible [Sat, 12 Dec 2020 12:30:15 +0000 (13:30 +0100)] 
Update after gnulib changed.

* gettext-tools/src/read-csharp.c (execute_and_read_po_output): Does not need
write access to the elements of prog_argv.
* gettext-tools/src/read-java.c (execute_and_read_po_output): Likewise.
* gettext-tools/src/read-resources.c (execute_and_read_po_output): Likewise.
* gettext-tools/src/write-resources.c (execute_writing_input): Likewise.
* gettext-tools/src/urlget.c (execute_it): Likewise.
(fetch): Update variable types and remove casts to 'char *'.
* gettext-tools/src/msginit.c (project_id, project_id_version, get_user_email,
language_team_address, plural_forms): Likewise.
* gettext-tools/src/read-tcl.c (msgdomain_read_tcl): Likewise.
* gettext-tools/src/x-ruby.c (extract_ruby): Likewise.
* gettext-tools/src/msgexec.c (sub_argv): Change type to 'const char **'.
(main): Remove casts to 'char *'.

2 years agoUpdate after gnulib changed.
Bruno Haible [Wed, 2 Dec 2020 18:49:40 +0000 (19:49 +0100)] 
Update after gnulib changed.

* gettext-tools/src/urlget.c (execute_it, fetch): Update 'execute' invocations.
* gettext-tools/src/msginit.c (project_id, project_id_version, get_user_email,
language_team_address, plural_forms): Update create_pipe_in invocations.
* gettext-tools/src/read-csharp.c (execute_and_read_po_output): Likewise.
* gettext-tools/src/read-java.c (execute_and_read_po_output): Likewise.
* gettext-tools/src/read-resources.c (execute_and_read_po_output): Likewise.
* gettext-tools/src/read-tcl.c (msgdomain_read_tcl): Likewise.
* gettext-tools/src/x-ruby.c (extract_ruby): Likewise.
* gettext-tools/src/msgexec.c (process_string): Update create_pipe_out
invocation.
* gettext-tools/src/write-resources.c (execute_writing_input): Likewise.

2 years agoUpdate after gnulib changed.
Bruno Haible [Mon, 12 Oct 2020 00:09:10 +0000 (02:09 +0200)] 
Update after gnulib changed.

* autogen.sh: Don't copy attribute.h, as it would have the wrong copyright header.
* gettext-runtime/intl/attribute.h: New file, from gnulib.
* gettext-runtime/intl/thread-optim.h: New file, from gnulib.
* gettext-runtime/intl/Makefile.am (EXTRA_DIST): Add thread-optim.h.
* Makefile.am (distcheck-hook): Check also thread-optim.h.

2 years agoUpdate after gnulib changed.
Bruno Haible [Sun, 11 Sep 2022 14:58:48 +0000 (16:58 +0200)] 
Update after gnulib changed.

2 years agoUpdate after gnulib changed.
Bruno Haible [Sun, 11 Sep 2022 14:20:56 +0000 (16:20 +0200)] 
Update after gnulib changed.

* gettext-runtime/intl/arg-nonnull.h: Update from gnulib.
* gettext-runtime/intl/localename.c: Likewise.
* gettext-runtime/intl/lock.h: Likewise.
* gettext-runtime/intl/relocatable.c: Likewise.
* gettext-runtime/intl/relocatable.h: Likewise.
* gettext-runtime/intl/threadlib.c: Likewise.
* gettext-runtime/intl/vasnprintf.c: Likewise.
* gettext-runtime/intl/verify.h: Likewise.
* gettext-runtime/intl/xsize.h: Likewise.
* gettext-runtime/libasprintf/vasnprintf.c: Likewise.
* gettext-runtime/m4/fcntl-o.m4: Likewise.
* gettext-runtime/m4/iconv.m4: Likewise.
* gettext-runtime/m4/flexmember.m4: Update copyright years.
* gettext-runtime/m4/intlmacosx.m4: Likewise.
* gettext-runtime/m4/inttypes_h.m4: Likewise.
* gettext-runtime/m4/nls.m4: Likewise.
* gettext-runtime/m4/po.m4: Likewise.
* gettext-runtime/m4/progtest.m4: Likewise.
* gettext-runtime/m4/size_max.m4: Likewise.
* gettext-runtime/m4/stdint_h.m4: Likewise.
* gettext-runtime/m4/xsize.m4: Likewise.
* Makefile.am (distcheck-hook): Update.

2 years agoUpdate after gnulib changed.
Bruno Haible [Sun, 18 Oct 2020 11:52:32 +0000 (13:52 +0200)] 
Update after gnulib changed.

* gnulib-local/lib/hash.h.diff: Update.
* gnulib-local/lib/hash.c.diff: Likewise.

2 years agoUpdate after gnulib changed.
Bruno Haible [Sun, 6 Sep 2020 10:04:35 +0000 (12:04 +0200)] 
Update after gnulib changed.

* configure.ac (AC_PREREQ): Bump minimum Autoconf version to 2.64.
* gettext-runtime/configure.ac (AC_PREREQ): Likewise.
* gettext-runtime/libasprintf/configure.ac (AC_PREREQ): Likewise.
* libtextstyle/configure.ac (AC_PREREQ): Likewise.
* gettext-tools/configure.ac (AC_PREREQ): Likewise.
* gettext-tools/examples/configure.ac (AC_PREREQ): Likewise.

2 years agoUpdate to gnulib stable-202201 branch.
Bruno Haible [Sun, 11 Sep 2022 12:40:55 +0000 (14:40 +0200)] 
Update to gnulib stable-202201 branch.

2 years agobuild: Restore the ability to run "make check".
Bruno Haible [Sun, 11 Sep 2022 17:01:14 +0000 (19:01 +0200)] 
build: Restore the ability to run "make check".

* cfg.mk (gl_public_submodule_commit): Define to empty.

2 years agoUpgrade to libtool 2.4.7.
Bruno Haible [Sun, 15 May 2022 22:00:04 +0000 (00:00 +0200)] 
Upgrade to libtool 2.4.7.

* m4/libtool.m4: Update from libtool-2.4.7, with modifications.
2017-10-21  Bruno Haible  <bruno@clisp.org>
Fix -export-symbols and -export-symbols-regex support on Solaris 11.3.
* m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Adjust symcode for Solaris.
* m4/ltoptions.m4: Likewise.
* m4/ltsugar.m4: Likewise.
* m4/ltversion.m4: Likewise.
* m4/lt~obsolete.m4: Likewise.
* build-aux/ltmain.sh: Likewise.

2 years agoSupport creating shared libraries on MidnightBSD.
Bruno Haible [Sun, 21 Feb 2021 01:30:09 +0000 (02:30 +0100)] 
Support creating shared libraries on MidnightBSD.

Patch from <https://savannah.gnu.org/patch/?10007>.

* m4/libtool.m4: Treat MidnightBSD like FreeBSD.
* build-aux/ltmain.sh: Likewise.

2 years agoFix -export-symbols and -export-symbols-regex support on Solaris 11.3.
Bruno Haible [Tue, 28 Jul 2020 17:43:57 +0000 (19:43 +0200)] 
Fix -export-symbols and -export-symbols-regex support on Solaris 11.3.

Apply fix from <https://savannah.gnu.org/patch/?9467>.

On Solaris 11.3 (as opposed to Solaris 11.0), the output of /usr/bin/nm -p
on object files contains, for global variables without initializer, the
letter 'C' (it was 'D' in Solaris 11.0).

* m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Adjust symcode for Solaris.

2 years agoSwitch to autoconf-2.71.
Bruno Haible [Sun, 21 Feb 2021 01:28:40 +0000 (02:28 +0100)] 
Switch to autoconf-2.71.

* libtextstyle/autogen.sh: Update comments.

2 years agobuild: Allow building with Autoconf 2.70.
Bruno Haible [Wed, 9 Dec 2020 20:43:31 +0000 (21:43 +0100)] 
build: Allow building with Autoconf 2.70.

* libtextstyle/autogen.sh: Update comment.

2 years agobuild: Assume ANSI C declaration of 'setlocale'.
Bruno Haible [Sun, 4 Oct 2020 21:40:53 +0000 (23:40 +0200)] 
build: Assume ANSI C declaration of 'setlocale'.

* gettext-tools/tests/setlocale.c (setlocale): Assume SETLOCALE_CONST is
'const'.
* gettext-tools/tests/format-c-3-prg.c: Likewise.
* gettext-tools/tests/format-c-4-prg.c: Likewise.
* gettext-tools/tests/plural-1-prg.c: Likewise.
* gettext-tools/tests/tstgettext.c: Likewise.
* gettext-tools/tests/tstngettext.c: Likewise.
* gettext-tools/configure.ac: Don't invoke gt_SETLOCALE.
* gettext-tools/m4/setlocale.m4: Remove file.
* gettext-tools/m4/Makefile.am (EXTRA_DIST): Remove it.

2 years agobuild: Fix warnings emitted by autoconf-2.69d.
Bruno Haible [Sat, 14 Nov 2020 13:53:19 +0000 (14:53 +0100)] 
build: Fix warnings emitted by autoconf-2.69d.

* gettext-tools/configure.ac: Use AC_LINK_IFELSE instead of AC_TRY_LINK. Don't
invoke AC_FUNC_VFORK.
* gettext-tools/m4/exported.m4 (gt_GLOBAL_SYMBOL_PIPE): Require LT_PATH_NM
instead of AC_PROG_NM.
* gnulib-local/m4/libxml.m4 (gl_LIBXML): Use AC_LINK_IFELSE instead of
AC_TRY_LINK. Use AC_PREPROC_IFELSE instead of AC_TRY_CPP.
* libtextstyle/configure.ac: Use AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER.
* libtextstyle/gnulib-local/m4/libcroco.m4 (gl_LIBCROCO): Use AC_LINK_IFELSE
instead of AC_TRY_LINK.
* libtextstyle/gnulib-local/m4/libglib.m4 (gl_LIBGLIB): Use AC_LINK_IFELSE
instead of AC_TRY_LINK. Require AC_USE_SYSTEM_EXTENSIONS instead of AC_GNU_SOURCE.
* libtextstyle/gnulib-local/m4/termcap.m4 (gl_TERMCAP_BODY): Use AC_LINK_IFELSE
instead of AC_TRY_LINK.
* libtextstyle/gnulib-local/m4/terminfo.m4 (gl_TERMINFO_BODY): Use
AC_LINK_IFELSE instead of AC_TRY_LINK.
* m4/woe32-dll.m4 (gl_WOE32_DLL): Use AC_LINK_IFELSE instead of AC_TRY_LINK.

2 years agobuild: Add support for clang on Windows.
Bruno Haible [Sun, 6 Sep 2020 09:48:45 +0000 (11:48 +0200)] 
build: Add support for clang on Windows.

* m4/woe32-dll.m4 (gl_WOE32_DLL): Set gl_cv_ld_autoimport to 'no' on
MSVC and MSVC/clang.

2 years agobuild: Modernize autoconf macros.
Bruno Haible [Sun, 4 Oct 2020 21:44:52 +0000 (23:44 +0200)] 
build: Modernize autoconf macros.

* gettext-runtime/m4/intdiv0.m4 (gt_INTDIV0): Improve m4 quoting.
* gettext-runtime/m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Improve indentation.
* gettext-tools/m4/hostname.m4 (gt_PREREQ_HOSTNAME): Improve m4 quoting. Use
AC_CACHE_CHECK and AC_COMPILE_IFELSE.
* gettext-tools/m4/siginfo.m4 (gt_SIGINFO): Improve m4 quoting. Use
AC_COMPILE_IFELSE.

2 years agoPrefer documented autoconf macro 'm4_if' over 'ifelse'.
Bruno Haible [Sat, 1 Aug 2020 20:43:45 +0000 (22:43 +0200)] 
Prefer documented autoconf macro 'm4_if' over 'ifelse'.

* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Use m4_if instead of ifelse.
* gettext-runtime/m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.

2 years agolibtextstyle: Clarify rationale for gl_INIT_PACKAGE.
Bruno Haible [Tue, 7 Dec 2021 20:13:43 +0000 (21:13 +0100)] 
libtextstyle: Clarify rationale for gl_INIT_PACKAGE.

* libtextstyle/m4/init-package-version.m4: Add more comments.