diff options
author | Jani Taskinen <jani@php.net> | 2009-08-04 11:20:49 +0000 |
---|---|---|
committer | Jani Taskinen <jani@php.net> | 2009-08-04 11:20:49 +0000 |
commit | 106f29f805836aee4e5da58cc1ccd82445c10367 (patch) | |
tree | 9071a7e9bdf0452bc95845d261b971d64c6ddc0d /ext/readline | |
parent | 68bdcd2b59fea4b6a5e92efe3da874a2f4411e3e (diff) | |
download | php-git-106f29f805836aee4e5da58cc1ccd82445c10367.tar.gz |
- Fixed bug #48608 (Invalid libreadline version not detected during configure)
Diffstat (limited to 'ext/readline')
-rw-r--r-- | ext/readline/config.m4 | 7 |
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, [ ]) |