summaryrefslogtreecommitdiff
path: root/ext/readline
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2009-08-04 11:20:49 +0000
committerJani Taskinen <jani@php.net>2009-08-04 11:20:49 +0000
commit5d757fddf5a29a71ed71450fcd088bd582dcf736 (patch)
treea1b2f1c6b9baa7b1d1f7e0a1486e6e4e0e0ab72e /ext/readline
parentca8a41215f5a3ec27abdf3cf73f45d84264b22c3 (diff)
downloadphp-git-5d757fddf5a29a71ed71450fcd088bd582dcf736.tar.gz
- Fixed bug #48608 (Invalid libreadline version not detected during configure)
Diffstat (limited to 'ext/readline')
-rw-r--r--ext/readline/config.m47
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/readline/config.m4 b/ext/readline/config.m4
index 2fb8ca42c3..a320deeb42 100644
--- a/ext/readline/config.m4
+++ b/ext/readline/config.m4
@@ -46,6 +46,13 @@ if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then
-L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
])
+ PHP_CHECK_LIBRARY(readline, rl_pending_input,
+ [], [
+ AC_MSG_ERROR([invalid readline installation detected. Try --with-libedit instead.])
+ ], [
+ -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
+ ])
+
PHP_CHECK_LIBRARY(readline, rl_callback_read_char,
[
AC_DEFINE(HAVE_RL_CALLBACK_READ_CHAR, 1, [ ])