mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
f19a222b69
per the recommended style guide for autoconf and so that individual autoconf functions can more easily be shared across projects. llvm-svn: 16223
18 lines
376 B
Plaintext
18 lines
376 B
Plaintext
#
|
|
# 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
|
|
])
|