summaryrefslogtreecommitdiffstats
path: root/m4/flex.m4
blob: 1b23905fd978bd2f0326700e416efb89125f4ee6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#serial 1

# Check for flex.

AC_DEFUN([gt_PROG_LEX],
[
  dnl Don't use AC_PROG_LEX or AM_PROG_LEX; we insist on flex.
  dnl Thus we don't need LEXLIB.
  AC_CHECK_PROG(LEX, flex, flex, :)

  dnl The next line is a workaround against an automake warning.
  undefine([AC_DECL_YYTEXT])
  dnl Replacement for AC_DECL_YYTEXT.
  LEX_OUTPUT_ROOT=lex.yy
  AC_SUBST(LEX_OUTPUT_ROOT)
])