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-03-07 23:12:35.000000000 +0100 @@ -393,6 +393,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-03-07 23:12:37.000000000 +0100 @@ -525,6 +525,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/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-03-07 23:08:42.000000000 +0100 @@ -0,0 +1,115 @@ +#! /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 all notrans_, dist_, nodist_ prefix combinations for MANS +# primary and install-man dependencies. + +. ./defs || exit 1 + +set -e + +cat >>configure.in <<'END' +AC_OUTPUT +END + +cat > Makefile.am << 'EOF' +man_MANS = foo.1 +dist_man_MANS = bar.2 +nodist_man_MANS = baz.3 +notrans_man_MANS = x-foo.4 +notrans_dist_man_MANS = x-bar.5 +notrans_nodist_man_MANS = x-baz.6 +man7_MANS = y-foo.man +dist_man5_MANS = y-bar.man +nodist_man4_MANS = y-baz.man +notrans_man3_MANS = z-foo.man +notrans_dist_man2_MANS = z-bar.man +notrans_nodist_man1_MANS = z-baz.man + +# These two are ignored +dist_notrans_man_MANS = nosuch.8 +nodist_notrans_man9_MANS = nosuch.man + +y-foo.man: + : >$@ +y-bar.man: + : >$@ +y-baz.man: + : >$@ +z-foo.man: + : >$@ +z-bar.man: + : >$@ +z-baz.man: + : >$@ + +test-install: install + test -f inst/man/man1/gnu-foo.1 + test -f inst/man/man2/gnu-bar.2 + test -f inst/man/man3/gnu-baz.3 + test -f inst/man/man4/x-foo.4 + test -f inst/man/man5/x-bar.5 + test -f inst/man/man6/x-baz.6 + test -f inst/man/man7/gnu-y-foo.7 + test -f inst/man/man5/gnu-y-bar.5 + test -f inst/man/man4/gnu-y-baz.4 + test -f inst/man/man3/z-foo.3 + test -f inst/man/man2/z-bar.2 + test -f inst/man/man1/z-baz.1 + if test -d inst/man/man8; then (exit 1); else :; fi + if test -d inst/man/man9; then (exit 1); else :; fi +EOF + +: > foo.1 +: > bar.2 +: > baz.3 +: > x-foo.4 +: > x-bar.5 +: > x-baz.6 + +$ACLOCAL +$AUTOCONF +$AUTOMAKE + +grep '^install-man1:' Makefile.in | grep '\$(man_MANS)' +grep '^install-man2:' Makefile.in | grep '\$(dist_man_MANS)' +grep '^install-man3:' Makefile.in | grep '\$(nodist_man_MANS)' +grep '^install-man4:' Makefile.in | grep '\$(notrans_man_MANS)' +grep '^install-man5:' Makefile.in | grep '\$(notrans_dist_man_MANS)' +grep '^install-man6:' Makefile.in | grep '\$(notrans_nodist_man_MANS)' + +if grep '^install-man8:' Makefile.in; then exit 1; else :; fi +if grep '^install-man9:' Makefile.in; then exit 1; else :; fi + +./configure --program-prefix=gnu- --prefix "`pwd`"/inst --mandir "`pwd`"/inst/man +$MAKE +$MAKE test-install +test `find inst/man -type f -print | wc -l` = 12 +$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/man2 +test -d inst/man/man3 +test -d inst/man/man4 +test -d inst/man/man5 +test -d inst/man/man6 +test -d inst/man/man7 +if test -d inst/man/man8; then exit 1; else :; fi +if test -d inst/man/man9; then exit 1; else :; fi