build-sys: check and bail out for explicitly detected missing [f]lex.
authorKrisztian Litkey <krisztian.litkey@intel.com>
Wed, 3 Sep 2014 08:00:43 +0000 (11:00 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Wed, 3 Sep 2014 08:06:29 +0000 (11:06 +0300)
configure.ac

index e31240c..305508f 100644 (file)
@@ -47,6 +47,9 @@ AC_SUBST(LEXLIB)
 # Check that we have flex/bison and not lex/yacc.
 AC_MSG_CHECKING([for flex vs. lex])
 case $LEX in
+    *missing\ flex*)
+        AC_MSG_ERROR([looks like you're missing flex])
+        ;;
     *flex*)
         AC_MSG_RESULT([ok, looks like we have flex])
         ;;