Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Get ready for release
[simgrid.git] / acmacro / flex.m4
index 1821e61..0f66a94 100644 (file)
@@ -1,7 +1,7 @@
 dnl AC_PROG_FLEX: Check whether the LEXer is flex, and which version it has
 dnl The first arg must be a version number with 3 parts.
 
-dnl hint: I guess you want to check for a version number higher to 2.5.31
+dnl You may want to check for version >= 2.5.31 (the one breaking posix compatibility)
 
 AC_DEFUN([_AC_PROG_FLEX_HELPER_TOO_OLD],[
   AC_MSG_NOTICE([Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v$1)])
@@ -21,7 +21,6 @@ AC_DEFUN([AC_PROG_FLEX],
       dnl
       dnl We were asked to check the version number
       dnl
-      set -x
       changequote(<<, >>)dnl because of the regexp [blabla]
       FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
 
@@ -42,9 +41,7 @@ AC_DEFUN([AC_PROG_FLEX],
         LEX="$SHELL $missing_dir/missing flex";
         AC_SUBST(LEXLIB, '')
       fi
-      set +x
     fi
   fi
   AC_MSG_NOTICE([Flex found. Parsers will get updated])
-  exit 0
 ])