Avoid leaking TEST_LOG_COMPILER in environment of test scripts.
[automake.git] / tests / acloca22.test
blob913e4d9bc51bf79262db6db9752edce0f2eeb861
1 #! /bin/sh
2 # Copyright (C) 2007 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)
7 # any later version.
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 # Make sure the "deleted header file" issue is fixed wrt. aclocal.m4
18 # dependencies.
20 . ./defs || Exit 1
22 set -e
24 cat >>configure.in <<EOF
25 FOO
26 AC_OUTPUT
27 EOF
28 cat >foo.m4 <<EOF
29 AC_DEFUN([FOO], [AC_SUBST([GREPFOO])])
30 EOF
31 cat >bar.m4 <<EOF
32 AC_DEFUN([BAR], [AC_SUBST([GREPBAR])])
33 EOF
34 cat >Makefile.am <<EOF
35 ACLOCAL_AMFLAGS = -I .
36 EOF
37 $ACLOCAL -I .
38 $AUTOMAKE
39 $AUTOCONF
40 ./configure
41 $MAKE
42 grep GREPFOO Makefile
43 grep GREPBAR Makefile && Exit 1
44 sed 's/FOO/BAR/' < configure.in > t
45 mv -f t configure.in
46 rm -f foo.m4
47 $MAKE
48 grep GREPFOO Makefile && Exit 1
49 grep GREPBAR Makefile