$colon_infile = '' if $colon_infile eq ":$makefile.in";
my @rewritten = rewrite_inputs_into_dependencies ($makefile, @inputs);
my $regen_aclocal_m4 = scan_aclocal_m4;
- define_pretty_variable ('am__aclocal_m4_deps', TRUE, INTERNAL,
- @configure_deps, "\$(top_srcdir)/$configure_ac");
- my @configuredeps = ('$(am__aclocal_m4_deps)', '$(CONFIGURE_DEPENDENCIES)');
- push @configuredeps, '$(ACLOCAL_M4)' if -f 'aclocal.m4';
- define_pretty_variable ('am__configure_deps', TRUE, INTERNAL,
- @configuredeps);
+ define_variable ('am.remake.aclocal-m4-deps', INTERNAL,
- @configure_deps, '$(top_srcdir)/' . $configure_ac);
++ @configure_deps, "\$(top_srcdir)/$configure_ac");
+ my @configuredeps = ('$(am.remake.aclocal-m4-deps)',
+ '$(CONFIGURE_DEPENDENCIES)');
+ push @configuredeps, '$(am.remake.aclocal-m4)' if -f 'aclocal.m4';
+ define_variable ('am.remake.configure-deps', INTERNAL, @configuredeps);
my $automake_options = '--' . $strictness_name .
(global_option 'no-dependencies' ? ' --ignore-deps' : '');
exit 1; \
fi
+ ## Use 'configure.ac', not the obsolete 'configure.in', as the name
+ ## for configure input files in our testsuite. The latter has been
+ ## deprecated for several years (at least since autoconf 2.50) and
+ ## support for it will be removed in Automake 1.14.
+ sc_tests_no_configure_in:
+ @if grep -E '\bconfigure\\*\.in\b' $(xtests) $(xdefs); then \
+ echo "Use 'configure.ac', not 'configure.in', as the name" >&2; \
+ echo "for configure input files in the test cases above." >&2; \
+ exit 1; \
+ fi
+
## Rule to ensure that the testsuite has been run before. We don't depend
## on 'check' here, because that would be very wasteful in the common case.
-## We could run "make check RECHECK_LOGS=" and avoid toplevel races with
+## We could run "make check AM_LAZY_CHECK=yes" and avoid toplevel races with
## AM_RECURSIVE_TARGETS. Suggest keeping test directories around for
## greppability of the Makefile.in files.
sc_ensure_testsuite_has_run: