Build: add version check on flex
[babeltrace.git] / configure.ac
index 413ba7454aa681bb885b8a733836a497c154248d..dc23daaa056c4ddc06d9104ad8ec4d29713bb3fe 100644 (file)
@@ -47,6 +47,10 @@ if test ! -f "$srcdir/formats/ctf/metadata/ctf-lexer.c"; then
                 AC_MSG_ERROR([[flex not found and is required when building from git.
                 Please install flex]])
         fi
+        AC_PATH_PROG([FLEX],[flex])
+        AX_PROG_FLEX_VERSION([2.5.35], [],[
+                AC_MSG_ERROR([[Flex >= 2.5.35 is required when building from git]])
+        ])
 fi
 
 
This page took 0.022623 seconds and 4 git commands to generate.