]> Savannah Git Hosting - gnulib.git/log
gnulib.git
13 months agognulib-tool.py: Add missing quotation mark to reminder.
Collin Funk [Mon, 1 Apr 2024 00:41:03 +0000 (17:41 -0700)]
gnulib-tool.py: Add missing quotation mark to reminder.

* pygnulib/GLImport.py (GLImport.execute): Add missing end quote around
file name in AC_CONFIG_FILES reminder.

13 months agoquotearg: Improve documentation.
Bruno Haible [Sun, 31 Mar 2024 20:56:14 +0000 (22:56 +0200)]
quotearg: Improve documentation.

* lib/quotearg.h: Refer to specification of $'...' syntax. Document a
limitation of QA_ELIDE_OUTER_QUOTES.

13 months agocanonicalize[-lgpl] tests: Fix test failure on musl libc.
Bruno Haible [Sun, 31 Mar 2024 19:31:34 +0000 (21:31 +0200)]
canonicalize[-lgpl] tests: Fix test failure on musl libc.

Reported by Adept's Lab <adeptslab@gmail.com> via Pádraig Brady at
<https://lists.gnu.org/archive/html/bug-coreutils/2024-03/msg00086.html>.

* tests/test-canonicalize-lgpl.c (main): Don't special-case "//"
handling for musl libc.
* tests/test-canonicalize.c (main): Likewise.
* modules/canonicalize-lgpl-tests (Files): Remove m4/musl.m4.
(configure.ac): Don't invoke gl_MUSL_LIBC.

13 months agognulib-tool.py: Fix output of 'po/LINGUAS'.
Collin Funk [Sun, 31 Mar 2024 05:38:48 +0000 (22:38 -0700)]
gnulib-tool.py: Fix output of 'po/LINGUAS'.

* pygnulib/GLImport.py (GLImport.execute): Only use PO files when
determining the output for po/LINGUAS.

13 months agognulib-tool.py: Fix sorting of modules when --local-dir is used.
Collin Funk [Sun, 31 Mar 2024 03:51:22 +0000 (20:51 -0700)]
gnulib-tool.py: Fix sorting of modules when --local-dir is used.

* pygnulib/GLModuleSystem.py (GLModule.__eq__, GLModule.__ne__)
(GLModule.__ge__, GLModule.__gt__, GLModule.__hash__, GLModule.__le__)
(GLModule.__lt__): Use module names as identifiers instead of paths.

13 months agognulib-tool.py: Make a module's name immediately accessible.
Bruno Haible [Sun, 31 Mar 2024 12:00:48 +0000 (14:00 +0200)]
gnulib-tool.py: Make a module's name immediately accessible.

* pygnulib/GLModuleSystem.py (GLModuleSystem.find): Pass the module name
to the GLModule constructor.
(GLModule.__init__): Accept the module's name as argument and store it.
(GLModule.getName): Simplify.

13 months agognulib-tool.py: Don't discard the 'dummy' module.
Collin Funk [Sat, 30 Mar 2024 10:23:46 +0000 (03:23 -0700)]
gnulib-tool.py: Don't discard the 'dummy' module.

* pygnulib/GLImport.py (GLImport.prepare): Don't set modules stored in
the GLModuleTable until after the 'dummy' module is added.
* pygnulib/GLModuleSystem.py (GLImport.setBaseModules)
(GLImport.setFinalModules, GLImport.setMainModules)
(GLImport.setTestsModules): Don't sort modules since the 'dummy' module
should be placed last in the Makefiles.

13 months agognulib-tool.py: Fix reading of 'gl_VC_FILES' in gnulib-cache.m4.
Collin Funk [Sat, 30 Mar 2024 03:15:24 +0000 (20:15 -0700)]
gnulib-tool.py: Fix reading of 'gl_VC_FILES' in gnulib-cache.m4.

* pygnulib/GLImport.py (GLImport.__init__): Check for an empty string
explicitly in conditional so False is not ignored.

13 months agotime_r tests: Avoid misleading skip message on native Windows.
Bruno Haible [Sat, 30 Mar 2024 21:50:39 +0000 (22:50 +0100)]
time_r tests: Avoid misleading skip message on native Windows.

* tests/test-localtime_r.c (main): Use the macro FRENCH_TZ.
* tests/test-localtime_r-mt.c (main): Likewise.

13 months agotime_r-tests: skip French tests if no Europe/Paris
Paul Eggert [Sat, 30 Mar 2024 19:28:01 +0000 (13:28 -0600)]
time_r-tests: skip French tests if no Europe/Paris

* tests/test-localtime_r.c (main):
* tests/test-localtime_r-mt.c (main):
If TZ='Europe/Paris' does not work, skip these tests.

13 months agointprops: pacify GCC < 10 -Wsign-compare
Paul Eggert [Fri, 29 Mar 2024 22:56:45 +0000 (15:56 -0700)]
intprops: pacify GCC < 10 -Wsign-compare

Problem reported by Martin Dorey in:
https://savannah.gnu.org/bugs/index.php?65537
* lib/intprops-internal.h (_GL_INT_MULTIPLY_WRAPV):
When working around GCC bug 91450, pacify -Wsign-compare by
casting 0 to the result type.

13 months agognulib-tool: Use bold output on Linux, NetBSD, OpenBSD, OmniOS consoles.
Bruno Haible [Fri, 29 Mar 2024 21:48:37 +0000 (22:48 +0100)]
gnulib-tool: Use bold output on Linux, NetBSD, OpenBSD, OmniOS consoles.

Reported by Pádraig Brady in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-03/msg00399.html>.

* gnulib-tool.sh (func_show_module_list): Use 'tput' to determine the
"bold" capability of terminal types other than xterm*.
* pygnulib/constants.py (get_terminfo_string, bold_escapes): New
functions.
* pygnulib/GLTestDir.py (GLTestDir.execute): Invoke
constants.bold_escapes.
* pygnulib/GLImport.py (GLImport.prepare): Likewise.

13 months agognulib-tool.py: Display specified modules in bold.
Collin Funk [Fri, 29 Mar 2024 13:09:20 +0000 (06:09 -0700)]
gnulib-tool.py: Display specified modules in bold.

* pygnulib/GLImport.py (GLImport.prepare): Detect terminals starting
with 'xterm'. Change hexadecimal numbers to octal, matching
gnulib-tool.sh.
* pygnulib/GLTestDir.py (GLTestDir.execute): Likewise.

