diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-04-03 03:19:27 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-04-03 03:19:27 (GMT) |
commit | a3506005b31b8e30402bd38a762e7e1d2945a9e8 (patch) | |
tree | c2cb05b32a6871873c79dd69a2a0844f9b9bab60 /configure | |
parent | 519f91215bd353c745946e5d892fd1f089dbcb84 (diff) | |
parent | 5dbbf1abba89ef1766759fbc9d5a5af02db49505 (diff) | |
download | cpython-a3506005b31b8e30402bd38a762e7e1d2945a9e8.zip cpython-a3506005b31b8e30402bd38a762e7e1d2945a9e8.tar.gz cpython-a3506005b31b8e30402bd38a762e7e1d2945a9e8.tar.bz2 |
Issue #23735: Merge Readline resize handling from 3.5
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 44 |
1 files changed, 44 insertions, 0 deletions
@@ -14929,6 +14929,50 @@ $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h fi +# also in 4.0, but not in editline +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5 +$as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; } +if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lreadline $READLINE_LIBS $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char rl_resize_terminal (); +int +main () +{ +return rl_resize_terminal (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_readline_rl_resize_terminal=yes +else + ac_cv_lib_readline_rl_resize_terminal=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5 +$as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; } +if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then : + +$as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h + +fi + + # check for readline 4.2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } |