Merge branch 'msvc'
[platform/upstream/automake.git] / tests / extra9.test
1 #!/bin/sh
2 # Copyright (C) 2009  Free Software Foundation, Inc.
3 #
4 # This file is part of GNU Automake.
5 #
6 # GNU Automake is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # GNU Automake is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with Automake; see the file COPYING.  If not, write to
18 # the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 # Boston, MA 02110-1301, USA.
20
21 # Ensure we warn about substitutions in bin_PROGRAMS if EXTRA_PROGRAMS
22 # are missing; but only if the former is not AC_SUBSTed itself
23 # (lib_LIBRARIES is in the same boat here).
24
25 . ./defs || Exit 1
26
27 set -e
28
29 cat >>configure.in <<'END'
30 AC_PROG_CC
31 AC_PROG_RANLIB
32 AC_SUBST([lib_LIBRARIES])
33 AC_SUBST([bins])
34 AC_OUTPUT
35 END
36
37 cat >Makefile.am <<'END'
38 bin_PROGRAMS = @bins@
39 END
40
41 $ACLOCAL
42 AUTOMAKE_fails
43 grep 'bin_PROGRAMS.*contains configure substitution' stderr
44 grep 'lib_LIBRARIES.*contains configure substitution' stderr && Exit 1
45
46 Exit 0