Created attachment 1098 [details] patch against autogen.sh autogen.sh always checks the version of the `lex` executable, not the executable specified in $LEX. The configure script uses `lex` only as fallback when no $LEX is specified. The attached patch changes autogen.sh to match the behavior of autoconf. This helps on OpenBSD since the base `lex` is too old, but the ports `gmake` is new enough.
Changes related to this bug have been committed. Please check latest CVS and update the bug accordingly. You can also get the patch from: http://www.claws-mail.org/tracker/ 2012-10-10 [colin] 3.8.1cvs89 * autogen.sh Fix bug #2638, "Respect $LEX environment variable in autogen.sh"