For the 'havelib' tests, it is necessary for the module to know the location of the macros in the tarball. This provides it, through a shell variable at configure time. Its use is generally not recommended, but in cases like this one, I don't see how to avoid it.
2010-04-02 Bruno Haible <br...@clisp.org> gnulib-tool: Provide the value of --m4-base to modules. * gnulib-tool (func_import, func_create_testdir): Emit a definition of gl_m4_base. --- gnulib-tool.orig Fri Apr 2 16:44:34 2010 +++ gnulib-tool Fri Apr 2 14:13:24 2010 @@ -4328,6 +4328,7 @@ else sed_replace_build_aux="$sed_noop" fi + echo " gl_m4_base='$m4base'" func_emit_initmacro_start $macro_prefix echo " gl_source_base='$sourcebase'" for module in $main_modules; do @@ -4903,6 +4904,7 @@ s|AC_CONFIG_FILES(\(.*\):build-aux/\(.*\))|AC_CONFIG_FILES(\1:'"$auxdir"'/\2)| ba }' + echo "gl_m4_base='../$m4base'" func_emit_initmacro_start $macro_prefix # We don't have explicit ordering constraints between the various # autoconf snippets. It's cleanest to put those of the library before @@ -5032,6 +5034,7 @@ else sed_replace_build_aux="$sed_noop" fi + echo "gl_m4_base='$m4base'" func_emit_initmacro_start $macro_prefix echo "gl_source_base='$sourcebase'" for module in $modules; do