13 months agoattribute: Work around compiler bug of Oracle cc 12.6.
Bruno Haible [Fri, 29 Mar 2024 13:35:01 +0000 (14:35 +0100)]
attribute: Work around compiler bug of Oracle cc 12.6.

* m4/gnulib-common.m4 (gl_COMMON_BODY): Expand _GL_ATTRIBUTE_PACKED to
empty on SunPRO C.

13 months agognulib-tool.py: Don't print Makefile.am edits that are already done.
Bruno Haible [Fri, 29 Mar 2024 11:14:21 +0000 (12:14 +0100)]
gnulib-tool.py: Don't print Makefile.am edits that are already done.

* pygnulib/GLMakefileTable.py (GLMakefileTable): Improve comments.
(GLMakefileTable.__getitem__): Do not clone the result.
* pygnulib/GLEmiter.py (GLEmiter.lib_Makefile_am, tests_Makefile_am):
Avoid a KeyError when testing for 'var'.
Use 'del' to remove a dictionary entry.
* pygnulib/GLImport.py (GLImport.execute): Avoid a KeyError when
testing for 'var'. Simplify loop over makefiletable.

13 months agofenv-exceptions-state-c99: Fix test failures with Oracle cc 12.6.
Bruno Haible [Fri, 29 Mar 2024 02:50:44 +0000 (03:50 +0100)]
fenv-exceptions-state-c99: Fix test failures with Oracle cc 12.6.

* lib/fenv-except-state-set.c (mask387cw): New function.
(fesetexceptflag): Use it on glibc.

13 months agomcel tests: Fix test failure with Oracle cc 12.6.
Bruno Haible [Fri, 29 Mar 2024 01:14:21 +0000 (02:14 +0100)]
mcel tests: Fix test failure with Oracle cc 12.6.

* tests/test-mcel.c (main): Explicitly return 0 at the end.

13 months agognulib-tool: Drop workarounds for Automake < 1.14.
Bruno Haible [Thu, 28 Mar 2024 22:33:56 +0000 (23:33 +0100)]
gnulib-tool: Drop workarounds for Automake < 1.14.

Reported by Collin Funk in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-03/msg00384.html>.

* gnulib-tool.sh (func_emit_lib_Makefile_am): Emit pkgdata_DATA
initialization always.
(func_emit_tests_Makefile_am): Likewise.
(func_import): Don't emit 'AC_REQUIRE([AM_PROG_CC_C_O])' into
gnulib-comp.m4.
(func_create_testdir): Don't emit AM_PROG_CC_C_O into configure.ac.
Bump required Automake version to 1.14.
(func_create_megatestdir): Bump required Automake version to 1.14.
* pygnulib/constants.py: Update comments.
* pygnulib/GLEmiter.py (GLEmiter.lib_Makefile_am): Emit pkgdata_DATA
initialization always. Don't return uses_subdirs.
(GLEmiter.tests_Makefile_am): Likewise.
* pygnulib/GLImport.py (GLImport.gnulib_comp): Don't emit
'AC_REQUIRE([AM_PROG_CC_C_O])'.
(GLImport.execute): Update.
* pygnulib/GLTestDir.py (GLTestDir.execute): Don't emit AM_PROG_CC_C_O
into configure.ac. Bump required Automake version to 1.14.
(GLMegaTestDir.execute): Bump required Automake version to 1.14.

13 months agopthread-h: Fix override of pthread_spinlock_t with non-GNU compilers.
Bruno Haible [Thu, 28 Mar 2024 21:05:39 +0000 (22:05 +0100)]
pthread-h: Fix override of pthread_spinlock_t with non-GNU compilers.

* m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Define through AC_DEFUN_ONCE.
Require gl_PTHREAD_H_DEFAULTS, not gl_PTHREAD_H.
* m4/pthread_h.m4 (gl_PTHREAD_H): Invoke gl_PTHREAD_SPIN.
* lib/pthread.in.h (pthread_spinlock_t,
GNULIB_defined_pthread_spin_types): Don't define if
HAVE_PTHREAD_SPIN_INIT && !REPLACE_PTHREAD_SPIN_INIT.
* modules/pthread-h (Files): Add m4/pthread-spin.m4.

13 months agohavelib: Recognize ELF platform despite SunPRO C on Linux.
Bruno Haible [Thu, 28 Mar 2024 16:50:55 +0000 (17:50 +0100)]
havelib: Recognize ELF platform despite SunPRO C on Linux.

* m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Recognize Linux as an ELF
platform, even with the SunPRO C compiler that does not define __ELF__.

13 months agognulib-tool.py: Fix missing 'gnulib-cache.m4' in EXTRA_DIST.
Collin Funk [Thu, 28 Mar 2024 09:40:46 +0000 (02:40 -0700)]
gnulib-tool.py: Fix missing 'gnulib-cache.m4' in EXTRA_DIST.

* pygnulib/GLMakefileTable.py (GLMakefileTable.parent): Fix the loop
condition so that it matches gnulib-tool.sh.

13 months agognulib-tool.py: Fix whitespace in gnulib-comp.m4.
Collin Funk [Thu, 28 Mar 2024 04:08:36 +0000 (21:08 -0700)]
gnulib-tool.py: Fix whitespace in gnulib-comp.m4.

* pygnulib/GLEmiter.py (GLEmiter.autoconfSnippet): Prefix each line with
the indentation string instead of using regular expressions.

13 months agognulib-tool.py: Update the gnulib-tool.py.TODO file.
Bruno Haible [Thu, 28 Mar 2024 03:41:21 +0000 (04:41 +0100)]
gnulib-tool.py: Update the gnulib-tool.py.TODO file.

* gnulib-tool.py.TODO: Add a suggestion by Collin Funk.

13 months agognulib-tool.py: Fix breakage that I introduced with Collin's last patch.
Bruno Haible [Thu, 28 Mar 2024 02:21:52 +0000 (03:21 +0100)]
gnulib-tool.py: Fix breakage that I introduced with Collin's last patch.

* pygnulib/GLFileSystem.py (GLFileAssistant.add_or_update): Correct the
open calls.

13 months agognulib-tool.py: Update the gnulib-tool.py.TODO file.
Bruno Haible [Thu, 28 Mar 2024 01:37:39 +0000 (02:37 +0100)]
gnulib-tool.py: Update the gnulib-tool.py.TODO file.

