+2016-01-18 Alan Modra <amodra@gmail.com>
+
+ * configure: Regenerate.
+
2016-01-17 Alan Modra <amodra@gmail.com>
* configure: Regenerate.
done
test -n "$LEX" || LEX=":"
-if test "x$LEX" != "x:"; then
- cat >conftest.l <<_ACEOF
+case "$LEX" in
+ :|*"missing "*) ;;
+ *) cat >conftest.l <<_ACEOF
%%
a { ECHO; }
b { REJECT; }
fi
rm -f conftest.l $LEX_OUTPUT_ROOT.c
-
-fi
+ ;;
+esac
if test "$LEX" = :; then
LEX=${am_missing_run}flex
fi
+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
])
+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])
+
])
+2016-01-18 Alan Modra <amodra@gmail.com>
+
+ * configure: Regenerate.
+
2016-01-17 Alan Modra <amodra@gmail.com>
* configure: Regenerate.
done
test -n "$LEX" || LEX=":"
-if test "x$LEX" != "x:"; then
- cat >conftest.l <<_ACEOF
+case "$LEX" in
+ :|*"missing "*) ;;
+ *) cat >conftest.l <<_ACEOF
%%
a { ECHO; }
b { REJECT; }
fi
rm -f conftest.l $LEX_OUTPUT_ROOT.c
-
-fi
+ ;;
+esac
if test "$LEX" = :; then
LEX=${am_missing_run}flex
fi
+2016-01-18 Alan Modra <amodra@gmail.com>
+
+ * configure: Regenerate.
+
2016-01-18 Nick Clifton <nickc@redhat.com>
* testsuite/ld-plugin/plugin.exp: Skip plugin tests if the linker
done
test -n "$LEX" || LEX=":"
-if test "x$LEX" != "x:"; then
- cat >conftest.l <<_ACEOF
+case "$LEX" in
+ :|*"missing "*) ;;
+ *) cat >conftest.l <<_ACEOF
%%
a { ECHO; }
b { REJECT; }
fi
rm -f conftest.l $LEX_OUTPUT_ROOT.c
-
-fi
+ ;;
+esac
if test "$LEX" = :; then
LEX=${am_missing_run}flex
fi