$m4dirs is incorrectly counting. In my particular case (correct value: 0, detected value: 1), this resulted in gnulib-tool silently exitting with no visible error (and no job done).
-- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."
2009-11-09 Robert Millan <rmh.g...@aybabtu.com> * gnulib-tool: Fix $m4dirs count. --- gnulib-tool~ 2009-11-08 15:36:39.000000000 +0100 +++ gnulib-tool 2009-11-09 19:37:21.000000000 +0100 @@ -4500,7 +4500,7 @@ sedexpr2='s,^[^/]*$,.,' sedexpr3='s,/[^/]*$,,' m4dirs=`sed -n -e "$sedexpr1" aclocal.m4 | sed -e "$sedexpr2" -e "$sedexpr3" | LC_ALL=C sort -u` - m4dirs_count=`echo "$m4dirs" | wc -l` + m4dirs_count=`echo -n "$m4dirs" | wc -l` fi fi if test $m4dirs_count = 0; then