$OpenBSD: patch-configure_ac,v 1.2 2018/02/10 09:59:37 landry Exp $
Index: configure.ac
--- configure.ac.orig
+++ configure.ac
@@ -233,7 +233,7 @@ dnl This will DEFINE the readline headers.
 RL_LIB_READLINE_INCLUDES
 
 dnl Made it this far, add the readline and termcap LIBS
-LIBS="-lreadline $TERMCAP_LIB $LIBS"
+LIBS="-lereadline $TERMCAP_LIB $LIBS"
 dnl Add the ncurses/curses lib, if it's not the same as the termcap lib
 if test "$TERMCAP_LIB" != "-l$curses_lib_name"; then
   LIBS="-l$curses_lib_name $LIBS"
