From 3d1fd051b6a5c6e3bf04663d88bc0366d7e7e854 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Wed, 21 Jul 2010 17:30:39 -0500 Subject: [PATCH] Log lex/flex detection errors in the config log 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 Reviewed-by: Russ Allbery --- src/cf/flex.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cf/flex.m4 b/src/cf/flex.m4 index d552c1866..6b2b17261 100644 --- a/src/cf/flex.m4 +++ b/src/cf/flex.m4 @@ -1,7 +1,7 @@ # 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]) -- 2.39.5