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],
995
995
[ no] ,
996
996
[ no] )
997
997
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.] ) ] ) ] )
1007
1004
1008
1005
PHP_ARG_ENABLE([ ipv6] ,
1009
1006
[ whether to enable IPv6 support] ,
You can’t perform that action at this time.
0 commit comments