* automake.in (handle_source_transform): Only rewrite c, yacc, lex
to use de-ansi-fication.
+ (scan_configure): Handle multi-line AC_REPLACE_FUNCS. Test
+ libobj5.test.
* automake.in (handle_lib_objects): Added $lex_seen argument.
Error if lex file used but LEXLIB not seen.
-# Makefile.in generated automatically by automake 1.1f from Makefile.am
+# Makefile.in generated automatically by automake 1.1g from Makefile.am
# Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
--regex='/^@node[ \t]+\([^,]+\)/\1/' automake.texi
TAGS_DEPENDENCIES = automake.in aclocal.in automake.texi
ACLOCAL = aclocal.m4
-mkinstalldirs = $(top_srcdir)/mkinstalldirs
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES = automake aclocal
SCRIPTS = $(bin_SCRIPTS) $(pkgdata_SCRIPTS)
# For an explanation of the following Makefile rules, see node
# `Automatic Remaking' in GNU Autoconf documentation.
-Makefile: $(srcdir)/Makefile.in config.status
+Makefile: $(srcdir)/Makefile.in config.status $(BUILT_SOURCES)
CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
config.status: configure
./config.status --recheck
done
info: $(INFO_DEPS) info-recursive
dvi: $(DVIS) dvi-recursive
-check: all
+check: all-am
$(MAKE) check-recursive
installcheck: installcheck-recursive installcheck-local
all-am: $(INFO_DEPS) $(SCRIPTS) $(DATA) Makefile
# that won't always be the case.
%libsources = ();
- local ($in_ac_output, @make_list) = 0;
+ local ($in_ac_output, $in_ac_replace, @make_list) = (0, 0);
local ($libobj_iter);
while (<CONFIGURE>)
{
{
$libsources{'fnmatch.c'} = 1;
}
- elsif (/AC_REPLACE_FUNCS\s*\((.*)\)/)
- {
- foreach (split (' ', $1))
- {
- $libsources{$_ . '.c'} = 1;
- }
- }
elsif (/A[CM]_REPLACE_GNU_GETOPT/)
{
$libsources{'getopt.c'} = 1;
}
}
+ if (! $in_ac_replace && s/AC_REPLACE_FUNCS\s*\(\[?//)
+ {
+ $in_ac_replace = 1;
+ }
+ if ($in_ac_replace)
+ {
+ $in_ac_replace = 0 if s/[\]\)].*$//;
+ # Remove trailing backslash.
+ s/\\$//;
+ foreach (split)
+ {
+ $libsources{$_ . '.c'} = 1;
+ }
+ }
+
if (/(fp_WITH_DMALLOC|fp_WITH_REGEX|fp_FUNC_FNMATCH|fp_PROG_INSTALL|fp_C_PROTOTYPES|jm_MAINTAINER_MODE)/)
{
&am_conf_line_error ($., "\`$1' is obsolete; use corresponding \`AM_' macro");
-# Makefile.in generated automatically by automake 1.1f from Makefile.am
+# Makefile.in generated automatically by automake 1.1g from Makefile.am
# Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
winsz.m4 mktime.m4 error.m4 obstack.m4
EXTRA_DIST = $(m4data_DATA)
-mkinstalldirs = $(top_srcdir)/mkinstalldirs
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES =
DATA = $(m4data_DATA)
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in
cd $(top_srcdir) && automake $(subdir)/Makefile
-Makefile: $(top_builddir)/config.status $(srcdir)/Makefile.in
+Makefile: $(top_builddir)/config.status $(srcdir)/Makefile.in $(BUILT_SOURCES)
cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
install-m4dataDATA: $(m4data_DATA)
Fri Oct 11 00:51:04 1996 Tom Tromey <tromey@cygnus.com>
+ * libobj5.test: New file.
+ * libobj4.test: New file.
* distdir.test: New file.
* lex2.test: New file.
gnits.test interp2.test colneq.test implicit.test spell.test spell2.test \
confsub.test primary.test primary2.test depend2.test spell3.test \
comment2.test vpath.test symlink.test discover.test acinclude.test req.test \
-acsilent.test distdir.test lex2.test
+acsilent.test distdir.test lex2.test libobj4.test libobj5.test
EXTRA_DIST = defs $(TESTS)
gnits.test interp2.test colneq.test implicit.test spell.test spell2.test \
confsub.test primary.test primary2.test depend2.test spell3.test \
comment2.test vpath.test symlink.test discover.test acinclude.test req.test \
-acsilent.test distdir.test lex2.test
+acsilent.test distdir.test lex2.test libobj4.test libobj5.test
EXTRA_DIST = defs $(TESTS)
-mkinstalldirs = $(top_srcdir)/mkinstalldirs
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES =
DIST_COMMON = ChangeLog Makefile.am Makefile.in
--- /dev/null
+#! /bin/sh
+
+# Test to make sure LIBOBJS error only occurs if LIBOBJS seen. Report
+# from Jim Meyering.
+
+. $srcdir/defs || exit 1
+
+cat > Makefile.am << 'END'
+bin_PROGRAMS = foo
+END
+
+cat >> configure.in << 'END'
+AC_REPLACE_FUNCS(foo)
+END
+
+$AUTOMAKE
--- /dev/null
+#! /bin/sh
+
+# Test to make sure AC_REPLACE_FUNCS works across lines. Report from
+# Jim Meyering.
+
+. $srcdir/defs || exit 1
+
+cat > Makefile.am << 'END'
+bin_PROGRAMS = joe
+LDADD = @LIBOBJS@
+END
+
+cat >> configure.in << 'END'
+AC_REPLACE_FUNCS(\
+ foo)
+END
+
+: > foo.c
+
+$AUTOMAKE || exit 1
+fgrep foo.c Makefile.in