<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">--- configure.orig	2017-07-08 13:33:27.000000000 +1000
+++ configure	2017-09-10 11:18:40.000000000 +1000
@@ -15105,9 +15105,9 @@
 $as_echo_n "checking how to link readline libs... " &gt;&amp;6; }
 for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do
   if test -z "$py_libtermcap"; then
-    READLINE_LIBS="-lreadline"
+    READLINE_LIBS="-ledit"
   else
-    READLINE_LIBS="-lreadline -l$py_libtermcap"
+    READLINE_LIBS="-ledit -l$py_libtermcap"
   fi
   LIBS="$READLINE_LIBS $LIBS_no_readline"
   cat confdefs.h - &lt;&lt;_ACEOF &gt;conftest.$ac_ext
@@ -15151,13 +15151,13 @@
 fi
 
 # check for readline 2.1
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" &gt;&amp;5
-$as_echo_n "checking for rl_callback_handler_install in -lreadline... " &gt;&amp;6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -ledit" &gt;&amp;5
+$as_echo_n "checking for rl_callback_handler_install in -ledit... " &gt;&amp;6; }
 if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then :
   $as_echo_n "(cached) " &gt;&amp;6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lreadline $READLINE_LIBS $LIBS"
+LIBS="-ledit $READLINE_LIBS $LIBS"
 cat confdefs.h - &lt;&lt;_ACEOF &gt;conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -15197,7 +15197,7 @@
 # check for readline 2.2
 cat confdefs.h - &lt;&lt;_ACEOF &gt;conftest.$ac_ext
 /* end confdefs.h.  */
-#include &lt;readline/readline.h&gt;
+#include &lt;editline/readline.h&gt;
 _ACEOF
 if ac_fn_c_try_cpp "$LINENO"; then :
   have_readline=yes
@@ -15210,7 +15210,7 @@
 then
   cat confdefs.h - &lt;&lt;_ACEOF &gt;conftest.$ac_ext
 /* end confdefs.h.  */
-#include &lt;readline/readline.h&gt;
+#include &lt;editline/readline.h&gt;
 
 _ACEOF
 if (eval "$ac_cpp conftest.$ac_ext") 2&gt;&amp;5 |
@@ -15223,7 +15223,7 @@
 
   cat confdefs.h - &lt;&lt;_ACEOF &gt;conftest.$ac_ext
 /* end confdefs.h.  */
-#include &lt;readline/readline.h&gt;
+#include &lt;editline/readline.h&gt;
 
 _ACEOF
 if (eval "$ac_cpp conftest.$ac_ext") 2&gt;&amp;5 |
@@ -15237,13 +15237,13 @@
 fi
 
 # check for readline 4.0
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" &gt;&amp;5
-$as_echo_n "checking for rl_pre_input_hook in -lreadline... " &gt;&amp;6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -ledit" &gt;&amp;5
+$as_echo_n "checking for rl_pre_input_hook in -ledit... " &gt;&amp;6; }
 if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then :
   $as_echo_n "(cached) " &gt;&amp;6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lreadline $READLINE_LIBS $LIBS"
+LIBS="-ledit $READLINE_LIBS $LIBS"
 cat confdefs.h - &lt;&lt;_ACEOF &gt;conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -15281,13 +15281,13 @@
 
 
 # also in 4.0
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" &gt;&amp;5
-$as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " &gt;&amp;6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -ledit" &gt;&amp;5
+$as_echo_n "checking for rl_completion_display_matches_hook in -ledit... " &gt;&amp;6; }
 if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then :
   $as_echo_n "(cached) " &gt;&amp;6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lreadline $READLINE_LIBS $LIBS"
+LIBS="-ledit $READLINE_LIBS $LIBS"
 cat confdefs.h - &lt;&lt;_ACEOF &gt;conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -15325,13 +15325,13 @@
 
 
 # also in 4.0, but not in editline
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" &gt;&amp;5
-$as_echo_n "checking for rl_resize_terminal in -lreadline... " &gt;&amp;6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -ledit" &gt;&amp;5
+$as_echo_n "checking for rl_resize_terminal in -ledit... " &gt;&amp;6; }
 if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then :
   $as_echo_n "(cached) " &gt;&amp;6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lreadline $READLINE_LIBS $LIBS"
