1 # Private macros for the kpathsea library.
2 # Copyright (C) 2003 - 2009 Karl Berry <tex-live@tug.org>
4 # This file is free software; the copyright holder
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
12 # Like AC_PROG_LEX, with the flag '-l' for flex.
13 AC_DEFUN([KPSE_PROG_LEX],
15 # Work around a problem with Flex Version 2.5.31 which needs -l flag.
16 # Since all recent versions of flex support -l, don't check for the
17 # specific version, but check that at least "--version" is supported.
18 # We also want to catch LEX=/some/where/flex, so:
20 *flex) $LEX --version >/dev/null 2>&1 && LEX="$LEX -l" ;;