Prefer https: URLs
[automake.git] / t / output7.sh
blob9fb255e80cc4760fdfd9114c4cb2eaac509c8568
1 #! /bin/sh
2 # Copyright (C) 2003-2017 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 # Check for support for colon separated input files in AC_CONFIG_FILES,
18 # with sources in sub directories.
20 . test-init.sh
22 cat > configure.ac << END
23 AC_INIT([$me], [1.0])
24 AM_INIT_AUTOMAKE
25 AC_CONFIG_FILES([
26 Makefile:mk/toplevel.in
27 sub/Makefile:mk/sub.in
28 mk/Makefile
30 AC_OUTPUT
31 END
33 mkdir mk sub
34 cat >mk/Makefile.am <<'EOF'
35 all-local:
36 @echo in--mk
37 EOF
39 cat >mk/sub.am <<'EOF'
40 EXTRA_DIST = foo
41 all-local:
42 @echo in--sub
43 EOF
45 cat >mk/toplevel.am <<'EOF'
46 all-local:
47 @echo at--toplevel
48 SUBDIRS = mk sub
49 EOF
51 # We have to distribute something in foo, because some versions
52 # of tar do not archive empty directories when passed the 'o'
53 # flags. (This was fixed in GNU tar 1.12, but older
54 # versions are still used: NetBSD 1.6.1 ships with tar 1.11.2).
56 # If sub/ is missing from the archive, config.status will fail
57 # to compute $ac_abs_srcdir during a VPATH build: config.status
58 # is able to create sub/ in the build tree, but it assumes the
59 # directory already exists in the source tree.
60 echo bar > sub/foo
62 $ACLOCAL
63 $AUTOCONF
64 $AUTOMAKE
65 ./configure
66 run_make -O
67 grep in--mk stdout
68 grep in--sub stdout
69 grep at--toplevel stdout
71 $MAKE distcheck