From db3d16dca10a97a378fffb33bca04f281764792a Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Wed, 17 May 2000 19:08:44 +0000 Subject: [PATCH] Add debug.log facility. If there are any obscure bugs in our build system, this will give us enough information to find and fix it. --- acinclude.m4 | 28 ++++++++++++++++++++++++++++ configure.in | 23 +++++++++++++++++++++++ ext/standard/config.m4 | 1 + 3 files changed, 52 insertions(+) diff --git a/acinclude.m4 b/acinclude.m4 index 3dfb7c99d7..3b9f6a2298 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -4,6 +4,34 @@ dnl This file contains local autoconf functions. sinclude(dynlib.m4) +AC_DEFUN(PHP_DEBUG_MACRO,[ + DEBUG_LOG="$1" + cat >$1 <conftest.$ac_ext <>$1 2>&1 + rm -fr conftest* +]) + AC_DEFUN(PHP_MISSING_TIME_R_DECL,[ AC_MSG_CHECKING(for missing declarations of reentrant functions) AC_TRY_COMPILE([#include ],[struct tm *(*func)() = localtime_r],[ diff --git a/configure.in b/configure.in index be04a2c87a..01aa17a20e 100644 --- a/configure.in +++ b/configure.in @@ -868,6 +868,23 @@ if true; then fi fi + + if test -n "$DEBUG_LOG"; then + rm -f config.cache +cat <