$OpenBSD: patch-configure,v 1.8 2004/12/14 01:14:44 marcm Exp $
--- configure.orig	Thu Oct 28 07:16:54 2004
+++ configure	Sun Dec 12 16:24:37 2004
@@ -22960,6 +22960,7 @@ echo "${ECHO_T}$LINGUAS" >&6
 
 
 
+LIBS="$LIBS $INTLLIBS"
 for ac_func in ngettext
 do
 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
@@ -25884,6 +25885,7 @@ cat >>conftest.$ac_ext <<_ACEOF
 #include <sys/vfs.h>
 #endif
 #ifdef HAVE_SYS_MOUNT_H
+#include <sys/param.h>
 #include <sys/mount.h>
 #endif
 #ifdef HAVE_SYS_STATFS_H
@@ -33518,7 +33520,7 @@ if test "${openssl_libs+set}" = set; the
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
 
-		LDFLAGS="$LDFLAGS -L$with_openssl_libs -lssl -lcrypto -ldl"
+		LDFLAGS="$LDFLAGS -L$with_openssl_libs -lssl -lcrypto"
 		cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -36841,6 +36843,7 @@ _ACEOF
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
+#include <sys/param.h>
 #include <sys/mount.h>
 
 _ACEOF
@@ -36862,6 +36865,7 @@ _ACEOF
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
+#include <sys/param.h>
 #include <sys/mount.h>
 #include <sys/fs_types.h>
 _ACEOF
