summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-10-09 14:01:00 (GMT)
committerGitHub <noreply@github.com>2023-10-09 14:01:00 (GMT)
commit53122bcf825681487226c041d47763e82e081530 (patch)
tree6eb3b501e9af8c58c30a405daad8fb4a0583e472 /configure.ac
parent5afac0cf8d50db62aa1edefebde8a0af5fed0cd4 (diff)
downloadcpython-53122bcf825681487226c041d47763e82e081530.zip
cpython-53122bcf825681487226c041d47763e82e081530.tar.gz
cpython-53122bcf825681487226c041d47763e82e081530.tar.bz2
[3.12] gh-109191: Fix build with newer editline (gh-110239) (gh-110562)
gh-109191: Fix build with newer editline (gh-110239) (cherry picked from commit f4cb0d27cc08f490c42a22e646eb73cc7072d54a) Co-authored-by: Bo Anderson <mail@boanderson.me>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index ba768ae..2a7a918 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6213,6 +6213,13 @@ AS_VAR_IF([with_readline], [no], [
AC_DEFINE([HAVE_RL_APPEND_HISTORY], [1], [Define if readline supports append_history])
])
+ # in readline as well as newer editline (April 2023)
+ AC_CHECK_TYPE([rl_compdisp_func_t],
+ [AC_DEFINE([HAVE_RL_COMPDISP_FUNC_T], [1],
+ [Define if readline supports rl_compdisp_func_t])],
+ [],
+ [readline_includes])
+
m4_undefine([readline_includes])
])dnl WITH_SAVE_ENV()
])