Merge branch 'minor'
[automake.git] / m4 / lex.m4
blobd729c31079012def3f07b8345eb37237184a7097
1 ## Replacement for AC_PROG_LEX.                            -*-  Autoconf -*-
2 ## by Alexandre Oliva <oliva@dcc.unicamp.br>
3 # Copyright (C) 1998-2017 Free Software Foundation, Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
9 # AM_PROG_LEX
10 # -----------
11 # Autoconf leaves LEX=: if lex or flex can't be found.  Change that to a
12 # "missing" invocation, for better error output.
13 AC_DEFUN([AM_PROG_LEX],
14 [AC_PREREQ([2.50])dnl
15 AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
16 AC_REQUIRE([AC_PROG_LEX])dnl
17 if test "$LEX" = :; then
18   LEX=${am_missing_run}flex
19 fi])