$OpenBSD: patch-configure,v 1.4 2001/08/10 19:08:51 danh Exp $
--- configure.orig	Fri Aug 10 14:45:11 2001
+++ configure	Fri Aug 10 14:46:51 2001
@@ -3851,7 +3851,7 @@ if test "${ac_cv_lib_readline_readline+s
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lreadline  $LIBS"
+LIBS="-lreadline -ltermcap $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 #line 3856 "configure"
 #include "confdefs.h"
@@ -3899,7 +3899,7 @@ if test $ac_cv_lib_readline_readline = y
 #define HAVE_LIBREADLINE 1
 EOF
 
-  LIBS="-lreadline $LIBS"
+  LIBS="-lreadline -ltermcap $LIBS"
 
 fi
 
@@ -9215,6 +9215,9 @@ fi
 done
 
 case "$target" in
+ i386-*-openbsd*)
+    # mlockall broken
+    ;;
  *-*-aix4*)
     # Just a stub.  Idiots.
     ;;
