[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_PROG_LEX doesn't notice when lex isn't installed
From: |
Stepan Kasal |
Subject: |
Re: AC_PROG_LEX doesn't notice when lex isn't installed |
Date: |
Thu, 24 Feb 2005 06:41:31 +0100 |
User-agent: |
Mutt/1.4.1i |
Hi,
On Wed, Feb 23, 2005 at 03:51:06PM -0800, Paul Eggert wrote:
> No, because people typically ship lex's output as part of the source code.
I agree with Paul. Let me explain that this means that lex is not called
unless you modify the lex source.
> AC_PROG_LEX
> case $LEX in
> :) AC_MSG_ERROR([No lex program found]);;
> esac
You also mentioned AC_PROG_YACC; the situation is a bit different there.
I suggest that you replace the call with:
AC_CHECK_PROGS(YACC, 'bison -y' byacc yacc, :)
and then you can again test for : to see whether yacc was found.
HTH,
Stepan Kasal