summaryrefslogtreecommitdiff
path: root/ext/imap/config.m4
diff options
context:
space:
mode:
Diffstat (limited to 'ext/imap/config.m4')
-rw-r--r--ext/imap/config.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/imap/config.m4 b/ext/imap/config.m4
index 0564235f4a..9a4eb71270 100644
--- a/ext/imap/config.m4
+++ b/ext/imap/config.m4
@@ -124,6 +124,18 @@ if test "$PHP_IMAP" != "no"; then
fi
done
+ old_CPPFLAGS=$CPPFLAGS
+ CPPFLAGS=-I$IMAP_INC_DIR
+ AC_EGREP_CPP(this_is_true, [
+ #include "imap4r1.h"
+ #if defined(IMAPSSLPORT)
+ this_is_true
+ #endif
+ ],[
+ AC_DEFINE(HAVE_IMAP2001, 1, [ ])
+ ],[ ])
+ CPPFLAGS=$old_CPPFLAGS
+
AC_CHECK_LIB(pam, pam_start)
AC_CHECK_LIB(crypt, crypt)