[evolution] Bug 596972 - Drop support for Kerberos 4



commit 0b537addf009822dee4c0b0def9a30d1de16da6b
Author: H.Habighorst <h habighorst googlemail com>
Date:   Thu Oct 1 20:11:39 2009 -0400

    Bug 596972 - Drop support for Kerberos 4

 configure.ac |   89 ++-------------------------------------------------------
 1 files changed, 4 insertions(+), 85 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c1c45a0..603aeb7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -758,9 +758,9 @@ fi
 AC_SUBST(GNOME_PILOT_CFLAGS)
 AC_SUBST(GNOME_PILOT_LIBS)
 
-dnl ********
-dnl Kerberos
-dnl ********
+dnl ************
+dnl Kerberos 5
+dnl ************
 AC_ARG_WITH([krb5],
 	AS_HELP_STRING([--with-krb5=PATH],
 	[Location of Kerberos 5 install dir]),
@@ -773,22 +773,7 @@ AC_ARG_WITH([krb5-includes],
 	AS_HELP_STRING([--with-krb5-includes=PATH],
 	[Location of Kerberos 5 headers]),
 	[with_krb5_includes=$withval],[with_krb5_includes=""])
-AC_ARG_WITH([krb4],
-	AS_HELP_STRING([--with-krb4=PATH],
-	[Location of Kerberos 4 install dir]),
-	[with_krb4=$withval],[with_krb4=no])
-AC_ARG_WITH([krb4-libs],
-	AS_HELP_STRING([--with-krb4-libs=PATH],
-	[Location of Kerberos 4 libraries]),
-	[with_krb4_libs=$withval],[with_krb4_libs=$with_krb4/lib])
-AC_ARG_WITH([krb4-includes],
-	AS_HELP_STRING([--with-krb4-includes=PATH],
-	[Location of Kerberos 4 headers]),
-	[with_krb4_includes=$withval],[with_krb4_includes=""])
 
-dnl ************
-dnl Kerberos 5
-dnl ************
 msg_krb5="no"
 if test "x${with_krb5}" != "xno"; then
 	LIBS_save="$LIBS"
@@ -862,74 +847,8 @@ AC_CHECK_HEADER([com_err.h],
 		#endif
 	]])
 
-dnl ***********
-dnl Kerberos 4
-dnl ***********
-msg_krb4="no"
-if test "x${with_krb4}" != "xno"; then
-	LIBS_save="$LIBS"
-	AC_CACHE_CHECK([for Kerberos 4], [ac_cv_lib_kerberos4],
-	[
-		ac_cv_lib_kerberos4="no"
-		mitcompatlibs="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
-		dnl Look for MIT krb5 compat krb4
-		LIBS="$LIBS_save -L$with_krb4_libs $mitcompatlibs"
-		AC_LINK_IFELSE([AC_LANG_CALL([], [krb_mk_req])],
-		[ac_cv_lib_kerberos4="$mitcompatlibs"])
-
-		if test "$ac_cv_lib_kerberos4" = "no"; then
-			dnl Look for KTH krb4
-			LIBS="$LIBS_save -L$with_krb4_libs -lkrb -lcrypto -lcom_err -lroken"
-			AC_LINK_IFELSE([AC_LANG_CALL([], [krb_mk_req])],
-			[ac_cv_lib_kerberos4="-lkrb -lcrypto -lcom_err -lroken"])
-		fi
-		if test "$ac_cv_lib_kerberos4" = "no"; then
-			dnl Look for old MIT krb4
-			LIBS="$LIBS_save -L$with_krb4_libs -lkrb"
-			AC_LINK_IFELSE([AC_LANG_CALL([], [krb_mk_req])],
-			[ac_cv_lib_kerberos4="-lkrb"],
-			[
-				LIBS="$LIBS_save -ldes"
-				AC_LINK_IFELSE([AC_LANG_CALL([], [krb_mk_req])],
-				[ac_cv_lib_kerberos4="-lkrb -ldes"])
-			])
-		fi
-	])
-	LIBS="$LIBS_save"
-	if test "$ac_cv_lib_kerberos4" != "no"; then
-		AC_DEFINE(HAVE_KRB4,1,[Define if you have Krb4])
-		msg_krb4="yes"
-
-		if test -z "$with_krb4_includes"; then
-			if test -f "$with_krb4/include/krb.h" -o -f "$with_krb4/include/port-sockets.h"; then
-				KRB4_CFLAGS="-I$with_krb4/include"
-			fi
-			if test -d "$with_krb4/include/kerberosIV"; then
-				KRB4_CFLAGS="$KRB4_CFLAGS -I$with_krb4/include/kerberosIV"
-			fi
-		else
-			KRB4_CFLAGS="-I$with_krb4_includes"
-		fi
-		KRB4_LIBS="-L$with_krb4_libs $ac_cv_lib_kerberos4"
-
-		CFLAGS_save="$CFLAGS"
-		CFLAGS="$CFLAGS $KRB4_CFLAGS"
-		AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
-		[[	#include "krb.h"
-			int krb_sendauth;
-		]]
-		,[[]])],[AC_DEFINE(NEED_KRB_SENDAUTH_PROTO,1,[Need krb_sendauth proto])],[])
-		CFLAGS="$CFLAGS_save"
-	fi
-else
-	AC_MSG_CHECKING([for Kerberos 4])
-	AC_MSG_RESULT([${with_krb4}])
-fi
-
 AC_SUBST(KRB5_CFLAGS)
 AC_SUBST(KRB5_LIBS)
-AC_SUBST(KRB4_CFLAGS)
-AC_SUBST(KRB4_LIBS)
 
 dnl ******************************
 dnl Mono hooks
@@ -2021,7 +1940,7 @@ echo "
 	NNTP support:		$msg_nntp
 	Pilot conduits:		$msg_pilot
 	Libnotify:		$HAVE_LIBNOTIFY
-	Kerberos 4/5:		$msg_krb4/$msg_krb5
+	Kerberos 5:		$msg_krb5
 	SSL support:		$msg_ssl
 	SMIME support:		$msg_smime
 	Plugins:		$msg_plugins



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]