+2002-08-02 Alexandre Duret-Lutz <duret_g@epita.fr>
+
+ * tests/ext2.test: New file. This bug is present in Automake 1.6.3
+ and was fixed by the change on variable_conditions_permutations
+ and invert_conditions on 2002-05-16.
+ * tests/Makefile.am (TESTS): Add ext2.test.
+ Reported by Ladislav Strojil.
+
2002-08-01 Alexandre Duret-Lutz <duret_g@epita.fr>
* aclocal.in (parse_arguments): Add `dirlist' paths add the
Kevin Street street@iname.com
Klaus Reichl Klaus.Reichl@alcatel.at
L. Peter Deutsch ghost@aladdin.com
+Ladislav Strojil Ladislav.Strojil@seznam.cz
Larry Jones larry.jones@sdrc.com
Lars Hecking lhecking@nmrc.ucc.ie
Lars J. Aas larsa@sim.no
-@set UPDATED 31 July 2002
-@set UPDATED-MONTH July 2002
+@set UPDATED 2 August 2002
+@set UPDATED-MONTH August 2002
@set EDITION 1.6c
@set VERSION 1.6c
exeext2.test \
exsource.test \
ext.test \
+ext2.test \
extra.test \
extra3.test \
extra4.test \
exeext2.test \
exsource.test \
ext.test \
+ext2.test \
extra.test \
extra3.test \
extra4.test \
--- /dev/null
+#!/bin/sh
+# Regression test for a bug reported by Ladislav Strojil.
+# Using different extensions for the same language should not
+# output the build rules several times.
+
+. $srcdir/defs
+
+set -e
+
+cat >>configure.in <<EOF
+AC_PROG_CXX
+EOF
+
+cat >Makefile.am <<EOF
+bin_PROGRAMS = p q r
+p_SOURCES = a.cc b.cpp c.cxx
+q_SOURCES = sub/d.cc sub/e.cpp sub/f.cxx
+r_SOURCES = g.cc h.cpp i.cxx
+r_CXXFLAGS = -DFOO
+EOF
+
+$ACLOCAL
+$AUTOMAKE
+
+grep '\.o:' Makefile.in > rules
+cat rules
+
+# Here is a example of bogus output. The rules are output several
+# times.
+#| .cc.o:
+#| d.o: sub/d.cc
+#| e.o: sub/e.cpp
+#| f.o: sub/f.cxx
+#| r-g.o: g.cc
+#| r-h.o: h.cpp
+#| r-i.o: i.cxx
+#| .cpp.o:
+#| d.o: sub/d.cc
+#| e.o: sub/e.cpp
+#| f.o: sub/f.cxx
+#| r-g.o: g.cc
+#| r-h.o: h.cpp
+#| r-i.o: i.cxx
+#| .cxx.o:
+#| #d.o: sub/d.cc
+#| #e.o: sub/e.cpp
+#| #f.o: sub/f.cxx
+#| #r-g.o: g.cc
+#| #r-h.o: h.cpp
+#| #r-i.o: i.cxx
+
+# Bail out if we find a duplicate.
+$PERL -ne 'if (exists $a{$_}) { exit 1 } else { $a{$_} = 1 }' < rules
-@set UPDATED 31 July 2002
-@set UPDATED-MONTH July 2002
+@set UPDATED 2 August 2002
+@set UPDATED-MONTH August 2002
@set EDITION 1.6c
@set VERSION 1.6c