13 months agognulib-tool.py: Inline 'sed' invocations used on library files.
Collin Funk [Thu, 28 Mar 2024 00:39:58 +0000 (17:39 -0700)]
gnulib-tool.py: Inline 'sed' invocations used on library files.

* pygnulib/GLFileSystem.py (GLFileAssistant.__init__): Update type hints
and docstrings to reflect changes necessary for using re.sub() instead
of 'sed'.
(GLFileAssistant.add_or_update): Use re.sub() instead of invoking 'sed'.
* pygnulib/GLImport.py (GLImport.prepare): Update transformation
variables to reflect changes to GLFileAssistant.

13 months agoobstack: Work around ICE with Oracle cc 12.6 (regr. 2023-12-01).
Bruno Haible [Wed, 27 Mar 2024 20:34:40 +0000 (21:34 +0100)]
obstack: Work around ICE with Oracle cc 12.6 (regr. 2023-12-01).

* lib/obstack.in.h (__PTR_ALIGN): Use SMALL_PTRDIFF_T, instead of
testing sizeof (ptrdiff_t) < sizeof (void *) at compile time.
* m4/obstack.m4 (gl_FUNC_OBSTACK): Set SMALL_PTRDIFF_T.
* modules/obstack (Makefile.am): Substitute SMALL_PTRDIFF_T.

13 months agognulib-tool.py: Add type hints to all functions.
Collin Funk [Wed, 27 Mar 2024 07:56:29 +0000 (00:56 -0700)]
gnulib-tool.py: Add type hints to all functions.

