summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2003-03-29 22:25:18 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2003-03-29 22:25:18 +0000
commit80288f4f85b97de15ee78628869aef28639526bb (patch)
tree7adf0f00b05ca74a504de0811e308a742b19188f /configure.in
parenta43f2811443aae4e0e4057bda5e675b87e40d156 (diff)
downloadcpython-git-80288f4f85b97de15ee78628869aef28639526bb.tar.gz
Backport Patch 659834 checked in by GvR on 2002/12/30 16:25:38
Check for readline 2.2 features. This should make it possible to compile readline.c again with GNU readline versions 2.0 or 2.1; this ability was removed in readline.c rev. 2.49. Apparently the older versions are still in widespread deployment on older Solaris installations. With an older readline, completion behavior is subtly different (a space is always added).
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index d8f9031193..24c21eee57 100644
--- a/configure.in
+++ b/configure.in
@@ -2012,6 +2012,17 @@ then
AC_DEFINE(HAVE_GETC_UNLOCKED)
fi
+# check for readline 2.2
+AC_TRY_CPP([#include <readline/readline.h>],
+have_readline=yes, have_readline=no)
+if test $have_readline = yes
+then
+ AC_EGREP_HEADER([extern int rl_completion_append_character;],
+ [readline/readline.h],
+ AC_DEFINE(HAVE_RL_COMPLETION_APPEND_CHARACTER, 1,
+ [Define if you have readline 2.2]), )
+fi
+
# check for readline 4.0
AC_CHECK_LIB(readline, rl_pre_input_hook,
AC_DEFINE(HAVE_RL_PRE_INPUT_HOOK), , -ltermcap)