2 # Copyright (C) 2005, 2006, 2008, 2010 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 # Test for --install with #serial numbers.
23 cat >> configure.
in << 'END'
32 AC_DEFUN([AM_MACRO1], [echo macro11 >> foo])
33 AC_DEFUN([AM_MACRO2], [echo macro21 >> foo])
38 AC_DEFUN([AM_MACRO1], [echo macro12 >> foo])
43 AC_DEFUN([AM_MACRO2], [echo macro23 >> foo])
48 AC_DEFUN([AM_MACRO1], [echo macro13 >> foo])
51 cat >4/mumble.
m4 <<EOF
53 AC_DEFUN([AM_MACRO1], [echo macro14 >> foo])
56 $ACLOCAL -I 1 -I 2 -I 3 -I 4
62 rm -rf foo autom4te
*.cache
63 $ACLOCAL -I 1 -I 2 -I 3 -I 4 --install
69 rm -rf foo autom4te
*.cache
70 $ACLOCAL -I 4 -I 1 -I 2 -I 3 --install --dry-run
76 rm -rf foo autom4te
*.cache
77 $ACLOCAL -I 4 -I 1 -I 2 -I 3 --install
83 rm -rf foo autom4te
*.cache
84 $ACLOCAL -I 4 -I 1 -I 2 --install 2>stderr
&& { cat stderr
>&2; Exit
1; }
86 grep 'macro.*AM_MACRO2.*not found' stderr
88 rm -rf foo autom4te
*.cache
89 $ACLOCAL -I 4 -I 1 --install
96 cat >dirlist-test
/m1.
m4 <<EOF
98 AC_DEFUN([AM_MACRO1], [echo macro1d >> foo])
99 AC_DEFUN([AM_MACRO2], [echo macro2d >> foo])
101 rm -rf foo autom4te
*.cache
102 $ACLOCAL -I 4 -I 1 --diff=diff >stdout
2>stderr ||
{
109 grep '#serial 456' stdout
111 grep 'installing.*4/m1\.m4' stderr