Merge branch 'msvc'
[platform/upstream/automake.git] / tests / pr9.test
1 #! /bin/sh
2 # Copyright (C) 1999, 2001, 2002, 2010 Free Software Foundation, Inc.
3 #
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.
8 #
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.
13 #
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/>.
16
17 # Test for bug in PR 9.
18 # "make dist" incorrect when AC_CONFIG_AUX_DIR is present.
19 #
20 # == Report ==
21 # When AC_CONFIG_AUX_DIR is set (in my case to `support'), make dist
22 # no longer automatically includes config.guess, config.sub, install-sh,
23 # ltconfig, ltmain.sh, mdate-sh, missing, and mkinstalldirs.  In fact,
24 # the entire `support/' directory is omitted.
25
26 required=gzip
27 . ./defs || Exit 1
28
29 set -e
30
31 cat > configure.in << END
32 AC_INIT([$me], [1.0])
33 AC_CONFIG_AUX_DIR([support])
34 AM_INIT_AUTOMAKE
35 AC_CONFIG_FILES([Makefile])
36 AC_OUTPUT
37 END
38
39 : > Makefile.am
40
41 mkdir support
42
43 $ACLOCAL
44
45 $AUTOCONF
46 $AUTOMAKE -a -c
47 ./configure
48 $MAKE
49 $MAKE distcheck
50
51 distdir=$me-1.0
52
53 gzip -d $distdir.tar.gz
54
55 tar tf $distdir.tar | $FGREP support
56
57 tar xf $distdir.tar
58 ls -l . $distdir # for debugging
59 test -d $distdir/support
60 ls -l $distdir/support # for debugging
61 test -f $distdir/support/install-sh
62
63 :