From bdde0a2186173cf947c09f2e533dcf9456345d55 Mon Sep 17 00:00:00 2001 From: Jeffrey Hutzelman Date: Tue, 29 Jan 2013 02:37:43 -0500 Subject: configure: Don't require libdes to use libkrb Depending on how it was built, libkrb may not have a libdes dependency, and libdes may in fact not even exist. Don't fail unnecessarily in this case. --- configure.ac | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index be92879..77524a3 100644 --- a/configure.ac +++ b/configure.ac @@ -125,10 +125,12 @@ if test "$krb4" != no; then fi AC_CHECK_LIB(krb4, krb_rd_req, [KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"], - [AC_CHECK_LIB(krb, krb_rd_req, - [KRB4_LIBS="-lkrb -ldes"], + [AC_CHECK_LIB(des, des_quad_cksum, + [KRB4_DES_LIBS="-ldes"],,,) + AC_CHECK_LIB(krb, krb_rd_req, + [KRB4_LIBS="-lkrb $KRB4_DES_LIBS"], [AC_MSG_ERROR(Kerberos 4 libraries not found)], - -ldes)], + $KRB4_DES_LIBS)], -ldes425 -lkrb5 -lk5crypto -lcom_err) AC_DEFINE(HAVE_KRB4, 1, [Define to compile with Kerberos support.]) LIBZEPHYR_LIBS="$LIBZEPHYR_LIBS $KRB4_LIBS" -- cgit v1.2.3