summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2001-08-18 18:14:22 +0000
committerfoobar <sniper@php.net>2001-08-18 18:14:22 +0000
commite74c4e0a45a07d87f6824cd4695c83b10c6a2db7 (patch)
tree079783489a36b4627b722a6c67f3215e996f0cb8
parentd921a2a5ea7377d8df8645704fb7f6f9f47af6be (diff)
downloadphp-git-e74c4e0a45a07d87f6824cd4695c83b10c6a2db7.tar.gz
Added a check for libdmalloc whether it works (is found..) or not.
# We should always test every library (when possible) before # adding them..
-rw-r--r--configure.in11
1 files changed, 8 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index 2fb70db52a..323512af3c 100644
--- a/configure.in
+++ b/configure.in
@@ -609,9 +609,14 @@ PHP_ARG_ENABLE(dmalloc,whether to enable dmalloc,
[ --enable-dmalloc Enable dmalloc])
if test "$PHP_DMALLOC" = "yes"; then
- AC_DEFINE(HAVE_DMALLOC,1,[Whether you have dmalloc])
- PHP_ADD_LIBRARY(dmalloc)
- CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK"
+
+ AC_CHECK_LIB(dmalloc, dmalloc_error, [
+ PHP_ADD_LIBRARY(dmalloc)
+ AC_DEFINE(HAVE_DMALLOC,1,[Whether you have dmalloc])
+ CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK"
+ ], [
+ AC_MSG_ERROR(Problem with enabling dmalloc. Please check config.log for details.)
+ ])
fi
# temporary until streams are better integrated