+Mon Feb 16 00:12:03 1998 Tom Tromey <tromey@cygnus.com>
+
+ * automake.in (handle_aclocal_m4): When processing -I options,
+ directory is separate argument. Test aclocali.test.
+
Fri Feb 13 14:35:39 1998 Ian Lance Taylor <ian@cygnus.com>
* automake.in (handle_texinfo): Correct condition for whether
# dependencies.
if (&variable_defined ('ACLOCAL_AMFLAGS'))
{
- local ($amdir);
+ local ($examine_next, $amdir) = 0;
foreach $amdir (&variable_value_as_list ('ACLOCAL_AMFLAGS', ''))
{
- if ($amdir =~ s/^-I//
- && $amdir !~ /^\//
- && -d $amdir)
+ if ($examine_next)
{
- push (@ac_deps, &my_glob ($am_dir . '/*.m4'));
+ $examine_next = 0;
+ if ($amdir !~ /^\// && -d $amdir)
+ {
+ push (@ac_deps, &my_glob ($amdir . '/*.m4'));
+ }
+ }
+ elsif ($amdir eq '-I')
+ {
+ $examine_next = 1;
}
}
}
+Mon Feb 16 00:08:58 1998 Tom Tromey <tromey@cygnus.com>
+
+ * aclocali.test: New file.
+
Fri Feb 13 00:36:38 1998 Tom Tromey <tromey@cygnus.com>
* texinfo5.test (info_TEXINFOS): New file.
version2.test conf2.test cond.test cond2.test xsource.test \
libobj6.test depend3.test output5.test ammissing.test install.test \
libobj7.test objc.test cond3.test cxxcpp.test aclocal.test alpha.test \
-whoami.test unused.test condman.test texinfo5.test
+whoami.test unused.test condman.test texinfo5.test aclocali.test
EXTRA_DIST = defs $(TESTS)
version2.test conf2.test cond.test cond2.test xsource.test \
libobj6.test depend3.test output5.test ammissing.test install.test \
libobj7.test objc.test cond3.test cxxcpp.test aclocal.test alpha.test \
-whoami.test unused.test condman.test texinfo5.test
+whoami.test unused.test condman.test texinfo5.test aclocali.test
EXTRA_DIST = defs $(TESTS)
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
--- /dev/null
+#! /bin/sh
+
+# Make sure that ACLOCAL_AMFLAGS actually gets the right dependencies.
+. $srcdir/defs || exit 1
+
+echo AM_QUUX >> configure.in
+
+mkdir macros
+
+cat > macros/quux.m4 << 'END'
+AC_DEFUN([AM_QUUX], [
+])
+END
+
+cat > Makefile.am << 'END'
+ACLOCAL_AMFLAGS = -I macros
+END
+
+# We have to run aclocal first to make sure that aclocal.m4 exists.
+# Otherwise automake won't guess that we want to auto-generate it.
+$ACLOCAL -I macros || exit 1
+
+$AUTOMAKE || exit 1
+
+fgrep quux.m4 Makefile.in