A testdir created with --with-tests --single-configure fails to configure if
it happens to include module 'havelib-tests':

  $ ./configure
  ...
  configure: creating ./config.status
  config.status: error: cannot find input file: `havelib/Makefile.in'

This patch works around it.


2017-02-19  Bruno Haible  <br...@clisp.org>

        gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
        * gnulib_tool (func_create_testdir): Avoid havelib-tests when
        --with-tests --single-configure is specified.

--- a/gnulib-tool
+++ b/gnulib-tool
@@ -5850,6 +5850,12 @@ func_create_testdir ()
   # Canonicalize the list of specified modules.
   specified_modules=`for m in $specified_modules; do echo $m; done | LC_ALL=C 
sort -u`
 
+  # Test modules which invoke AC_CONFIG_FILES cannot be used with
+  # --with-tests --single-configure. Avoid them.
+  if $inctests && $single_configure; then
+    avoidlist="$avoidlist havelib-tests"
+  fi
+
   # Unlike in func_import, here we want to include all kinds of tests for the
   # directly specified modules, but not for dependencies.
   inc_all_direct_tests=true


Reply via email to