* gl/build-aux/bootstrap.in (func_bootstrap): Move
func_changelog_ensure invocation from here...
(func_reconfigure): ...to here. If gnulib_modules is empty, then
grep gnulib-cache.m4 for gitlog-to-changelog before invoking
func_changelog_ensure.
* bootstrap: Regenerate.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
# Post-option preparation.
func_prep
- # Ensure ChangeLog presence.
- func_ifcontains "$gnulib_modules" gitlog-to-changelog \
- func_ensure_changelog
-
# Reconfigure the package.
func_reconfigure
{
$debug_cmd
+ # Ensure ChangeLog presence.
+ if test -n "$gnulib_modules"; then
+ func_ifcontains "$gnulib_modules" gitlog-to-changelog \
+ func_ensure_changelog
+ else
+ $require_gnulib_cache
+ if sed -n '/^gl_MODULES(\[/,/^])$/p' $gnulib_cache |
+ func_grep_q gitlog-to-changelog
+ then
+ func_ensure_changelog
+ fi
+ fi
+
# Released 'autopoint' has the tendency to install macros that have
# been obsoleted in current 'gnulib., so run this before 'gnulib-tool'.
func_autopoint
# Post-option preparation.
func_prep
- # Ensure ChangeLog presence.
- func_ifcontains "$gnulib_modules" gitlog-to-changelog \
- func_ensure_changelog
-
# Reconfigure the package.
func_reconfigure
{
$debug_cmd
+ # Ensure ChangeLog presence.
+ if test -n "$gnulib_modules"; then
+ func_ifcontains "$gnulib_modules" gitlog-to-changelog \
+ func_ensure_changelog
+ else
+ $require_gnulib_cache
+ if sed -n '/^gl_MODULES(\[/,/^])$/p' $gnulib_cache |
+ func_grep_q gitlog-to-changelog
+ then
+ func_ensure_changelog
+ fi
+ fi
+
# Released 'autopoint' has the tendency to install macros that have
# been obsoleted in current 'gnulib., so run this before 'gnulib-tool'.
func_autopoint