configure.in patch for krb support

David W. Chapman Jr. dwcjr at inethouston.net
Mon Dec 24 21:04:06 GMT 2001


In 3.0 I noticed that users reported build breakages in krb, but they 
didn't use krb.  This patch was sent to me my petef at freebsd.org, 
would someone review it and possibly commit if its applicable?

-- 
David W. Chapman Jr.
dwcjr at inethouston.net	Raintree Network Services, Inc. <www.inethouston.net>
dwcjr at freebsd.org	FreeBSD Committer <www.FreeBSD.org>
-------------- next part --------------
--- configure.in.orig	Thu Dec 13 08:19:58 2001
+++ configure.in	Sun Dec 23 23:39:48 2001
@@ -1642,10 +1642,9 @@
     CFLAGS="$CFLAGS -I$withval/include"
     CPPFLAGS="$CPPFLAGS -I$withval/include"
     LDFLAGS="$LDFLAGS -L$withval/lib"
-    ;;
-  esac ],
-  AC_MSG_RESULT(no)
-)
+
+    # don't automatically detect krb5 stuff, only do it if --with-krb5=foo
+    # is given (and isn't 'no').
 
 # now check for krb5.h. Some systems have the libraries without the headers!
 # note that this check is done here to allow for different kerberos
@@ -1669,6 +1668,11 @@
 AC_CHECK_LIB(krb5, krb5_mk_req_extended, [LIBS="$LIBS -lkrb5";
 	AC_DEFINE(HAVE_KRB5)])
 
+    ;;
+  esac ],
+  AC_MSG_RESULT(no)
+)
+# end of --with-krb5 check
 
 ##################################################################
 # we might need the lber lib on some systems. To avoid link errors


More information about the samba-technical mailing list