]> granicus.if.org Git - mutt/commitdiff
Support for old Kerberos versions. From David Champion
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 10 May 2000 18:02:31 +0000 (18:02 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 10 May 2000 18:02:31 +0000 (18:02 +0000)
<dgc@uchicago.edu>.

configure.in

index b8a804a62205824dce017e9e7762dea303728b5c..1c515af181db38d1936b335c49656c1d0638dc08 100644 (file)
@@ -519,10 +519,7 @@ AC_ARG_WITH(gss,    [    --with-gss[=DIR]         Compile in GSSAPI authenticati
          saved_LIBS="$LIBS"
           gss_type="none"
 
-          dnl MIT kerberos V support
-          dnl Note: older krb5 distributions use -lcrypto instead of
-          dnl -lk5crypto, which collides with OpenSSL. I punt and ignore
-          dnl it here.
+          dnl New MIT kerberos V support
           AC_CHECK_LIB(gssapi_krb5, gss_init_sec_context, [
             gss_type="MIT",
             MUTTLIBS="$MUTTLIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
@@ -536,7 +533,21 @@ AC_ARG_WITH(gss,    [    --with-gss[=DIR]         Compile in GSSAPI authenticati
               MUTTLIBS="$MUTTLIBS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
               MUTTLIBS="$MUTTLIBS -lcrypt -lcom_err"
               AC_DEFINE(HAVE_HEIMDAL)
-              ],, -lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err)
+              ],, -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err)
+          fi
+
+         dnl Old MIT Kerberos V
+         dnl Note: older krb5 distributions use -lcrypto instead of
+         dnl -lk5crypto, which collides with OpenSSL.  One way of dealing
+         dnl with that is to extract all objects from krb5's libcrypto
+         dnl and from openssl's libcrypto into the same directory, then
+         dnl to create a new libcrypto from these.
+          if test x$gss_type = xnone
+          then
+            AC_CHECK_LIB(gssapi_krb5, g_order_init, [
+              gss_type="OldMIT",
+              MUTTLIBS="$MUTTLIBS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
+              ],, -lkrb5 -lcrypto -lcom_err)
           fi
 
           if test x$gss_type = xnone