+LIBS="-ledit $READLINE_LIBS $LIBS"
 cat confdefs.h - &lt;&lt;_ACEOF &gt;conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -15369,13 +15369,13 @@
 
 
 # check for readline 4.2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" &gt;&amp;5
-$as_echo_n "checking for rl_completion_matches in -lreadline... " &gt;&amp;6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -ledit" &gt;&amp;5
+$as_echo_n "checking for rl_completion_matches in -ledit... " &gt;&amp;6; }
 if ${ac_cv_lib_readline_rl_completion_matches+:} false; then :
   $as_echo_n "(cached) " &gt;&amp;6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lreadline $READLINE_LIBS $LIBS"
+LIBS="-ledit $READLINE_LIBS $LIBS"
 cat confdefs.h - &lt;&lt;_ACEOF &gt;conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -15415,7 +15415,7 @@
 # also in readline 4.2
 cat confdefs.h - &lt;&lt;_ACEOF &gt;conftest.$ac_ext
 /* end confdefs.h.  */
-#include &lt;readline/readline.h&gt;
+#include &lt;editline/readline.h&gt;
 _ACEOF
 if ac_fn_c_try_cpp "$LINENO"; then :
   have_readline=yes
@@ -15428,7 +15428,7 @@
 then
   cat confdefs.h - &lt;&lt;_ACEOF &gt;conftest.$ac_ext
 /* end confdefs.h.  */
-#include &lt;readline/readline.h&gt;
+#include &lt;editline/readline.h&gt;
 
 _ACEOF
 if (eval "$ac_cpp conftest.$ac_ext") 2&gt;&amp;5 |
@@ -15441,13 +15441,13 @@
 
 fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" &gt;&amp;5
-$as_echo_n "checking for append_history in -lreadline... " &gt;&amp;6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -ledit" &gt;&amp;5
+$as_echo_n "checking for append_history in -ledit... " &gt;&amp;6; }
 if ${ac_cv_lib_readline_append_history+:} false; then :
   $as_echo_n "(cached) " &gt;&amp;6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lreadline $READLINE_LIBS $LIBS"
+LIBS="-ledit $READLINE_LIBS $LIBS"
 cat confdefs.h - &lt;&lt;_ACEOF &gt;conftest.$ac_ext
 /* end confdefs.h.  */
 
--- setup.py.orig	2017-07-08 13:33:27.000000000 +1000
+++ setup.py	2017-09-10 11:41:16.000000000 +1000
@@ -711,7 +711,7 @@
                                libraries=math_libs) )
 
         # readline
-        do_readline = self.compiler.find_library_file(lib_dirs, 'readline')
+        do_readline = self.compiler.find_library_file(lib_dirs, 'edit')
         readline_termcap_library = ""
         curses_library = ""
         # Cannot use os.popen here in py3k.
@@ -777,7 +777,7 @@
             else:
                 readline_extra_link_args = ()
 
-            readline_libs = ['readline']
+            readline_libs = ['edit']
             if readline_termcap_library:
                 pass # Issue 7384: Already linked against curses or tinfo.
             elif curses_library:
--- Modules/readline.c.orig	2013-10-23 21:51:09.000000000 +0300
+++ Modules/readline.c	2013-10-23 22:10:09.000000000 +0300
@@ -29,8 +29,7 @@
 
 /* GNU readline definitions */
 #undef HAVE_CONFIG_H /* Else readline/chardefs.h includes strings.h */
-#include &lt;readline/readline.h&gt;
-#include &lt;readline/history.h&gt;
+#include &lt;editline/readline.h&gt;
 
 #ifdef HAVE_RL_COMPLETION_MATCHES
 #define completion_matches(x, y) \
</pre></body></html>