When we detect if lex is flex, we run 'lex --version', which may
complain to stderr if lex is not flex. Instead of printing such errors
to the person running 'configure', redirect stderr to config.log along
with stdout.
Change-Id: I812805245a2638eda5885a41a6d70ffeff608c58
Reviewed-on: http://gerrit.openafs.org/2462
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Russ Allbery <rra@stanford.edu>
# OPENAFS_LEX_IS_FLEX([ACTION-IF-SUCCESS], [ACTION-IF-FAILURE])
AC_DEFUN([OPENAFS_LEX_IS_FLEX],
[AC_MSG_CHECKING([if lex is flex])
- AS_IF([echo '' | $LEX --version >&AS_MESSAGE_LOG_FD],
+ AS_IF([echo '' | $LEX --version >&AS_MESSAGE_LOG_FD 2>&1],
[AC_MSG_RESULT([yes])
$1],
[AC_MSG_RESULT([no])