diff options
author | Jeffrey Hutzelman <jhutz@cmu.edu> | 2013-01-29 02:37:43 -0500 |
---|---|---|
committer | Karl Ramm <kcr@1ts.org> | 2013-01-31 08:10:31 -0500 |
commit | bdde0a2186173cf947c09f2e533dcf9456345d55 (patch) | |
tree | 63260a18aa70fd1cc1880e38acffb818336b3750 /configure.ac | |
parent | 87af13270a47c7bb026a2d4d6275531f33ae43c7 (diff) |
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.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 5 insertions, 3 deletions
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" |