+* Fix the readline history test.
* [Bug 931] Require -lreadline to be asked for explicitly.
* [Bug 764] When looking for -lreadline support, also try using -lncurses.
* [Bug 909] Fix int32_t errors for ntohl().
[Define if you have a readline compatible library])
AC_CHECK_HEADERS(readline.h readline/readline.h)
AC_CACHE_CHECK([whether readline supports history],
- ntp_cv_lib_lineedit_history, [
+ ntp_cv_lib_lineedit_history, [
ntp_cv_lib_lineedit_history="no"
+ ORIG_LIBS="$LIBS"
+ LIBS="$ORIG_LIBS $ntp_cv_lib_lineedit"
AC_TRY_LINK_FUNC(add_history, ntp_cv_lib_lineedit_history="yes")
+ LIBS="$ORIG_LIBS"
])
case "$ntp_cv_lib_lineedit_history" in
yes)