Better aclocal/AM_ support
[platform/upstream/automake.git] / tests / error.test
1 #! /bin/sh
2
3 # Test to make sure error handling in add_file works.
4
5 . $srcdir/defs || exit 1
6
7 cat > configure.in << 'END'
8 AM_C_PROTOTYPES
9 END
10
11 # Set up a strange environment, where AM_C_PROTOTYPES exists but its
12 # dependency does not.
13 cat > AM_C_PROTOTYPES.m4 << 'END'
14 AC_REQUIRE([AM_PROG_CC_STDC])
15 END
16
17 # Our --acdir overrides the one in $ACLOCAL.
18 $ACLOCAL --acdir=. && exit 1
19 exit 0