Next: , Previous: , Up: The Macros  


ax_prog_flex_version

Synopsis

   AX_PROG_FLEX_VERSION([VERSION],[ACTION-IF-TRUE],[ACTION-IF-FALSE])

Description

Makes sure that flex version is greater or equal to the version indicated. If true the shell commands in ACTION-IF-TRUE are executed. If not the shell commands in commands in ACTION-IF-TRUE are executed. If not the shell commands in ACTION-IF-FALSE are run. Note if $FLEX is not set (for example by running AC_CHECK_PROG or AC_PATH_PROG) the macro will fail.

Example:

  AC_PATH_PROG([FLEX],[flex])
  AX_PROG_FLEX_VERSION([2.5.39],[ ... ],[ ... ])

This will check to make sure that the flex you have is at least version 2.5.39 or greater.

NOTE: This macro uses the $FLEX variable to perform the check.

Source Code

Download the latest version of ax_prog_flex_version.m4 or browse the macro’s revision history.

License

Copyright © 2015 Jonathan Rajotte-Julien jonathan.rajotte-julien@efficios.com

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.