system: Linux mars.sprixweb.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
PHP_ARG_ENABLE(mailparse, whether to enable mailparse support,
[ --enable-mailparse Enable mailparse support.])
if test "$PHP_MAILPARSE" != "no"; then
if test "$ext_shared" != "yes" && test "$enable_mbstring" != "yes"; then
AC_MSG_WARN(Activating mbstring)
enable_mbstring=yes
fi
AC_MSG_CHECKING(libmbfl headers)
if test -f $abs_srcdir/ext/mbstring/libmbfl/mbfl/mbfilter.h; then
dnl build in php-src tree
AC_MSG_RESULT(found in $abs_srcdir/ext/mbstring)
elif test -f $phpincludedir/ext/mbstring/libmbfl/mbfl/mbfilter.h; then
dnl build alone
AC_MSG_RESULT(found in $phpincludedir/ext/mbstring)
else
AC_MSG_ERROR(mbstring extension with libmbfl is missing)
fi
PHP_NEW_EXTENSION(mailparse, mailparse.c php_mailparse_mime.c php_mailparse_rfc822.c, $ext_shared)
PHP_ADD_EXTENSION_DEP(mailparse, mbstring, true)
PHP_ADD_MAKEFILE_FRAGMENT
fi