test: protect more yacc declarations against C vs. C++ linkage.
[automake.git] / t / pr9.sh
blob2a13dd5458433f6c9d12f1ad5676594970105d0d
1 #! /bin/sh
2 # Copyright (C) 1999-2024 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 <https://www.gnu.org/licenses/>.
17 # Test for bug in PR 9.
18 # "make dist" incorrect when AC_CONFIG_AUX_DIR is present.
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.
26 . test-init.sh
28 cat > configure.ac << END
29 AC_INIT([$me], [1.0])
30 AC_CONFIG_AUX_DIR([support])
31 AM_INIT_AUTOMAKE
32 AC_CONFIG_FILES([Makefile])
33 AC_OUTPUT
34 END
36 : > Makefile.am
38 mkdir support
40 $ACLOCAL
42 $AUTOCONF
43 $AUTOMAKE -a -c
44 ./configure
45 $MAKE
46 $MAKE distcheck
48 gzip -d $distdir.tar.gz
50 tar tf $distdir.tar | $FGREP support
52 tar xf $distdir.tar
53 ls -l . $distdir # For debugging.
54 test -d $distdir/support
55 ls -l $distdir/support # For debugging.
56 test -f $distdir/support/install-sh