MFH: Fix buildconf with BSD make
authorfoobar <sniper@php.net>
Thu, 3 Feb 2005 17:42:59 +0000 (17:42 +0000)
committerfoobar <sniper@php.net>
Thu, 3 Feb 2005 17:42:59 +0000 (17:42 +0000)
build/build2.mk
buildconf

index 42e20670b82fe18a20a6ca00a3138166e15217f7..c361d0d4259cabf66dd38d82daa800f237e86882 100644 (file)
@@ -32,14 +32,9 @@ acconfig_h_SOURCES = acconfig.h.in $(config_h_files)
 
 targets = $(TOUCH_FILES) configure $(config_h_in)
 
-ifeq ($(SHOW_WARNINGS), no)
-       SUPPRESS_WARNINGS = 2>&1 | (egrep -v '(AC_TRY_RUN called without default to allow cross compiling|AC_PROG_CXXCPP was called before AC_PROG_CXX|defined in acinclude.m4 but never used|AC_PROG_LEX invoked multiple times|AC_DECL_YYTEXT is expanded from...|the top level)'||true)
-else
-       debug_target = debugging
-endif
+SUPPRESS_WARNINGS ?= 2>&1 | (egrep -v '(AC_TRY_RUN called without default to allow cross compiling|AC_PROG_CXXCPP was called before AC_PROG_CXX|defined in acinclude.m4 but never used|AC_PROG_LEX invoked multiple times|AC_DECL_YYTEXT is expanded from...|the top level)'||true)
 
-
-all: $(targets) $(debug_target)
+all: $(targets)
 
 acconfig.h: $(acconfig_h_SOURCES)
        @echo rebuilding $@
@@ -63,6 +58,3 @@ configure: aclocal.m4 configure.in $(config_m4_files)
        @echo rebuilding $@
        autoconf $(SUPPRESS_WARNINGS)
 
-debugging:
-       @libtoolize=`./build/shtool path glibtoolize libtoolize`; \
-       $$libtoolize
index ccad6cf1353ba6e3c2c64b262dfb231c599a1b13..8b91c3b14795b59b7e4357d08a14bcb814b3526c 100755 (executable)
--- a/buildconf
+++ b/buildconf
@@ -66,4 +66,8 @@ fi
  
 rm -f generated_lists
 
-${MAKE:-make} -s -f build/build.mk AMFLAGS="$automake_flags" ZENDDIR="$ZENDDIR" SHOW_WARNINGS="$debug"
+if test "$debug" = "yes"; then
+  ${MAKE:-make} -s -f build/build.mk AMFLAGS="$automake_flags" ZENDDIR="$ZENDDIR" SUPPRESS_WARNINGS=""
+else
+  ${MAKE:-make} -s -f build/build.mk AMFLAGS="$automake_flags" ZENDDIR="$ZENDDIR"
+fi