summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-11-26 20:35:12 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-11-26 20:35:12 (GMT)
commitd1e22ba7db9d8668c486eb77999bbbbdca8b09d3 (patch)
tree6a5b823ea0994796e3a3abd5489b4056cfd273b7 /configure.ac
parent810aa6db3472e48e182b185cc4375615977c85f5 (diff)
downloadcpython-d1e22ba7db9d8668c486eb77999bbbbdca8b09d3.zip
cpython-d1e22ba7db9d8668c486eb77999bbbbdca8b09d3.tar.gz
cpython-d1e22ba7db9d8668c486eb77999bbbbdca8b09d3.tar.bz2
only support append_history if readline has it
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 05dc0e6..c12622b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4308,6 +4308,10 @@ then
[Define if you can turn off readline's signal handling.]), )
fi
+AC_CHECK_LIB(readline, append_history,
+ AC_DEFINE(HAVE_RL_APPEND_HISTORY, 1,
+ [Define if readline supports append_history]), ,$READLINE_LIBS)
+
# End of readline checks: restore LIBS
LIBS=$LIBS_no_readline