diff options
author | Dan Williams <dcbw@redhat.com> | 2014-10-14 14:30:44 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2014-10-14 14:30:44 -0500 |
commit | b69143b5085c58e51ab8077ee5cbe6fafe73e041 (patch) | |
tree | 7346e080f387d5cc4e3efd6653d0cbe408254290 /m4 | |
parent | d5ceb0af1582283867cf9a73cb1443fab0f1c9e9 (diff) | |
download | NetworkManager-b69143b5085c58e51ab8077ee5cbe6fafe73e041.tar.gz |
build: ensure rl_echo_signal_char() exists in the readline library
Diffstat (limited to 'm4')
-rw-r--r-- | m4/ax_lib_readline.m4 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/m4/ax_lib_readline.m4 b/m4/ax_lib_readline.m4 index 72764fba56..8a05574f25 100644 --- a/m4/ax_lib_readline.m4 +++ b/m4/ax_lib_readline.m4 @@ -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 |