File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -995,15 +995,12 @@ PHP_ARG_ENABLE([dmalloc],
995995 [ no] ,
996996 [ no] )
997997
998- if test "$PHP_DMALLOC" = "yes"; then
999- AC_CHECK_LIB ( dmalloc , dmalloc_error , [
1000- PHP_ADD_LIBRARY(dmalloc)
1001- AC_DEFINE ( HAVE_DMALLOC ,1 ,[ Whether you have dmalloc] )
1002- CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK"
1003- ] , [
1004- AC_MSG_ERROR ( [ Problem with enabling dmalloc. Please check config.log for details.] )
1005- ] )
1006- fi
998+ AS_VAR_IF ( [ PHP_DMALLOC] , [ yes] ,
999+ [ AC_CHECK_LIB ( [ dmalloc] , [ dmalloc_error] ,
1000+ [ PHP_ADD_LIBRARY([ dmalloc] )
1001+ AC_DEFINE ( [ HAVE_DMALLOC] , [ 1] , [ Define to 1 if you have dmalloc.] )
1002+ AS_VAR_APPEND ( [ CPPFLAGS] , [ " -DDMALLOC_FUNC_CHECK"] ) ] ,
1003+ [ AC_MSG_ERROR ( [ Problem with enabling dmalloc. Please, check config.log for details.] ) ] ) ] )
10071004
10081005PHP_ARG_ENABLE([ ipv6] ,
10091006 [ whether to enable IPv6 support] ,
You can’t perform that action at this time.
0 commit comments