From: Tom Tromey Date: Thu, 12 Feb 1998 00:31:37 +0000 (+0000) Subject: checked in fix for aclocal --output bug X-Git-Tag: pre-depend-change~11 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=3da2669e23ab67cc64cc866943f15a3ae3502ce9;p=automake.git checked in fix for aclocal --output bug --- diff --git a/ChangeLog b/ChangeLog index c3a832cc..47e62fb2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Feb 11 17:30:01 1998 Tom Tromey + + * aclocal.in (write_aclocal): Write to $output_file, not + aclocal.m4. From Alexandre Oliva. + Thu Feb 5 13:38:55 1998 Tom Tromey * automake.in (scan_one_configure_file): Put CXCPP before CXX in diff --git a/aclocal.in b/aclocal.in index 0f511970..3117cb86 100644 --- a/aclocal.in +++ b/aclocal.in @@ -385,8 +385,8 @@ sub write_aclocal print STDERR "Writing aclocal.m4\n" if $verbosity; - open (ACLOCAL, "> aclocal.m4") - || die "aclocal: couldn't open \`aclocal.m4' for writing: $!\n"; + open (ACLOCAL, "> " . $output_file) + || die "aclocal: couldn't open \`$output_file' for writing: $!\n"; print ACLOCAL "dnl aclocal.m4 generated automatically by aclocal $VERSION\n"; print ACLOCAL "\ dnl Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc. diff --git a/tests/ChangeLog b/tests/ChangeLog index 66176adf..e80a8700 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +Wed Feb 11 17:28:30 1998 Tom Tromey + + * aclocal.test: New file. + Thu Feb 5 13:22:17 1998 Tom Tromey * cxxcpp.test: New file. diff --git a/tests/Makefile.am b/tests/Makefile.am index 8144e9a4..3eb85c51 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -27,7 +27,7 @@ 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 output5.test ammissing.test install.test \ -libobj7.test objc.test cond3.test cxxcpp.test +libobj7.test objc.test cond3.test cxxcpp.test aclocal.test EXTRA_DIST = defs $(TESTS) diff --git a/tests/Makefile.in b/tests/Makefile.in index 3839bb26..f01473f8 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -88,7 +88,7 @@ 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 output5.test ammissing.test install.test \ -libobj7.test objc.test cond3.test cxxcpp.test +libobj7.test objc.test cond3.test cxxcpp.test aclocal.test EXTRA_DIST = defs $(TESTS) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs diff --git a/tests/aclocal.test b/tests/aclocal.test new file mode 100755 index 00000000..3b423b64 --- /dev/null +++ b/tests/aclocal.test @@ -0,0 +1,8 @@ +#! /bin/sh + +# Test to make sure that aclocal --output works. Report from +# Alexandre Oliva. +. $srcdir/defs || exit 1 + +$ACLOCAL --output=fred || exit 1 +test -f fred