3 # Make sure ":" works with files automake generates.
4 # This test is for multiple ":"s.
6 . $srcdir/defs || exit 1
8 cat > configure.in << 'END'
10 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
11 AC_OUTPUT(Makefile:zardoz.in:two.in:three.in)
21 # We actually check several things here.
22 # Automake should have created zardoz.in.
23 test -f zardoz.in || exit 1
25 # The generated file should refer to zardoz.in and zardoz.am, but
26 # never just "zardoz" -- except the actual automake invocation can
27 # refer to it (don't ask).
29 grep zardoz zardoz.in | $FGREP -v 'zardoz.in' | $FGREP -v 'zardoz.am' \
30 | $FGREP -v AUTOMAKE > O
31 # We cat the output file so we see in when verbose.
33 test -z "`cat O`" || exit 1
35 # Makefile should depend on two.in.
37 grep '^Makefile:.* two.in' zardoz.in || exit 1
40 grep '^Makefile:.* three.in' zardoz.in