diff -u lprng-3.8.A.orig/configure.ac lprng-3.8.A/configure.ac --- lprng-3.8.A.orig/configure.ac +++ lprng-3.8.A/configure.ac @@ -1242,6 +1242,14 @@ dnl Christian Zoffoli found=no + AC_PATH_PROG(KRB5CONFIG, krb5-config) + if test -n "$KRB5CONFIG" ; then + found=yes + KRB_LIBS="`$KRB5CONFIG --libs krb5`" + LIBS="$KRB_LIBS $SAVELIBS" + AC_CHECKING(for krb5_init_context in $LIBS ) + AC_TRY_LINK_FUNC(krb5_init_context,,found="no") + fi if test "$found" "!=" "yes" ; then found=yes LIBS=" -lkrb5 -lcrypto -lcom_err $SAVELIBS"