mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 12:34:43 +00:00
Provide AC_PROG_LEX that copes with LEX=missing from top-level
config/ PR binutils/19481 * override.m4 (AC_PROG_LEX): Define. binutils/ * configure: Regenerate. gas/ * configure: Regenerate. ld/ * configure: Regenerate.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2016-01-18 Alan Modra <amodra@gmail.com>
|
||||
|
||||
PR binutils/19481
|
||||
* override.m4 (AC_PROG_LEX): Define.
|
||||
|
||||
2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
|
||||
|
||||
* bootstrap-asan.mk: Replace ASAN_OPTIONS=detect_leaks with
|
||||
|
||||
@@ -101,4 +101,16 @@ m4_define([_AC_CHECK_DECLS],
|
||||
|
||||
])
|
||||
|
||||
dnl If flex/lex are not found, the top level configure sets LEX to
|
||||
dnl "/path_to/missing flex". When AC_PROG_LEX tries to find the flex
|
||||
dnl output file, it calls $LEX to do so, but the current lightweight
|
||||
dnl "missing" won't create a file. This results in an error.
|
||||
dnl Avoid calling the bulk of AC_PROG_LEX when $LEX is "missing".
|
||||
AC_DEFUN_ONCE([AC_PROG_LEX],
|
||||
[AC_CHECK_PROGS(LEX, flex lex, :)
|
||||
case "$LEX" in
|
||||
:|*"missing "*) ;;
|
||||
*) _AC_PROG_LEX_YYTEXT_DECL ;;
|
||||
esac])
|
||||
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user