diff options
author | Sascha Schumann <sas@php.net> | 2000-05-17 19:08:44 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2000-05-17 19:08:44 +0000 |
commit | db3d16dca10a97a378fffb33bca04f281764792a (patch) | |
tree | 69e92bd13b213166756ddde834b1dccf1464c63c /acinclude.m4 | |
parent | 6173835699a90d6f9f98bc24656b8f13f0808e21 (diff) | |
download | php-git-db3d16dca10a97a378fffb33bca04f281764792a.tar.gz |
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.
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 28 |
1 files changed, 28 insertions, 0 deletions
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 <<X +CONFIGURE: $CONFIGURE_COMMAND +CC: $CC +CFLAGS: $CFLAGS +CPPFLAGS: $CPPFLAGS +CXX: $CXX +CXXFLAGS: $CXXFLAGS +INCLUDES: $INCLUDES +LDFLAGS: $LDFLAGS +LIBS: $LIBS +DLIBS: $DLIBS +SAPI: $PHP_SAPI +PHP_RPATHS: $PHP_RPATHS +uname -a: `uname -a` + +X + cat >conftest.$ac_ext <<X +main() +{ + exit(0); +} +X + (eval echo \"$ac_link\"; eval $ac_link && ./conftest) >>$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 <time.h>],[struct tm *(*func)() = localtime_r],[ |