]> granicus.if.org Git - php/commitdiff
Suppress the other nasty warning
authorSascha Schumann <sas@php.net>
Thu, 8 Feb 2001 00:49:24 +0000 (00:49 +0000)
committerSascha Schumann <sas@php.net>
Thu, 8 Feb 2001 00:49:24 +0000 (00:49 +0000)
build/build2.mk

index c64fd6540c04c962e966e0e31afaffc99a5a8885..689c01be5dae925e96da9bb682d7fe504b681e54 100644 (file)
@@ -61,16 +61,18 @@ $(makefile_in_files): $(makefile_am_files) aclocal.m4 configure.in $(config_m4_f
 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)
+       
 $(config_h_in): configure acconfig.h
 # explicitly remove target since autoheader does not seem to work 
 # correctly otherwise (timestamps are not updated)
        @echo rebuilding $@
        @rm -f $@
-       @autoheader 2>&1 | (grep -v 'warning: AC_TRY_RUN called without default to allow cross compiling'||true)
+       @autoheader 2>&1 | $(SUPPRESS_WARNINGS)
 
 $(TOUCH_FILES):
        touch $(TOUCH_FILES)
 
 configure: aclocal.m4 configure.in $(config_m4_files)
        @echo rebuilding $@
-       @autoconf 2>&1 | (grep -v 'warning: AC_TRY_RUN called without default to allow cross compiling'||true)
+       @autoconf 2>&1 | $(SUPPRESS_WARNINGS)