* automake.texi (Macros): Document AM_PROG_AS.
[automake.git] / tests / lex2.test
blob34d45a9cc156abf9ec235b71beecd886dfb2f9c5
1 #! /bin/sh
3 # Test to make sure AC_PROG_LEX is an error.
5 . $srcdir/defs || exit 1
7 cat >> configure.in << 'END'
8 AC_PROG_CC
9 AC_PROG_LEX
10 AC_DECL_YYTEXT
11 END
13 cat > Makefile.am << 'END'
14 bin_PROGRAMS = zot
15 zot_SOURCES = joe.l
16 LDADD = @LEXLIB@
17 END
19 : > joe.l
21 $ACLOCAL || exit 1
22 $AUTOMAKE --Wno-error 2> output || exit 1
23 test -n "`cat output`"