Hello automakers. Here is the (hopefully) final patch series providing a more correct and consistent overriding of autoconf and autom4te at configure-time (for use in automake-generated rebuild rules).
This is what the individual patches do, in detail: 1. Add a tests (`remake0.test') that fails if the autoconf used by aclocal and the autoconf used by the testsuite don't match; this test is expected to fail with my current setup (bootstrap-time and configure-time overridden $AUTOCONF and $AUTOMA4TE, but no AUTOCONF nor AUTOM4TE in the environment). 2. Fix tests `missing.test' and `missing2.test', to avoid spurious failures due to configure-time value of $AUTOCONF being an absolute path. 3. Add the tests intoduced by the previous version of the patch, checking the support for bootstrap-time/configure-time overriding of autoconf and autom4te. Some of these tests still fail at this point (they will be temporarly declared xfailing). 4. Apply the changes to `m4/init.m4' and `lib/am/configure.am' introduced the previous version of the patch. The changes are quite tricky and somewhat hackish, but seem necessary to deal correctly with all the scenarios where a bootstrap-time/configure-time overriding of autoconf and autom4te is in effect. At this point, the new tests introduced in step 3 should pass. However, this change also expose a bug (well, technically a limitation) in already-existing tests `missing.test' and `missing2.test'; they are declared as xfailing, and will be fixed by the next patch. 5. Fix the tests `missing.test' and `missing2.test'. This requires moving some of the checks in `missing.test' into a new test `missing7.test'. Since I was at it, I deepened and extended these checks. 6. Be more correct in the definition and exporting of $AUTOCONF and $AUTOMAKE in `tests/defs.in', to better honour configure-time overrides. This change fixes failures of test `remake0.test' (introduced in step 1) in setups where autoconf and autom4te are overriden at configure time (this has been tested with my present setup). -*-*-*- Stefano Lattarini (6): 1. Test that autoconf(s) used by the testsuite and by aclocal match. 2. Testsuite: fix missing*.test for non-default autotools. 3. Add tests for non-default autotools in rebuild rules. 4. Improve support for non-default autotools in rebuild rules. 5. Fix tests missing.test and missing2.test. 6. Testsuite: improve support for non-default autotools. ChangeLog | 64 ++++++++++++++ Makefile.in | 40 ++++++++- configure | 16 ++++- configure.ac | 4 +- doc/Makefile.in | 15 +++- lib/Automake/Makefile.in | 15 +++- lib/Automake/tests/Makefile.in | 15 +++- lib/Makefile.in | 15 +++- lib/am/Makefile.in | 15 +++- lib/am/configure.am | 49 ++++++++++-- m4/Makefile.in | 15 +++- m4/init.m4 | 16 +++- tests/Makefile.am | 10 ++ tests/Makefile.in | 25 ++++++- tests/defs.in | 31 ++++++- tests/missing.test | 46 ++++++---- tests/missing2.test | 40 +++++++--- tests/missing7.test | 73 ++++++++++++++++ tests/remake0.test | 38 +++++++++ tests/remake8a.test | 94 +++++++++++++++++++++ tests/remake8b.test | 98 ++++++++++++++++++++++ tests/remake8c.test | 111 +++++++++++++++++++++++++ tests/remake8d.test | 179 ++++++++++++++++++++++++++++++++++++++++ tests/remake8e.test | 175 +++++++++++++++++++++++++++++++++++++++ tests/remake8f.test | 119 ++++++++++++++++++++++++++ tests/remake8g.test | 139 +++++++++++++++++++++++++++++++ tests/remake8h.test | 59 +++++++++++++ 27 files changed, 1462 insertions(+), 54 deletions(-) create mode 100755 tests/missing7.test create mode 100755 tests/remake0.test create mode 100755 tests/remake8a.test create mode 100755 tests/remake8b.test create mode 100755 tests/remake8c.test create mode 100755 tests/remake8d.test create mode 100755 tests/remake8e.test create mode 100755 tests/remake8f.test create mode 100755 tests/remake8g.test create mode 100755 tests/remake8h.test