mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +00:00
Require readline 7 or newer
This changes gdb to require readline 7 or newer at build time. gdb/ChangeLog 2019-08-12 Tom Tromey <tom@tromey.com> * configure: Rebuild. * configure.ac: Check for readline 7. * NEWS: Mention readline 7 requirement. * README: Update. gdb/doc/ChangeLog 2019-08-12 Tom Tromey <tom@tromey.com> * gdb.texinfo (Configure Options): Document minimum version of readline.
This commit is contained in:
@@ -581,6 +581,20 @@ AC_ARG_WITH([system-readline],
|
||||
[use installed readline library])])
|
||||
|
||||
if test "$with_system_readline" = yes; then
|
||||
AC_CACHE_CHECK([whether system readline is new enough],
|
||||
[gdb_cv_readline_ok],
|
||||
[AC_TRY_COMPILE(
|
||||
[#include <stdio.h>
|
||||
#include <readline/readline.h>],
|
||||
[#if RL_VERSION_MAJOR < 7
|
||||
# error "readline version 7 required"
|
||||
#endif],
|
||||
gdb_cv_readline_ok=yes,
|
||||
gdb_cv_readline_ok=no)])
|
||||
if test "$gdb_cv_readline_ok" != yes; then
|
||||
AC_MSG_ERROR([system readline is not new enough])
|
||||
fi
|
||||
|
||||
READLINE=-lreadline
|
||||
READLINE_DEPS=
|
||||
READLINE_CFLAGS=
|
||||
|
||||
Reference in New Issue
Block a user