2004-01-16 16:04:54 +01:00
|
|
|
$NetBSD: patch-aa,v 1.5 2004/01/16 15:04:54 jdolecek Exp $
|
2001-10-16 07:39:57 +02:00
|
|
|
|
2004-01-16 16:04:54 +01:00
|
|
|
--- config.m4.orig 2003-10-03 07:25:35.000000000 +0200
|
|
|
|
+++ config.m4
|
|
|
|
@@ -54,6 +54,14 @@ AC_DEFUN(PHP_IMAP_TEST_BUILD, [
|
|
|
|
])
|
|
|
|
])
|
|
|
|
|
|
|
|
+dsl Must be before --with-kerberos, affects the check
|
|
|
|
+PHP_ARG_WITH(imap-linkage,use IMAP c-client linkage,
|
|
|
|
+[ --with-imap-linkage Use IMAP c-client linkage to determine supported items.])
|
|
|
|
+
|
|
|
|
+if test "$PHP_IMAP_LINKAGE" != "no"; then
|
|
|
|
+ AC_DEFINE(HAVE_IMAP_LINKAGE, 1, [ ])
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
AC_DEFUN(PHP_IMAP_KRB_CHK, [
|
|
|
|
AC_ARG_WITH(kerberos,
|
|
|
|
[ --with-kerberos[=DIR] IMAP: Include Kerberos support. DIR is the Kerberos install dir.],[
|
|
|
|
@@ -90,7 +98,7 @@ AC_DEFUN(PHP_IMAP_KRB_CHK, [
|
2002-11-02 01:05:03 +01:00
|
|
|
PHP_ADD_LIBRARY(k5crypto, 1, IMAP_SHARED_LIBADD)
|
|
|
|
PHP_ADD_LIBRARY(com_err, 1, IMAP_SHARED_LIBADD)
|
2003-08-31 21:55:21 +02:00
|
|
|
PHP_ADD_INCLUDE($PHP_KERBEROS_DIR/include)
|
2002-11-02 01:05:03 +01:00
|
|
|
- else
|
2004-01-16 16:04:54 +01:00
|
|
|
+ elif test "$PHP_IMAP_LINKAGE" != "yes"; then
|
|
|
|
AC_EGREP_HEADER(auth_gss, $IMAP_INC_DIR/linkage.h, [
|
|
|
|
AC_MSG_ERROR([This c-client library is built with Kerberos support.
|
2002-11-02 01:05:03 +01:00
|
|
|
|