summaryrefslogtreecommitdiff
path: root/autoconf/m4/flex.m4
blob: 5cb3dc4f8fdd566a7b070651d0472ac419212123 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#
# Check for FLEX.  
#
# This macro verifies that flex is installed.  If successful, then
# 1) $LEX is set to "flex" (to emulate lex calls)
# 2) BISON is set to bison
AC_DEFUN([AC_PROG_FLEX],
[AC_CACHE_CHECK(,
ac_cv_has_flex,
[AC_PROG_LEX()
])
if test "$LEX" != "flex"; then
  AC_MSG_ERROR([flex not found but required])
else
  AC_SUBST(FLEX,[flex],[location of flex])
fi
])