* configure.in: Upped to version 1.4k.
[automake.git] / tests / stamph2.test
blob79536f288c2727f8a4d494d0b95438b3634f2cad
1 #! /bin/sh
3 # Make sure stamp-h* files are created where we expect
5 . $srcdir/defs || exit 1
7 cat > configure.in << 'END'
8 AC_INIT(Makefile.am)
9 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
10 AM_CONFIG_HEADER(firstfile.h sdir/secondfile.h thirdfile.h)
11 AC_OUTPUT(Makefile)
12 END
14 : > Makefile.am
15 mkdir sdir
16 : > firstfile.h.in
17 : > sdir/secondfile.h.in
18 : > thirdfile.h.in
20 # Fail gracefully if no autoconf.
21 $needs_autoconf
23 $ACLOCAL || exit 1
24 $AUTOCONF || exit 1
25 $AUTOMAKE || exit 1
26 ./configure || exit 1
28 (test -f stamp-h1 && test -f sdir/stamp-h2 && test -f stamp-h3) || exit 1
29 exit 0