diff options
author | Bo Anderson <mail@boanderson.me> | 2023-10-09 13:21:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-09 13:21:20 (GMT) |
commit | f4cb0d27cc08f490c42a22e646eb73cc7072d54a (patch) | |
tree | 0649c25cdf9621fcabe5740e85684a29e4ae85e5 /configure | |
parent | 12cc6792d0ca1d0b72712d77c6efcb0aa0c7e7ba (diff) | |
download | cpython-f4cb0d27cc08f490c42a22e646eb73cc7072d54a.zip cpython-f4cb0d27cc08f490c42a22e646eb73cc7072d54a.tar.gz cpython-f4cb0d27cc08f490c42a22e646eb73cc7072d54a.tar.bz2 |
gh-109191: Fix build with newer editline (gh-110239)
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -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 |