-
Notifications
You must be signed in to change notification settings - Fork 30
/
config.m4
24 lines (21 loc) · 896 Bytes
/
config.m4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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