Wed Sep 24 16:10:37 1997 Tom Tromey <tromey@cygnus.com>
+ * automake.in (scan_one_configure_file): Detect AC_OUTPUT().
+ (handle_single_transform_list): Don't apply length() to a list.
+
* automake.in (handle_programs): Define _DEPENDENCIES variable if
not defined by user.
local (@result) = ();
local ($nonansi_obj) = $obj;
$nonansi_obj =~ s/_//g;
- if (length (@files))
+ if (@files > 0)
{
# Turn sources into objects.
foreach (@files)
}
if ($in_ac_output)
{
- $in_ac_output = 0 if s/[\]\),].*$//;
+ local ($closing) = 0;
+ if (s/[\]\),].*$//)
+ {
+ $in_ac_output = 0;
+ $closing = 1;
+ }
# Look at potential Makefile.am's.
foreach (split)
push (@other_input_files, $_);
}
}
+
+ if ($closing)
+ {
+ &am_conf_line_error ($filename, $ac_output_line,
+ "No files mentioned in \`AC_OUTPUT'")
+ if @make_input_list == 0 && @other_input_files == 0;
+ exit 1;
+ }
}
if (/$AC_CONFIG_AUX_DIR_PATTERN/o)
Wed Sep 24 16:01:59 1997 Tom Tromey <tromey@cygnus.com>
+ * output5.test: New file.
+
* depend3.test: New file.
Mon Aug 25 17:24:42 1997 Tom Tromey <tromey@cygnus.com>
defun2.test yaccpp.test texinfo3.test texinfo4.test tagsub.test \
cxxlibobj.test seenc.test cygwin32.test lisp.test stamph.test \
ldadd.test version2.test conf2.test cond.test cond2.test xsource.test \
-libobj6.test depend3.test
+libobj6.test depend3.test output5.test
EXTRA_DIST = defs $(TESTS)
defun2.test yaccpp.test texinfo3.test texinfo4.test tagsub.test \
cxxlibobj.test seenc.test cygwin32.test lisp.test stamph.test \
ldadd.test version2.test conf2.test cond.test cond2.test xsource.test \
-libobj6.test depend3.test
+libobj6.test depend3.test output5.test
EXTRA_DIST = defs $(TESTS)
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
--- /dev/null
+#! /bin/sh
+
+# Test for AC_OUTPUT(). From Mark Galassi.
+
+. $srcdir/defs || exit 1
+
+cat > configure.in << 'END'
+PACKAGE=nonesuch
+VERSION=nonesuch
+AC_ARG_PROGRAM
+AC_PROG_INSTALL
+AC_OUTPUT()
+END
+
+: > Makefile.am
+
+$AUTOMAKE > output 2>&1 && exit 1
+grep 'found or specified' output && exit 1
+exit 0