diff -ur -N -x 'automake.info*' -x version.texi -x stamp-vti automake-1.10.1.orig/tests/Makefile.am automake-1.10.1/tests/Makefile.am
--- automake-1.10.1.orig/tests/Makefile.am 2008-02-20 09:38:10.000000000 +0100
+++ automake-1.10.1/tests/Makefile.am 2008-02-20 11:28:35.000000000 +0100
@@ -362,6 +362,7 @@
man.test \
man2.test \
man3.test \
+man4.test \
mclean.test \
mdate.test \
mdate2.test \
@@ -393,6 +394,7 @@
noinstdir.test \
nolink.test \
nostdinc.test \
+notrans.test \
number.test \
objc.test \
objc2.test \
diff -ur -N -x 'automake.info*' -x version.texi -x stamp-vti automake-1.10.1.orig/tests/Makefile.in automake-1.10.1/tests/Makefile.in
--- automake-1.10.1.orig/tests/Makefile.in 2008-02-20 09:38:10.000000000 +0100
+++ automake-1.10.1/tests/Makefile.in 2008-02-20 11:28:38.000000000 +0100
@@ -494,6 +494,7 @@
man.test \
man2.test \
man3.test \
+man4.test \
mclean.test \
mdate.test \
mdate2.test \
@@ -525,6 +526,7 @@
noinstdir.test \
nolink.test \
nostdinc.test \
+notrans.test \
number.test \
objc.test \
objc2.test \
diff -ur -N -x 'automake.info*' -x version.texi -x stamp-vti automake-1.10.1.orig/tests/man4.test automake-1.10.1/tests/man4.test
--- automake-1.10.1.orig/tests/man4.test 1970-01-01 01:00:00.000000000 +0100
+++ automake-1.10.1/tests/man4.test 2008-02-20 10:07:12.000000000 +0100
@@ -0,0 +1,36 @@
+#! /bin/sh
+# Copyright (C) 2008 Free Software Foundation, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see .
+
+# Check that dist_man1_MANS appears as dependency for install-man1.
+
+. ./defs || exit 1
+
+set -e
+
+cat > Makefile.am << 'END'
+dist_man_MANS = foo.1
+END
+
+cat >>configure.in <<'END'
+AC_OUTPUT
+END
+
+: > foo.1
+
+$ACLOCAL
+$AUTOMAKE
+
+grep '^install-man1:' Makefile.in | grep '\$(dist_man_MANS)'
diff -ur -N -x 'automake.info*' -x version.texi -x stamp-vti automake-1.10.1.orig/tests/notrans.test automake-1.10.1/tests/notrans.test
--- automake-1.10.1.orig/tests/notrans.test 1970-01-01 01:00:00.000000000 +0100
+++ automake-1.10.1/tests/notrans.test 2008-02-20 11:25:40.000000000 +0100
@@ -0,0 +1,53 @@
+#! /bin/sh
+# Copyright (C) 2008 Free Software Foundation, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see .
+
+# Check notrans_ prefix for MANS primary.
+
+. ./defs || exit 1
+
+set -e
+
+cat >>configure.in <<'END'
+AC_OUTPUT
+END
+
+cat > Makefile.am << 'EOF'
+dist_man_MANS = foo.1
+notrans_man_MANS = foo.5
+
+test-install: install
+ test -f inst/man/man1/gnu-foo.1
+ test -f inst/man/man5/foo.5
+EOF
+
+: > foo.1
+: > foo.5
+
+$ACLOCAL
+$AUTOCONF
+$AUTOMAKE
+
+./configure --program-prefix=gnu- --prefix `pwd`/inst --mandir `pwd`/inst/man
+$MAKE
+$MAKE test-install
+$MAKE uninstall
+test `find inst/man -type f -print | wc -l` = 0
+
+# Opportunistically test for installdirs.
+rm -rf inst
+$MAKE installdirs
+test -d inst/man/man1
+test -d inst/man/man5