autoconf-archive-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] ax_prog_flex: change grep syntax to accept e.g. flex.real in cas


From: Andreas Oberritter
Subject: [PATCH] ax_prog_flex: change grep syntax to accept e.g. flex.real in case a wrapper or symlink is used.
Date: Mon, 15 Apr 2013 22:31:08 +0200

---
 m4/ax_prog_flex.m4 |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/m4/ax_prog_flex.m4 b/m4/ax_prog_flex.m4
index 3b321ca..9182db6 100644
--- a/m4/ax_prog_flex.m4
+++ b/m4/ax_prog_flex.m4
@@ -49,7 +49,7 @@ AC_DEFUN([AX_PROG_FLEX], [
   AC_REQUIRE([AC_PROG_EGREP])
 
   AC_CACHE_CHECK([if flex is the lexer generator],[ax_cv_prog_flex],[
-    AS_IF([$LEX --version 2>/dev/null | $EGREP -q '^flex '],
+    AS_IF([$LEX --version 2>/dev/null | $EGREP -q '^\<flex\>'],
       [ax_cv_prog_flex=yes], [ax_cv_prog_flex=no])
   ])
   AS_IF([test "$ax_cv_prog_flex" = "yes"],
-- 
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]