Thu Dec 5 02:52:20 1996 Tom Tromey <tromey@cygnus.com>
- * aclocal.in (@obsolete_macros): ud_GNU_GETTEXT is obsolete.
+ * automake.in (handle_single_transform_list): Correctly rewrite
+ C++ and Fortran source to objects ending in ".o". Test
+ cxxo.test.
+
+ * automake.in: Better error message if file missing.
+ * aclocal.in (@obsolete_macros): ud_GNU_GETTEXT is obsolete.
* automake.in (handle_gettext): Use AM_GNU_GETTEXT, not
ud_GNU_GETTEXT.
(scan_configure): Ditto. ud_GNU_GETTEXT is now obsolete.
-New in 1.1j:
+New in 1.1k:
* Bug fixes
* Better DejaGNU support
* Added no-installinfo option
# FIXME: should support the AC_OUTPUT ":" syntax here.
if (! -f ($am_file . '.am'))
{
- &am_error ('no such file');
+ &am_error ("\`" . $am_file . ".am' does not exist");
}
else
{
# Transform source files into .o files. List of C++
# extensions comes from Emacs 19.34 etags.
- if (s/\.(c\+\+|cc|cpp|cxx|C)$/o/)
+ if (s/\.(c\+\+|cc|cpp|cxx|C)$/.o/)
{
$cxx_extensions{'.' . $1} = 1;
$linker = 'CXXLINK';
}
- elsif (s/\.([Ff]\\|f90\\|for)$/o/)
+ elsif (s/\.([Ff]\\|f90\\|for)$/.o/)
{
# FORTRAN support. FIXME: not finished.
}
+Thu Dec 5 18:23:17 1996 Tom Tromey <tromey@cygnus.com>
+
+ * cxxo.test: New file.
+
Wed Dec 4 00:41:44 1996 Tom Tromey <tromey@cygnus.com>
* defs: Allow user to set interpreter via PERL environment
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 libobj4.test libobj5.test version.test \
-ranlib.test confvar.test confvar2.test stdlib.test
+ranlib.test confvar.test confvar2.test stdlib.test cxxo.test
EXTRA_DIST = defs $(TESTS)
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 libobj4.test libobj5.test version.test \
-ranlib.test confvar.test confvar2.test stdlib.test
+ranlib.test confvar.test confvar2.test stdlib.test cxxo.test
EXTRA_DIST = defs $(TESTS)
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
--- /dev/null
+#! /bin/sh
+
+# Make sure C++ files are rewritten to ".o" and not just "o".
+. $srcdir/defs || exit 1
+
+cat >> configure.in << 'END'
+AC_PROG_CXX
+END
+
+cat > Makefile.am << 'END'
+sbin_PROGRAMS = anonymous
+anonymous_SOURCES = doe.C
+END
+
+: > doe.C
+
+$AUTOMAKE || exit 1
+
+fgrep doe.o Makefile.in