Removed
Link Here
|
1 |
--- config.m4.orig 2018-09-11 22:12:36 UTC |
2 |
+++ config.m4 |
3 |
@@ -103,6 +103,8 @@ PHP_ARG_WITH(kerberos,for IMAP Kerberos |
4 |
PHP_ARG_WITH(imap-ssl,for IMAP SSL support, |
5 |
[ --with-imap-ssl[=DIR] IMAP: Include SSL support. DIR is the OpenSSL install prefix], no, no) |
6 |
|
7 |
+PHP_ARG_WITH(pcre-dir, pcre install prefix, |
8 |
+[ --with-pcre-dir IMAP: pcre install prefix], no, no) |
9 |
|
10 |
if test "$PHP_IMAP" != "no"; then |
11 |
PHP_SUBST(IMAP_SHARED_LIBADD) |
12 |
@@ -119,6 +121,30 @@ if test "$PHP_IMAP" != "no"; then |
13 |
fi |
14 |
done |
15 |
|
16 |
+ dnl This is PECL build, check if bundled PCRE library is used |
17 |
+ old_CPPFLAGS=$CPPFLAGS |
18 |
+ CPPFLAGS=$INCLUDES |
19 |
+ AC_EGREP_CPP(yes,[ |
20 |
+#include <main/php_config.h> |
21 |
+#if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE) |
22 |
+yes |
23 |
+#endif |
24 |
+ ],[ |
25 |
+ PHP_PCRE_REGEX=yes |
26 |
+ ],[ |
27 |
+ AC_EGREP_CPP(yes,[ |
28 |
+#include <main/php_config.h> |
29 |
+#if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE) |
30 |
+yes |
31 |
+#endif |
32 |
+ ],[ |
33 |
+ PHP_PCRE_REGEX=pecl |
34 |
+ PHP_ADD_INCLUDE($PHP_PCRE_DIR/include) |
35 |
+ ],[ |
36 |
+ PHP_PCRE_REGEX=no |
37 |
+ ]) |
38 |
+ ]) |
39 |
+ |
40 |
dnl Check for c-client version 2004 |
41 |
AC_EGREP_HEADER(mail_fetch_overview_sequence, $IMAP_INC_DIR/mail.h, [ |
42 |
AC_DEFINE(HAVE_IMAP2004,1,[ ]) |