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 | |
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.
-rw-r--r-- | acinclude.m4 | 28 | ||||
-rw-r--r-- | configure.in | 23 | ||||
-rw-r--r-- | ext/standard/config.m4 | 1 |
3 files changed, 52 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],[ 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 <<X ++--------------------------------------------------------------------+ +| ATTENTION! | +| Something is likely to be screwed up here, because the configure | +| script was not able to detect a simple feature on your platform. | +| This is often caused by incorrect configuration parameters. Please | +| see the file debug.log for error messages. | +| | +| If you are unable to fix this, send the file debug.log to the | +| php-install@lists.php.net mailing list and include appropiate | +| information about your setup. | +X + fi + echo "+--------------------------------------------------------------------+" echo "| License: |" echo "| This software is subject to the PHP License, available in this |" @@ -877,6 +894,12 @@ if true; then echo "| the installation process at this point. |" echo "+--------------------------------------------------------------------+" +cat<<X + +Thank you for using PHP. + +X + fi ]) diff --git a/ext/standard/config.m4 b/ext/standard/config.m4 index 0025e8361c..7016318cbe 100644 --- a/ext/standard/config.m4 +++ b/ext/standard/config.m4 @@ -26,6 +26,7 @@ main() { if test "$ac_cv_crypt_des" = "yes"; then ac_result=1 else + PHP_DEBUG_MACRO(debug.log) ac_result=0 fi AC_DEFINE_UNQUOTED(PHP_STD_DES_CRYPT, $ac_result, [Whether the system supports standard DES salt]) |