$OpenBSD: patch-configure_ac,v 1.5 2016/04/26 12:11:08 sthen Exp $
--- configure.ac.orig	Sun Apr 17 10:08:34 2016
+++ configure.ac	Tue Apr 26 12:56:25 2016
@@ -133,7 +133,7 @@ if test "$test_for_libnl" = yes;then
 fi
 
 have_readline=no
-AC_LIB_HAVE_LINKFLAGS(readline,, [
+AC_LIB_HAVE_LINKFLAGS(readline,ncurses, [
 #include <stdio.h>
 #include <readline/readline.h>], [rl_replace_line(0,0);])
   if test x$ac_cv_libreadline = xyes; then