* pygnulib/*.py: Add type hints and remove duplicate function signatures
from docstrings.

13 months agognulib-tool.py: Allow the use of both configure.ac and configure.in.
Collin Funk [Tue, 26 Mar 2024 22:43:21 +0000 (15:43 -0700)]
gnulib-tool.py: Allow the use of both configure.ac and configure.in.

* pygnulib/GLImport.py (GLImport.__init__): Remove redundant checks for
configure.ac and configure.in.
* pygnulib/main.py (main): Check for configure.ac and configure.in
before reading it. Pass it to GLImport using the GLConfig object.

13 months agogettime-res: Fix test failure on Solaris 11.4/SPARC.
Bruno Haible [Tue, 26 Mar 2024 11:12:23 +0000 (12:12 +0100)]
gettime-res: Fix test failure on Solaris 11.4/SPARC.

* lib/gettime-res.c (gettime_res): On Solaris/SPARC, just return 1 ns.

13 months agojit/cache: Fix a compilation error on Solaris 11.4/SPARC.
Bruno Haible [Tue, 26 Mar 2024 00:56:46 +0000 (01:56 +0100)]
jit/cache: Fix a compilation error on Solaris 11.4/SPARC.

* lib/jit/cache.h: On Solaris, include <stddef.h>.

13 months agognulib-tool.py: Print "executing mkdir ..." messages.
Bruno Haible [Mon, 25 Mar 2024 14:48:19 +0000 (15:48 +0100)]
gnulib-tool.py: Print "executing mkdir ..." messages.

* pygnulib/GLTestDir.py (GLTestDir.execute, GLMegaTestDir.execute):
Print a message before creating a 'build-aux' directory.

13 months agognulib-tool.py: Tweak last change.
Bruno Haible [Mon, 25 Mar 2024 12:44:24 +0000 (13:44 +0100)]
gnulib-tool.py: Tweak last change.

* pygnulib/GLImport.py (GLImport.execute): Recognize #if also at the
beginning of an Include snippet.

13 months agognulib-tool.py: Fix output of #include directive advice.
Collin Funk [Mon, 25 Mar 2024 08:56:24 +0000 (01:56 -0700)]
gnulib-tool.py: Fix output of #include directive advice.

* pygnulib/GLImport.py (GLImport.execute): Copy comment from
gnulib-tool.sh with modified variable names. Search the 'Include:' as a
whole instead of each individual line.

13 months agognulib-tool.py: Simplify last change.
Bruno Haible [Mon, 25 Mar 2024 12:19:53 +0000 (13:19 +0100)]
gnulib-tool.py: Simplify last change.

* pygnulib/GLImport.py (GLImport.execute): Remove unnecessary list to
set and set to list conversion.

13 months agognulib-tool.py: Fix "Creating directory" output.
Collin Funk [Mon, 25 Mar 2024 01:51:29 +0000 (18:51 -0700)]
gnulib-tool.py: Fix "Creating directory" output.

* pygnulib/GLImport.py (GLImport.execute): Reorder directories. Use
os.path.join instead of joinpath to avoid path normalization.

13 months agognulib-tool.py: Tweak last change.
Bruno Haible [Mon, 25 Mar 2024 11:53:34 +0000 (12:53 +0100)]
gnulib-tool.py: Tweak last change.

* pygnulib/GLImport.py (GLImport._update_ignorelist_): Rename some local
variables. Use rstrip built-in function.

13 months agognulib-tool.py: Handle removed files in the vc ignore files.
Collin Funk [Mon, 25 Mar 2024 05:20:15 +0000 (22:20 -0700)]
gnulib-tool.py: Handle removed files in the vc ignore files.

* pygnulib/GLImport.py (GLImport._update_ignorelist_): Handle removed
files. Check whether the original lines should be removed too.

13 months agognulib-tool.py: Fix filetable construction for ignorelist.
Collin Funk [Sun, 24 Mar 2024 23:09:34 +0000 (16:09 -0700)]
gnulib-tool.py: Fix filetable construction for ignorelist.

* pygnulib/GLImport.py (GLImport.execute): Fix typo in dictionary key
that overwrites removed files. Sort ignorelist by directory.

13 months agognulib-tool.py: Use Python raw strings for regular expressions.
Bruno Haible [Sun, 24 Mar 2024 23:07:49 +0000 (00:07 +0100)]
gnulib-tool.py: Use Python raw strings for regular expressions.

* pygnulib/*.py: Use raw string syntax for regular expression pattern
strings and repl strings.

13 months agognulib-tool.py: Bring the output into the right order.
Bruno Haible [Sun, 24 Mar 2024 21:46:44 +0000 (22:46 +0100)]
gnulib-tool.py: Bring the output into the right order.

* pygnulib/constants.py (force_output): New function.
(execute): Flush stdout after printing the "executing ..." line.
* pygnulib/GLTestDir.py (GLTestDir.execute, GLMegaTestDir.execute):
Invoke force_output.
* pygnulib/main.py (test, megatest): Likewise.

13 months agonstrtime, c-nstrftime: Fix %c directive's result on glibc ≤ 2.30.
Bruno Haible [Sun, 24 Mar 2024 18:23:47 +0000 (19:23 +0100)]
nstrtime, c-nstrftime: Fix %c directive's result on glibc ≤ 2.30.

* lib/strftime.c (__strftime_internal): On glibc ≤ 2.30, like on NetBSD
and Solaris, remove the last word of the %c directive's result if it
looks like a time zone.
* doc/posix-functions/strftime.texi: Update platforms list.

13 months agognulib-tool.py: Fix output of notices.
Bruno Haible [Sun, 24 Mar 2024 11:06:50 +0000 (12:06 +0100)]
gnulib-tool.py: Fix output of notices.

* pygnulib/GLTestDir.py (GLTestDir.execute): Don't print notices if the
verbosity is < -1. Strip newlines from each notice.
* pygnulib/GLImport.py (GLImport.prepare): Don't print notices if the
verbosity is < -1. Strip only newlines, not spaces.

13 months agognulib-tool.py: Fix the modules indentation in --create-testdir' output.
Bruno Haible [Sun, 24 Mar 2024 02:18:24 +0000 (03:18 +0100)]
gnulib-tool.py: Fix the modules indentation in --create-testdir' output.

* pygnulib/GLTestDir.py (GLTestDir.execute): Use specified_modules
instead of self.config.getModules(), since the latter may be empty.

13 months agognulib-tool.sh: Use a default auxdir in --extract-automake-snippet.
Bruno Haible [Sun, 24 Mar 2024 00:37:30 +0000 (01:37 +0100)]
gnulib-tool.sh: Use a default auxdir in --extract-automake-snippet.

* gnulib-tool.sh (extract-automake-snippet): Set auxdir to 'build-aux'
if it is not set.

13 months agognulib-tool.py: Don't unnecessarily sort an EXTRA_DIST augmentation.
Bruno Haible [Sun, 24 Mar 2024 00:28:49 +0000 (01:28 +0100)]
gnulib-tool.py: Don't unnecessarily sort an EXTRA_DIST augmentation.

* pygnulib/GLModuleSystem.py
(GLModule.getAutomakeSnippet_Unconditional): Don't remove duplicates or
sort the filenames in the EXTRA_lib_SOURCES augmentation or the
EXTRA_DIST augmentation for build-aux.

13 months agognulib-tool.py: Don't print Python bools in gnulib-cache.m4.
Collin Funk [Sat, 23 Mar 2024 19:55:58 +0000 (12:55 -0700)]
gnulib-tool.py: Don't print Python bools in gnulib-cache.m4.

* pygnulib/GLImport.py (GLImport.gnulib_cache): Convert Python bools to
lowercase before printing.

13 months agognulib-tool.py: Don't unnecessarily run configure && make in testdirs.
Bruno Haible [Sat, 23 Mar 2024 18:17:59 +0000 (19:17 +0100)]
gnulib-tool.py: Don't unnecessarily run configure && make in testdirs.

* pygnulib/GLTestDir.py (GLTestDir.execute): Correct the value of
tests_distributed_built_sources.

13 months agognulib-tool.py: Fix autoconf snippets inclusion if --single-configure.
Bruno Haible [Sat, 23 Mar 2024 17:54:19 +0000 (18:54 +0100)]
gnulib-tool.py: Fix autoconf snippets inclusion if --single-configure.

* pygnulib/GLTestDir.py (GLTestDir.execute): Correct the arguments
passed to autoconfSnippets.

13 months agognulib-tool.py: Produce same diagnostics regardless of Automake version.
Bruno Haible [Sat, 23 Mar 2024 17:10:13 +0000 (18:10 +0100)]
gnulib-tool.py: Produce same diagnostics regardless of Automake version.

* pygnulib/GLTestDir.py (_patch_test_driver): Suppress the diagnostics
from 'patch', and instead provide our own diagnostics.

13 months agognulib-tool.py: Print "executing touch config.h.in".
Bruno Haible [Sat, 23 Mar 2024 16:53:36 +0000 (17:53 +0100)]
gnulib-tool.py: Print "executing touch config.h.in".

* pygnulib/GLTestDir.py (GLTestDir.execute): Print
"executing touch config.h.in", like gnulib-tool.sh does.

13 months agognulib-tool.py: Update the gnulib-tool.py.TODO file.
Bruno Haible [Sat, 23 Mar 2024 15:29:17 +0000 (16:29 +0100)]
gnulib-tool.py: Update the gnulib-tool.py.TODO file.

13 months agognulib-tool.py: Refactor.
Bruno Haible [Sat, 23 Mar 2024 10:20:29 +0000 (11:20 +0100)]
gnulib-tool.py: Refactor.

* pygnulib/GLImport.py (GLImport._done_dir_,
GLImport._update_ignorelist_, GLImport.execute): Rename some variables.
(GLImport._update_ignorelist_): Use constants.substart.

13 months agognulib-tool.py: Follow gnulib-tool changes, part 69.
Collin Funk [Sat, 23 Mar 2024 02:43:41 +0000 (19:43 -0700)]
gnulib-tool.py: Follow gnulib-tool changes, part 69.

Follow gnulib-tool change
2012-08-19  Bruno Haible  <bruno@clisp.org>
gnulib-tool: Remove old file names from .cvsignore, .gitignore.

* pygnulib/GLImport.py (GLImport._update_ignorelist_): Add
gnulib-comp.m4 to the added file list.
(GLImport.execute): Remove unused variables. Use sets to match the
'join' invocations in gnulib-tool.sh.

13 months agognulib-tool.py: Don't remove newlines in testdir's Automake snippets.
Collin Funk [Fri, 22 Mar 2024 19:57:01 +0000 (12:57 -0700)]
gnulib-tool.py: Don't remove newlines in testdir's Automake snippets.

* pygnulib/GLTestDir.py (GLTestDir.execute): Don't strip newlines from
Automake snippets.

13 months agognulib-tool.py: Fix empty newline output in test directories.
Collin Funk [Fri, 22 Mar 2024 19:19:28 +0000 (12:19 -0700)]
gnulib-tool.py: Fix empty newline output in test directories.

* pygnulib/GLTestDir.py (GLTestDir.execute, GLMegaTestDir.execute):
Match newlines printed by gnulib-tool.sh.

13 months agognulib-tool.py: Fix unconditional Automake snippets for non-tests.
Collin Funk [Fri, 22 Mar 2024 09:15:24 +0000 (02:15 -0700)]
gnulib-tool.py: Fix unconditional Automake snippets for non-tests.

* pygnulib/GLModuleSystem.py
(GLModule.getAutomakeSnippet_Unconditional): Fix the file lookups used
to determine the EXTRA_DIST and EXTRA_lib_SOURCES Automake variables.
Update comment to match gnulib-tool.sh.
* pygnulib/constants.py (filter_filelist): Fix misleading return type in
docstring. Return an empty string if no files were found.

13 months agognulib-tool.sh: Produce same diagnostics regardless of Automake version.
Bruno Haible [Fri, 22 Mar 2024 15:27:15 +0000 (16:27 +0100)]
gnulib-tool.sh: Produce same diagnostics regardless of Automake version.

* gnulib-tool.sh (func_create_testdir, func_create_megatestdir):
Suppress the diagnostics from 'patch', and instead provide our own
diagnostics.

13 months agognulib-tool: Remove test-driver.{orig,rej} if patching succeeded.
Bruno Haible [Fri, 22 Mar 2024 15:10:29 +0000 (16:10 +0100)]
gnulib-tool: Remove test-driver.{orig,rej} if patching succeeded.

* gnulib-tool.sh (func_create_testdir, func_create_megatestdir): After
a 'patch' command failed, remove the leftover files test-driver.orig and
test-driver.rej.
* pygnulib/GLTestDir.py (_patch_test_driver): Likewise.

13 months agognulib-tool.py: Fix an error in --create-testdir.
Bruno Haible [Fri, 22 Mar 2024 15:01:39 +0000 (16:01 +0100)]
gnulib-tool.py: Fix an error in --create-testdir.

* pygnulib/GLTestDir.py (GLTestDir.execute): Fix chdir calls at the end.

13 months agognulib-tool.sh: Avoid a redundant space in gl_AVOID in gnulib-cache.m4.
Collin Funk [Fri, 22 Mar 2024 01:55:21 +0000 (02:55 +0100)]
gnulib-tool.sh: Avoid a redundant space in gl_AVOID in gnulib-cache.m4.

* gnulib-tool.sh (avoidlist): Don't add a space before the first module
name.

13 months agognulib-tool.py: Fix --extract-recursive-link-directive.
Collin Funk [Thu, 21 Mar 2024 02:07:50 +0000 (19:07 -0700)]
gnulib-tool.py: Fix --extract-recursive-link-directive.

* pygnulib/GLModuleSystem.py (GLModule.getLinkDirectiveRecursively):
Check the 'Link:' section of each individual module. Use sets instead of
lists to remove duplicates.

13 months agognulib-tool.py: Make --extract-filelist match gnulib-tool.sh.
Collin Funk [Thu, 21 Mar 2024 00:51:55 +0000 (17:51 -0700)]
gnulib-tool.py: Make --extract-filelist match gnulib-tool.sh.

* pygnulib/GLModuleSystem.py (GLModule.getFiles_Raw): New function which
returns the 'Files:' section from a module unchanged.
(GLModule.getFiles): Use it.
* pygnulib/main.py (main): Use it and match the output of gnulib-tool.sh
for --extract-filelist.

13 months agognulib-tool: Make the .gitignore files handling more consistent.
Bruno Haible [Thu, 21 Mar 2024 14:45:42 +0000 (15:45 +0100)]
gnulib-tool: Make the .gitignore files handling more consistent.

* gnulib-tool.sh (func_done_dir): Ignore the presence or absence of a
.git directory if there is a .gitignore file in the same place.
* pygnulib/GLImport.py (GLImport._done_dir_): Likewise.

13 months agognulib-tool.sh: Undocument the --[no-]cache-modules options.
Bruno Haible [Wed, 20 Mar 2024 10:13:54 +0000 (11:13 +0100)]
gnulib-tool.sh: Undocument the --[no-]cache-modules options.

Reported by Collin Funk in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-03/msg00234.html>.
Rationale:
<https://lists.gnu.org/archive/html/bug-gnulib/2024-03/msg00243.html>.

* gnulib-tool.sh (func_usage): Don't mention --cache-modules,
--no-cache-modules.

13 months agognulib-tool.py: Don't print empty Automake snippets.
Collin Funk [Wed, 20 Mar 2024 07:57:50 +0000 (00:57 -0700)]
gnulib-tool.py: Don't print empty Automake snippets.

* pygnulib/GLEmiter.py (GLEmiter.lib_Makefile_am)
(GLEmiter.tests_Makefile_am): Handle empty strings when checking if the
snippet should be printed.

13 months agognulib-tool.py: Follow gnulib-tool changes, part 68.
Collin Funk [Tue, 19 Mar 2024 19:09:57 +0000 (12:09 -0700)]
gnulib-tool.py: Follow gnulib-tool changes, part 68.

Follow gnulib-tool change
2022-07-31  Akim Demaille  <akim@lrde.epita.fr>
gnulib-tool: add support for --automake-subdir-tests

* pygnulib/main.py (main): Add support for --automake-subdir-tests.
* pygnulib/GLInfo.py (GLInfo.usage): Add --automake-subdir-tests to the
help message.
* pygnulib/GLConfig.py (GLConfig.__init__): Add 'automake_subdir_tests'
to the parameter list. Initialize it.
(GLConfig.default): Default --automake-subdir-tests to False.
(GLConfig.resetAutomakeSubdir): Fix misleading docstring.
(GLConfig.getAutomakeSubdirTests, GLConfig.setAutomakeSubdirTests)
(GLConfig.resetAutomakeSubdirTests): New functions to manipulate and
access whether --automake-subdir-tests is in use.
* pygnulib/GLEmiter.py (GLEmiter.shellvars_init)
(GLEmiter.initmacro_end): Use sourcebase when handling tests and
--automake-subdir-tests is given.
* pygnulib/GLError.py (GLError.__repr__): Update error message to
include --automake-subdir-tests.
* pygnulib/GLImport.py (GLImport.__init__): Check for the
'subdir-objects' Automake option when --automake-subdir-tests is in use.
(GLImport.actioncmd): Add --automake-subdir-tests to the actioncmd
printed in generated files.

13 months agognulib-tool.py: Fix incorrect assignment operator.
Collin Funk [Tue, 19 Mar 2024 19:25:37 +0000 (12:25 -0700)]
gnulib-tool.py: Fix incorrect assignment operator.

* pygnulib/GLImport.py (GLImport.actioncmd): Use '+=' instead of '=' to
append the string to the actioncmd instead of overwriting it.

13 months agognulib-tool: Make it work in the test suite.
Bruno Haible [Tue, 19 Mar 2024 23:27:27 +0000 (00:27 +0100)]
gnulib-tool: Make it work in the test suite.

* gnulib-tool.sh (gnulib_dir): Make absolute.
(func_create_megatestdir): If .git/refs/heads/master does not exist, use
ChangeLog instead.
* pygnulib/main.py (main): Make gnulib_dir absolute.
* pygnulib/GLTestDir.py (GLMegaTestDir.execute): If
.git/refs/heads/master does not exist, use ChangeLog instead.

13 months agognulib-tool.py: Make sure temporary files are removed.
Collin Funk [Tue, 19 Mar 2024 03:01:50 +0000 (20:01 -0700)]
gnulib-tool.py: Make sure temporary files are removed.

* pygnulib/GLImport.py (GLImport.execute): Fix nesting of statement so
that both temporary files are removed.

13 months agognulib-tool.py: Follow gnulib-tool changes, part 67.
Collin Funk [Tue, 19 Mar 2024 02:58:37 +0000 (19:58 -0700)]
gnulib-tool.py: Follow gnulib-tool changes, part 67.

Follow gnulib-tool change
2022-03-01  Paul Eggert  <eggert@cs.ucla.edu>
Create lib/Makefile.am after gnulib-comp.m4

* pygnulib/GLImport.py (GLImport.execute): Create library makefile after
creating gnulib-comp.m4.

13 months agognulib-tool.py: Follow gnulib-tool changes, part 66.
Collin Funk [Mon, 18 Mar 2024 23:26:34 +0000 (16:26 -0700)]
gnulib-tool.py: Follow gnulib-tool changes, part 66.

Follow gnulib-tool change
2021-12-25  Bruno Haible  <bruno@clisp.org>
gnulib-tool: Fix handling of module libtextstyle-optional.

* pygnulib/GLModuleSystem.py (GLModule.repeatModuleInTests): New function.
* pygnulib/GLEmiter.py (GLEmiter.tests_Makefile_am): Use it for creating
the tests/Makefile.am.
* pygnulib/GLTestDir.py (GLTestDir.execute): Use it when creating the
file list.

13 months agognulib-tool.py: Follow gnulib-tool changes, part 65.
Collin Funk [Mon, 18 Mar 2024 19:23:46 +0000 (12:23 -0700)]
gnulib-tool.py: Follow gnulib-tool changes, part 65.

Follow gnulib-tool change
2021-12-19  Bruno Haible  <bruno@clisp.org>
gnulib-tool: Don't insist on ACLOCAL_AMFLAGS.

* pygnulib/GLImport.py (GLImport.execute): Don't add extra '-I' before
m4 directory in ACLOCAL_AMFLAGS. Prefer '0' instead of 'int()'. Mention
the use of AC_CONFIG_MACRO_DIRS in configure.ac as an alternative to
augmenting ACLOCAL_AMFLAGS.
* pygnulib/main.py (main): To find the m4 directories, look also for
AC_CONFIG_MACRO_DIR and AC_CONFIG_MACRO_DIRS invocations in
configure.ac. Remove unnecessary call to 'joinpath' since it accepts a
variable length of arguments.

13 months agognulib-tool.py: Tweak last change.
Bruno Haible [Mon, 18 Mar 2024 11:02:01 +0000 (12:02 +0100)]
gnulib-tool.py: Tweak last change.

* pygnulib/GLModuleSystem.py (GLModule.isTests, GLModule.isNonTests):
Update comments.

13 months agognulib-tool.py: Follow gnulib-tool changes, part 64.
Collin Funk [Mon, 18 Mar 2024 03:09:12 +0000 (20:09 -0700)]
gnulib-tool.py: Follow gnulib-tool changes, part 64.

Follow gnulib-tool change
2021-12-25  Bruno Haible  <bruno@clisp.org>
gnulib-tool: Respect applicability 'all' without --single-configure.

* pygnulib/GLModuleSystem.py (GLModule.isTests): Treat modules with
applicability 'all' like 'tests' modules, not like 'main' modules.
(GLModule.isNonTests): Treat all modules not ending in '-tests' as
non-test modules.
(GLModule.getApplicability): Don't use GLModule.isTests(). Because it
depends on the result of this function, using it would cause a
RecursionError exception.
(GLModule.getDependencies): Respect the difference between
module.isTests(), module.isNonTests(), and
module.getName().endswith('-tests').
(GLModule.getAutomakeSnippet_Unconditional, GLModule.getLicense)
(GLModuleTable.add_dummy): Likewise.
* pygnulib/GLEmiter.py (GLEmiter.lib_Makefile_am): Likewise.

13 months agognulib-tool.py: Handle empty lists of lines consistently.
Bruno Haible [Sun, 17 Mar 2024 23:43:53 +0000 (00:43 +0100)]
gnulib-tool.py: Handle empty lists of lines consistently.

* pygnulib/constants.py (lines_to_multiline): New function.
(nlremove): Remove unused function.
* pygnulib/GLEmiter.py (_eliminate_NMD): Use lines_to_multiline instead
of the '\n'.join idiom.
(GLEmiter.autoconfSnippet, GLEmiter.autoconfSnippets,
GLEmiter.lib_Makefile_am): Likewise.
* pygnulib/GLImport.py (GLImport._update_ignorelist_, GLImport.execute):
Likewise.
* pygnulib/GLModuleSystem.py (GLModule.getDependenciesRecursively,
GLModule.getLinkDirectiveRecursively, GLModuleTable.remove_if_blocks):
Likewise.
* pygnulib/GLTestDir.py (GLTestDir.execute): Likewise.
* pygnulib/main.py (main): Likewise.

13 months agognulib-tool.py: Follow gnulib-tool changes, part 63.
Collin Funk [Sun, 17 Mar 2024 21:51:18 +0000 (14:51 -0700)]
gnulib-tool.py: Follow gnulib-tool changes, part 63.

Follow gnulib-tool change
2020-12-28  Bruno Haible  <bruno@clisp.org>
gnulib-tool: Fix logic whether to add a dummy.c.

* pygnulib/GLModuleSystem.py (GLModuleTable.remove_if_blocks): New
function.
(GLModuleTable.add_dummy): Use it to eliminate all conditional
statements from the automake snippet.

13 months agognulib-tool.py: Don't print extra newlines.
Collin Funk [Sun, 17 Mar 2024 18:53:11 +0000 (11:53 -0700)]
gnulib-tool.py: Don't print extra newlines.

* pygnulib/GLEmiter.py (GLEmiter.initmacro_end): Don't print extra
newline that are not printed by gnulib-tool.sh.

13 months agognulib-tool.py: Follow gnulib-tool changes, part 62.
Collin Funk [Sun, 17 Mar 2024 17:03:54 +0000 (10:03 -0700)]
gnulib-tool.py: Follow gnulib-tool changes, part 62.

Follow gnulib-tool change
2020-02-22  Bruno Haible  <bruno@clisp.org>
gnulib-tool: Ensure copied files are writable.

* pygnulib/constants.py (ensure_writable): New function. Make sure files
are writable.
(symlink_relative, hardlink): Use it.
* pygnulib/GLFileSystem.py (GLFileSystem.lookup)
(GLFileAssistant.add_or_update): Likewise.
* pygnulib/GLTestDir.py (GLTestDir.execute): Likewise.
* pygnulib/main.py (main): Likewise.

13 months agognulib-tool: Add undocumented option --gnulib-dir.
Bruno Haible [Sun, 17 Mar 2024 12:46:04 +0000 (13:46 +0100)]
gnulib-tool: Add undocumented option --gnulib-dir.

* gnulib-tool.sh: Accept --gnulib-dir=... option.
* pygnulib/constants.py (init_DIRS): New function.
* pygnulib/main.py (main): Accept --gnulib-dir=... option. Invoke
init_DIRS. Expect .git directory to be present in DIRS['root'], not
APP['root'].
* pygnulib/GLImport.py (GLImport.execute): Use DIRS['root'], not
APP['root'].

13 months agognulib-tool.py: Follow gnulib-tool changes, part 61.
Collin Funk [Sun, 17 Mar 2024 02:56:42 +0000 (19:56 -0700)]
gnulib-tool.py: Follow gnulib-tool changes, part 61.

Follow gnulib-tool change
2022-01-09  Bruno Haible  <bruno@clisp.org>
Remove influence of Automake conditionals on conditional dependencies.

* pygnulib/GLModuleSystem.py (GLModuleTable.transitive_closure): Don't
inhibit conditional dependencies processing on a module that uses an
Automake conditional.

13 months agognulib-tool.py: Follow gnulib-tool changes, part 60.
Collin Funk [Sun, 17 Mar 2024 01:49:35 +0000 (18:49 -0700)]
gnulib-tool.py: Follow gnulib-tool changes, part 60.

Follow gnulib-tool change
2019-11-18  Bruno Haible  <bruno@clisp.org>
gnulib-tool: Fix build error on macOS with --conditional-dependencies.

* pygnulib/GLModuleSystem.py (GLModuleTable.add_dummy): Ignore modules
that are conditionally enabled.

13 months agognulib-tool.py: Don't try to remove files that don't exist.
Collin Funk [Sun, 17 Mar 2024 03:43:00 +0000 (20:43 -0700)]
gnulib-tool.py: Don't try to remove files that don't exist.

* pygnulib/GLFileSystem.py (GLFileSystem.add_or_update): Check if the
temporary file exists before trying to remove it.

13 months agorenameatu: support RENAME_EXCHANGE on macOS
Paul Eggert [Sun, 17 Mar 2024 05:27:48 +0000 (22:27 -0700)]
renameatu: support RENAME_EXCHANGE on macOS

* lib/renameatu.c (renameat2ish, renameatu) [RENAME_SWAP]:
Use macOS RENAME_SWAP to implement GNU/Linux RENAME_EXCHANGE.
* tests/test-renameatu.c (main): Add a test for RENAME_EXCHANGE.

13 months agognulib-tool.py: Follow gnulib-tool changes, part 59.
Collin Funk [Sat, 16 Mar 2024 21:52:21 +0000 (14:52 -0700)]
gnulib-tool.py: Follow gnulib-tool changes, part 59.

Follow gnulib-tool change
2017-10-29  Bruno Haible  <bruno@clisp.org>
gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.

* pygnulib/GLTestDir.py (GLTestDir.execute): Touch the 'config.h.in'
file after executing 'autoheader' to update it's timestamps.

13 months agognulib-tool.py: Fix 'git update-index' call when using hard links.
Collin Funk [Sat, 16 Mar 2024 18:47:05 +0000 (11:47 -0700)]
gnulib-tool.py: Fix 'git update-index' call when using hard links.

* pygnulib/main.py: Fix conditional used to check whether 'git
update-index' should be called. Only catch FileNotFoundError exceptions
thrown when no 'git' program exists.

13 months agognulib-tool.py: Coding style: Avoid not().
Collin Funk [Sat, 16 Mar 2024 14:20:39 +0000 (07:20 -0700)]
gnulib-tool.py: Coding style: Avoid not().

* pygnulib/GLModuleSystem.py (isNonTests): Avoid not(). Write
'not condition' instead of 'not(condition)'.

13 months agognulib-tool.py: Coding style: Avoid bool().
Bruno Haible [Sat, 16 Mar 2024 13:19:06 +0000 (14:19 +0100)]
gnulib-tool.py: Coding style: Avoid bool().

* pygnulib/GLModuleSystem.py (GLModule): Write False instead of bool().

13 months agognulib-tool.py: Follow gnulib-tool changes, part 58.
Collin Funk [Sat, 16 Mar 2024 02:58:27 +0000 (19:58 -0700)]
gnulib-tool.py: Follow gnulib-tool changes, part 58.

Follow gnulib-tool change
2017-05-21  Bruno Haible  <bruno@clisp.org>
gnulib-tool: Add options to create hard links.

* pygnulib/GLConfig.py (GLConfig.__init__): Add 'copymode' and
'lcopymode' to the parameter list. Initialize them.
(GLConfig.default): Don't use symbolic or hard links by default.
(GLConfig.checkCopyMode, GLConfig.setCopyMode, GLConfig.resetCopyMode):
New functions to modify and check the method for copying non --local-dir
files.
(GLConfig.checkLCopyMode, GLConfig.setLCopyMode)
(GLConfig.resetLCopyMode): New functions to modify and check the method
for copying --local-dir files.
(GLConfig.checkSymbolic, GLConfig.resetSymbolic, GLConfig.setSymbolic)
(GLConfig.checkLSymbolic, GLConfig.resetLSymbolic)
(GLConfig.setLSymbolic): Remove unused functions. The functionality of
these are now implemented in the *CopyMode() and *LCopyMode() variants.
* pygnulib/GLFileSystem.py (CopyAction.Hardlink): New Enum value to
describe hard links.
(GLFileSystem.shouldLink): Check if hard links should be used.
(GLFileAssistant.add, GLFileAssistant.update): Try to hard link if
enabled. Copy the file if linking fails.
(GLFileAssistant.add_or_update): Remove temporary files unconditionally.
* pygnulib/GLInfo.py (GLInfo.usage): Document new options in the usage
message.
* pygnulib/GLTestDir.py (GLTestDir.execute): Try to hard link if
enabled. Copy the file if linking fails.
* pygnulib/classes.py: Importy the CopyAction Enum.
* pygnulib/constants.py (hardlink): New function based on
symlink_relative.
* pygnulib/main.py (main): Add new options --hardlink and
--local-hardlink. Invoke 'git update-index --refresh' to mitigate the
effects of the hard links on git.

13 months agognulib-tool.sh: Make --local-dir options in gnulib-cache.m4 look nicer.
Bruno Haible [Sat, 16 Mar 2024 11:38:35 +0000 (12:38 +0100)]
gnulib-tool.sh: Make --local-dir options in gnulib-cache.m4 look nicer.

* gnulib-tool.sh (func_import): Append the --local-dir=... options
through func_append_actionarg.

13 months agognulib-tool.py: Don't lose the gl_LGPL value from gnulib-cache.m4.
Bruno Haible [Sat, 16 Mar 2024 11:21:35 +0000 (12:21 +0100)]
gnulib-tool.py: Don't lose the gl_LGPL value from gnulib-cache.m4.

Reported by Simon Josefsson in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-03/msg00152.html>.

* pygnulib/GLConfig.py (GLConfig.default): For the 'lgpl' property,
return None, not False.

13 months agognulib-tool.py: Don't lose the gl_LOCAL_DIR value from gnulib-cache.m4.
Bruno Haible [Sat, 16 Mar 2024 01:58:55 +0000 (02:58 +0100)]
gnulib-tool.py: Don't lose the gl_LOCAL_DIR value from gnulib-cache.m4.

Reported by Simon Josefsson in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-03/msg00152.html>.

* pygnulib/GLConfig.py (GLConfig.default): For the 'localpath' property,
return [], not ''.

13 months agognulib-tool: Enhance last patch.
Bruno Haible [Fri, 15 Mar 2024 21:36:51 +0000 (22:36 +0100)]
gnulib-tool: Enhance last patch.

* gnulib-tool: If gnulib-tool.sh failed but gnulib-tool.py succeeded,
report that and don't erase the outputs and log files.

13 months agoautoupdate
Karl Berry [Fri, 15 Mar 2024 16:18:34 +0000 (09:18 -0700)]
autoupdate

13 months agognulib-tool.py: Follow gnulib-tool changes, part 57.
Collin Funk [Fri, 15 Mar 2024 01:41:05 +0000 (18:41 -0700)]
gnulib-tool.py: Follow gnulib-tool changes, part 57.

Follow gnulib-tool change
2019-01-04  Bruno Haible  <bruno@clisp.org>
gnulib-tool: New option --extract-recursive-link-directive.

* pygnulib/GLModuleSystem.py (GLModule.getDependenciesRecursively): New
function. Implements the --extract-recursive-dependencies option.
(GLModule.getLinkDirectiveRecursively): New function. Implements the
--extract-recursive-link-directive.
* pygnulib/main.py (main): Add the --extract-recursive-dependencies and
--extract-recursive-link-directive options.
* pygnulib/GLInfo.py (GLInfo.usage): Add new options to help message.

13 months agognulib-tool: Obey environment variable GNULIB_TOOL_IMPL.
Bruno Haible [Thu, 14 Mar 2024 20:28:58 +0000 (21:28 +0100)]
gnulib-tool: Obey environment variable GNULIB_TOOL_IMPL.

* gnulib-tool.sh: Renamed from gnulib-tool.
* gnulib-tool: New file, based on gnulib-tool.sh.
* gnulib-tool.py: Check the Python version.

13 months agognulib-tool.py: Fix write failure due to bad sourcebase.
Collin Funk [Thu, 14 Mar 2024 02:21:44 +0000 (19:21 -0700)]
gnulib-tool.py: Fix write failure due to bad sourcebase.

* pygnulib/constants.py (cleaner): Only call strip() on string objects.
* pygnulib/main.py (main): Fix parsing of AMLOCAL_AMFLAGS from
Makefile.am. Add some comments from gnulib-tool.

13 months agosig2str tests: Refactor.
Bruno Haible [Thu, 14 Mar 2024 02:16:15 +0000 (03:16 +0100)]
sig2str tests: Refactor.

* tests/test-sig2str.c (test_sig2str, test_str2sig): New functions,
extracted from main.
(main): Invoke them.

13 months agosig2str: Add tests.
Collin Funk [Wed, 13 Mar 2024 19:17:41 +0000 (12:17 -0700)]
sig2str: Add tests.

* tests/test-sig2str.c: New file.
* modules/sig2str-tests: New file.

13 months agognulib-tool.py: Follow gnulib-tool changes, part 56.
Collin Funk [Tue, 12 Mar 2024 20:01:50 +0000 (13:01 -0700)]
gnulib-tool.py: Follow gnulib-tool changes, part 56.

Follow gnulib-tool change
2021-04-26  Paul Eggert  <eggert@cs.ucla.edu>
gnulib-tool: port better to current Autoconf

* pygnulib/GLImport.py (GLImport.execute): Remove exit() call before
printing reminders. Suggest replacing AC_PROG_CC_STDC and
AC_PROG_CC_C99, as per current Autoconf.