| 1 |
# Private macros for the kpathsea library. |
| 2 |
# Copyright (C) 2003 - 2009 Karl Berry <[email protected]> |
| 3 |
# |
| 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. |
| 7 |
|
| 8 |
# serial 1 |
| 9 |
|
| 10 |
# KPSE_PROG_LEX() |
| 11 |
# --------------- |
| 12 |
# Like AC_PROG_LEX, with the flag '-l' for flex. |
| 13 |
AC_DEFUN([KPSE_PROG_LEX], |
| 14 |
[AC_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: |
| 19 |
case $LEX in |
| 20 |
*flex) $LEX --version >/dev/null 2>&1 && LEX="$LEX -l" ;; |
| 21 |
esac |
| 22 |
]) # KPSE_PROG_LEX |
| 23 |
|