Skip to content

Commit

Permalink
add dmalloc
Browse files Browse the repository at this point in the history
  • Loading branch information
Sascha Schumann committed Jun 26, 1999
1 parent f3ef2ff commit 6ec7163
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions acconfig.h.in
Expand Up @@ -10,6 +10,8 @@
#define CONFIGURATION_FILE_PATH "php3.ini"
#define USE_CONFIG_FILE 1

#undef HAVE_DMALLOC

/* Some global constants defined by conigure */
#undef PHP_BUILD_DATE
#undef PHP_OS
Expand Down
13 changes: 13 additions & 0 deletions configure.in.in
Expand Up @@ -838,6 +838,19 @@ AC_ARG_ENABLE(url-fopen-wrapper,
AC_MSG_RESULT(yes)
])
DMALLOC_RESULT=no
AC_MSG_CHECKING(whether to enable dmalloc)
AC_ARG_ENABLE(dmalloc,
[ --enable-dmalloc Enable dmalloc],
[
if test "$enableval" = "yes" ; then
AC_DEFINE(HAVE_DMALLOC, 1)
AC_ADD_LIBRARY(dmalloc)
CFLAGS="$CFLAGS -DDMALLOC_FUNC_CHECK"
DMALLOC_RESULT=yes
fi
])
AC_MSG_RESULT($DMALLOC_RESULT)
divert(3)
Expand Down
4 changes: 4 additions & 0 deletions main/php.h
Expand Up @@ -33,6 +33,10 @@
#ifndef _PHP_H
#define _PHP_H

#ifdef HAVE_DMALLOC
#include <dmalloc.h>
#endif

#define PHP_API_VERSION 19990421

#define YYDEBUG 0
Expand Down

0 comments on commit 6ec7163

Please sign in to comment.