mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-109191: Fix build with newer editline (gh-110239)
This commit is contained in:
parent
12cc6792d0
commit
f4cb0d27cc
5 changed files with 31 additions and 1 deletions
19
configure
generated
vendored
19
configure
generated
vendored
|
|
@ -24668,6 +24668,25 @@ printf "%s\n" "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h
|
|||
|
||||
fi
|
||||
|
||||
# in readline as well as newer editline (April 2023)
|
||||
ac_fn_c_check_type "$LINENO" "rl_compdisp_func_t" "ac_cv_type_rl_compdisp_func_t" "
|
||||
#include <stdio.h> /* Must be first for Gnu Readline */
|
||||
#ifdef WITH_EDITLINE
|
||||
# include <editline/readline.h>
|
||||
#else
|
||||
# include <readline/readline.h>
|
||||
# include <readline/history.h>
|
||||
#endif
|
||||
|
||||
"
|
||||
if test "x$ac_cv_type_rl_compdisp_func_t" = xyes
|
||||
then :
|
||||
|
||||
printf "%s\n" "#define HAVE_RL_COMPDISP_FUNC_T 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
CFLAGS=$save_CFLAGS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue