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 @@ -989,15 +989,12 @@ PHP_ARG_ENABLE([dmalloc],
989989 [ no] ,
990990 [ no] )
991991
992- if test "$PHP_DMALLOC" = "yes"; then
993- AC_CHECK_LIB ( dmalloc , dmalloc_error , [
994- PHP_ADD_LIBRARY(dmalloc)
995- AC_DEFINE ( HAVE_DMALLOC ,1 ,[ Whether you have dmalloc] )
996- CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK"
997- ] , [
998- AC_MSG_ERROR ( [ Problem with enabling dmalloc. Please check config.log for details.] )
999- ] )
1000- fi
992+ AS_VAR_IF ( [ PHP_DMALLOC] , [ yes] ,
993+ [ AC_CHECK_LIB ( [ dmalloc] , [ dmalloc_error] ,
994+ [ PHP_ADD_LIBRARY([ dmalloc] )
995+ AC_DEFINE ( [ HAVE_DMALLOC] , [ 1] , [ Define to 1 if you have dmalloc.] )
996+ AS_VAR_APPEND ( [ CPPFLAGS] , [ " -DDMALLOC_FUNC_CHECK"] ) ] ,
997+ [ AC_MSG_ERROR ( [ Problem with enabling dmalloc. Please, check config.log for details.] ) ] ) ] )
1001998
1002999PHP_ARG_ENABLE([ ipv6] ,
10031000 [ whether to enable IPv6 support] ,
You can’t perform that action at this time.
0 commit comments