$OpenBSD: patch-configure_in,v 1.5 2009/01/26 18:17:25 jasper Exp $
--- configure.in.orig	Mon Nov  3 23:56:14 2003
+++ configure.in	Sun Oct 12 17:02:00 2008
@@ -278,9 +278,9 @@ AC_CHECK_LIB(lber, ber_alloc,
 )
 
 AC_CHECK_LIB(ldap, ldap_simple_bind,
-	     [LIBS="-lldap $HAVE_LLBER $LIBS"],
+	     [LIBS="-lldap -lsasl2 $HAVE_LLBER $LIBS"],
 	     AC_MSG_ERROR(Cannot find libldap),
-	     $HAVE_LLBER
+	     $HAVE_LLBER -lsasl2
 )
 
 AC_CACHE_CHECK([OpenLDAP version], gq_cv_OpenLDAP_version,
@@ -340,7 +340,7 @@ AC_CHECK_FUNCS(ldap_str2objectclass ldap_memfree ldap_
 AC_ARG_WITH(kerberos-prefix,
 	    [  --with-kerberos-prefix=PFX Prefix where Kerberos is installed],
 	    [
-	     LIBS="-L$with_kerberos_prefix/lib -lkrb5 -ldes425 $LIBS"
+	     LIBS="-L$with_kerberos_prefix/lib -lkrb5 $LIBS"
 	     AC_DEFINE(HAVE_KERBEROS,1,[Define if you have Kerberos installed])
 	     HAVE_KERBEROS=1
 	    ]
@@ -491,7 +491,7 @@ AC_ARG_ENABLE(browser-dnd,
 
 dnl Only use -Wall if we have gcc
 if test "x$GCC" = "xyes"; then
-    for A in -Wall -W -Wno-unused -Wmissing-declarations -Wcast-align -Wpointer-arith -Wfloat-equal
+    for A in -Wall -W -Wno-unused -Wmissing-declarations -Wcast-align -Wpointer-arith
     do
 # The following should work as well, but might (?) be less portable
 #	if ! echo "$CFLAGS" | grep -q -w -- "$A" ; then
