summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-07 07:29:36 -0800
committerChanho Park <chanho61.park@samsung.com>2014-08-19 19:37:01 +0900
commit4147c67419897d6cc2bf4a549a8d35bfd50b357d (patch)
treef54fee1aad2b633621ec830b7a1630639f8b1240
parent94a2f3c129f5da2e7d85f1152cadf9837c59acc8 (diff)
downloadpython-4147c67419897d6cc2bf4a549a8d35bfd50b357d.tar.gz
python-4147c67419897d6cc2bf4a549a8d35bfd50b357d.tar.bz2
python-4147c67419897d6cc2bf4a549a8d35bfd50b357d.zip
python-2.7rc2-configure
===================================================================
-rw-r--r--configure.ac15
1 files changed, 12 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 762108d..54d0720 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4106,9 +4106,18 @@ then
fi
# check for readline 4.0
-AC_CHECK_LIB(readline, rl_pre_input_hook,
- AC_DEFINE(HAVE_RL_PRE_INPUT_HOOK, 1,
- [Define if you have readline 4.0]), ,$READLINE_LIBS)
+AC_MSG_CHECKING([for rl_pre_input_hook in -lreadline])
+AC_CACHE_VAL(ac_cv_have_rl_re_input_hook, [
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <stdio.h>
+#include <readline/readline.h>],
+ [return rl_pre_input_hook != 0])],
+ ac_cv_have_rl_re_input_hook=yes,
+ ac_cv_have_rl_re_input_hook=no)])
+AC_MSG_RESULT($ac_cv_have_rl_re_input_hook)
+if test "$ac_cv_have_rl_re_input_hook" = yes; then
+ AC_DEFINE(HAVE_RL_PRE_INPUT_HOOK, 1,
+ [Define if you have readline 4.0])
+fi
# also in 4.0
AC_CHECK_LIB(readline, rl_completion_display_matches_hook,