The latter is only called, if lex was found, so that PHP configures now
on setups without (f)lex.
fi; \
done
@test -f want_dependencies || flag=-i; \
- automake -a $$flag $(AMFLAGS) $(makefile_files) \
- || true >&2
+ automake -a $$flag $(AMFLAGS) $(makefile_files) 2>&1 | $(SUPPRESS_WARNINGS)
@for i in $(LT_TARGETS); do mv $$i.bak $$i; done
aclocal.m4: configure.in acinclude.m4 dynlib.m4
aclocal
-SUPPRESS_WARNINGS = (egrep -v '(warning: AC_TRY_RUN called without default to allow cross compiling|AC_PROG_CXXCPP was called before AC_PROG_CXX)'||true)
+SUPPRESS_WARNINGS = (egrep -v '(warning: AC_TRY_RUN called without default to allow cross compiling|AC_PROG_CXXCPP was called before AC_PROG_CXX|.*AM_PROG_LEX.*)'||true)
$(config_h_in): configure acconfig.h
# explicitly remove target since autoheader does not seem to work
AC_PROG_CC_C_O
AC_PROG_LN_S
-AM_PROG_LEX
+AC_PROG_LEX
+if test -n "$LEX"; then
+ AC_DECL_YYTEXT
+fi
dnl ## Make flex scanners use const if they can, even if __STDC__ is not
dnl ## true, for compilers like Sun's that only set __STDC__ true in