mirror of
https://github.com/php/php-src.git
synced 2024-11-23 09:54:15 +08:00
Added a check for libdmalloc whether it works (is found..) or not.
# We should always test every library (when possible) before # adding them..
This commit is contained in:
parent
d921a2a5ea
commit
e74c4e0a45
11
configure.in
11
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
|
||||
|
Loading…
Reference in New Issue
Block a user