build: ensure rl_echo_signal_char() exists in the readline library
This commit is contained in:
@@ -92,6 +92,8 @@ AC_DEFUN([AX_LIB_READLINE], [
|
||||
|
||||
LIBS="$LIBS $ax_cv_lib_readline"
|
||||
AC_CHECK_HEADERS(readline.h readline/readline.h)
|
||||
|
||||
# Check history
|
||||
AC_CACHE_CHECK([whether readline supports history],
|
||||
ax_cv_lib_readline_history, [
|
||||
ax_cv_lib_readline_history="no"
|
||||
@@ -101,6 +103,17 @@ AC_DEFUN([AX_LIB_READLINE], [
|
||||
AC_MSG_ERROR(readline history support is required)
|
||||
fi
|
||||
AC_CHECK_HEADERS(history.h readline/history.h)
|
||||
|
||||
# check rl_echo_signal_char()
|
||||
AC_CACHE_CHECK([whether readline supports rl_echo_signal_char()],
|
||||
ax_cv_lib_readline_echo_signal_char, [
|
||||
ax_cv_lib_readline_echo_signal_char="no"
|
||||
AC_TRY_LINK_FUNC(rl_echo_signal_char, ax_cv_lib_readline_echo_signal_char="yes")
|
||||
])
|
||||
if test "$ax_cv_lib_readline_echo_signal_char" != "yes"; then
|
||||
AC_MSG_ERROR(rl_echo_signal_char() is required (install readline6?))
|
||||
fi
|
||||
|
||||
READLINE_LIBS="$ax_cv_lib_readline"
|
||||
AC_SUBST(READLINE_LIBS)
|
||||
])dnl
|
||||
|
Reference in New Issue
Block a user