From 210711c6a06bbdba4e0539626028b1f23d27f0f6 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 29 Nov 2001 06:23:43 +0000 Subject: Fix up the ./configure tests for kerberos. This ensures a more consistant behaviour no matter if kerberos was found automatically, found in the /usr/kerberos path or was specified. (This used to be commit 4e212f728c429b986bb3e2230fbc9cd4bcf6dd40) --- source3/configure.in | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source3/configure.in') diff --git a/source3/configure.in b/source3/configure.in index d51446a5fe..90447735e2 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -1632,8 +1632,6 @@ AC_ARG_WITH(krb5, CFLAGS="$CFLAGS -I$withval/include" CPPFLAGS="$CPPFLAGS -I$withval/include" LDFLAGS="$LDFLAGS -L$withval/lib" - AC_DEFINE(HAVE_KRB5) - have_krb5=yes; ;; esac ], AC_MSG_RESULT(no) @@ -1652,10 +1650,9 @@ AC_CHECK_LIB(k5crypto, krb5_encrypt_data, [LIBS="$LIBS -lk5crypto"]) ######################################################## # now see if we can find the krb5 libs in standard paths -if test x$have_krb5 != xyes; then +# or as specified above AC_CHECK_LIB(krb5, krb5_mk_req_extended, [LIBS="$LIBS -lkrb5"; AC_DEFINE(HAVE_KRB5)]) -fi ######################################################## # now see if we can find the ldap libs in standard paths -- cgit