doc: typos in test file.
[automake.git] / t / output13.sh
blob73d1b458b19f189cd61499696b4c09aa45c27a37
1 #! /bin/sh
2 # Copyright (C) 2007-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 # Make sure an AC_CONFIG_FILES, AC_CONFIG_LINKS, and AC_CONFIG_COMMANDS
18 # are not prerequisites of 'all'.
20 . test-init.sh
22 cat >> configure.ac << \END
23 AC_SUBST([FOO], [foo])
24 if $create; then
25 AC_CONFIG_FILES([file])
26 AC_CONFIG_LINKS([link:input])
27 AC_CONFIG_COMMANDS([stamp], [echo stamp > stamp])
29 AC_OUTPUT
30 END
32 : >Makefile.am
34 echo link > input
35 echo @FOO@ >file.in
37 $ACLOCAL
38 $AUTOCONF
39 $AUTOMAKE
41 ./configure create=false
42 $MAKE
43 test ! -e file
44 test ! -e link
45 test ! -e stamp
47 ./configure create=:
48 test -f file
49 test -f link
50 test -f stamp