summaryrefslogtreecommitdiff
path: root/pygnulib/GLImport.py
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2022-07-29 22:58:27 +0200
committerBruno Haible <bruno@clisp.org>2022-07-29 22:58:27 +0200
commit4bccc91c6bd9d73d3473d909023995e59119152e (patch)
treeb7d4a1a36362489c97b6a1e2887e4d338c7aa739 /pygnulib/GLImport.py
parent0bc144f96608c17963d021468f278a8d0c577894 (diff)
downloadgnulib-4bccc91c6bd9d73d3473d909023995e59119152e.tar.gz
gnulib-tool.py: Follow gnulib-tool changes, part 16.
Follow gnulib-tool change 2015-09-25 Pavel Raiskup <praiskup@redhat.com> gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash * pygnulib/GLImport.py (GLImport.gnulib_comp): Put the gl_USE_SYSTEM_EXTENSIONS right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the 'extensions' module is used).
Diffstat (limited to 'pygnulib/GLImport.py')
-rw-r--r--pygnulib/GLImport.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pygnulib/GLImport.py b/pygnulib/GLImport.py
index 10ad069271..c51b5036df 100644
--- a/pygnulib/GLImport.py
+++ b/pygnulib/GLImport.py
@@ -598,8 +598,10 @@ AC_DEFUN([%s_EARLY],
m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
m4_pattern_allow([^gl_ES$])dnl a valid locale name
m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
- m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
- AC_REQUIRE([gl_PROG_AR_RANLIB])\n''' % (configure_ac, macro_prefix)
+ m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable\n''' % (configure_ac, macro_prefix)
+ if any(str(module) == 'extensions' for module in moduletable['final']):
+ emit += ' AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])\n'
+ emit += ' AC_REQUIRE([gl_PROG_AR_RANLIB])\n'
uses_subdirs = False
for module in moduletable['main']:
# Test whether there are some source files in subdirectories.