Index: src/modules/rlm_krb5/configure
===================================================================
RCS file: /source/radiusd/src/modules/rlm_krb5/configure,v
retrieving revision 1.12
diff -u -r1.12 configure
--- src/modules/rlm_krb5/configure	19 Aug 2005 17:01:41 -0000	1.12
+++ src/modules/rlm_krb5/configure	4 Jul 2007 14:17:24 -0000
@@ -2925,7 +2925,7 @@
 	fi
 
 
-
+        if test x$krb5libcrypto = x; then
 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
@@ -3161,6 +3161,7 @@
 	if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
 		krb5libcrypto="-lcrypto"
 	fi
+fi
 
 	if test x$krb5libcrypto = x; then
 		{ echo "$as_me:$LINENO: WARNING: neither krb5 'k5crypto' nor 'crypto' libraries are found!" >&5
Index: src/modules/rlm_krb5/configure.in
===================================================================
RCS file: /source/radiusd/src/modules/rlm_krb5/configure.in,v
retrieving revision 1.9
diff -u -r1.9 configure.in
--- src/modules/rlm_krb5/configure.in	14 May 2007 22:27:17 -0000	1.9
+++ src/modules/rlm_krb5/configure.in	4 Jul 2007 14:17:24 -0000
@@ -60,10 +60,12 @@
 		krb5libcrypto="-lk5crypto"
 	fi
 
+        if test x$krb5libcrypto = x; then
 	FR_SMART_CHECK_LIB(crypto, DH_new)
 	if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
 		krb5libcrypto="-lcrypto"
 	fi
+	fi
 
 	if test x$krb5libcrypto = x; then
 		AC_MSG_WARN([neither krb5 'k5crypto' nor 'crypto' libraries are found!])
