]> granicus.if.org Git - php/commitdiff
Replace AM_PROG_LEX with a separated call to AC_PROG_LEX and AC_DECL_YYTEXT.
authorSascha Schumann <sas@php.net>
Tue, 6 Mar 2001 16:51:53 +0000 (16:51 +0000)
committerSascha Schumann <sas@php.net>
Tue, 6 Mar 2001 16:51:53 +0000 (16:51 +0000)
The latter is only called, if lex was found, so that PHP configures now
on setups without (f)lex.

build/build2.mk
configure.in

index 689c01be5dae925e96da9bb682d7fe504b681e54..c1d968a14b6700af0ae48dda3270477a96a8ae14 100644 (file)
@@ -54,14 +54,13 @@ $(makefile_in_files): $(makefile_am_files) aclocal.m4 configure.in $(config_m4_f
                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 
index 9e30ddcdf6e7ead4f4cc85846fe75dfd7e9c2c76..9e150efcd48c5f71f9628ec44c51f1b55b4fdfbc 100644 (file)
@@ -116,7 +116,10 @@ AC_PROG_RANLIB
 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