mirror of
https://github.com/php/pecl-mail-mailparse.git
synced 2026-03-23 22:52:14 +01:00
25 lines
896 B
Plaintext
25 lines
896 B
Plaintext
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
|