* automake.in (AC_SUBST_PATTERN): Check for alphanumeric variable
names only. Test subst.test.
+ (scan_one_configure_file): Skip AC_DEFUN lines. Test
+ defun2.test.
Mon Dec 9 08:18:42 1996 Tom Tromey <tromey@cygnus.com>
s/\bdnl\b.*$//;
s/\#.*$//;
+ # Skip macro definitions. Otherwise we might be confused into
+ # thinking that a macro that was only defined was actually
+ # used.
+ next if /AC_DEFUN/;
+
# Populate libobjs array.
if (/AC_FUNC_ALLOCA/)
{
Tue Dec 10 00:43:14 1996 Tom Tromey <tromey@cygnus.com>
+ * defun2.test: New file.
* subst.test: New file.
Sun Dec 8 12:25:22 1996 Tom Tromey <tromey@cygnus.com>
acsilent.test distdir.test lex2.test libobj4.test libobj5.test version.test \
ranlib.test confvar.test confvar2.test stdlib.test cxxo.test colon2.test \
colon3.test remake.test output.test output2.test remake2.test output3.test \
-output4.test colneq2.test subst.test
+output4.test colneq2.test subst.test defun2.test
EXTRA_DIST = defs $(TESTS)
acsilent.test distdir.test lex2.test libobj4.test libobj5.test version.test \
ranlib.test confvar.test confvar2.test stdlib.test cxxo.test colon2.test \
colon3.test remake.test output.test output2.test remake2.test output3.test \
-output4.test colneq2.test subst.test
+output4.test colneq2.test subst.test defun2.test
EXTRA_DIST = defs $(TESTS)
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
--- /dev/null
+#! /bin/sh
+
+# Make sure we don't mistake a macro definition for an invocation.
+# From Jim Meyering.
+
+. $srcdir/defs || exit 1
+
+cat >> configure.in << 'END'
+dnl if buggy this will require getloadavg.c
+AC_PROG_CC
+AC_DEFUN([AC_FUNC_GETLOADAVG],
+dnl need this to avoid LIBOBJS used but not defined.
+AC_FUNC_MEMCMP
+END
+
+cat > Makefile.am << 'END'
+bin_PROGRAMS = foo
+foo_LDADD = @LIBOBJS@
+END
+
+: > memcmp.c
+
+$AUTOMAKE