1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-28 07:50:20 +02:00

* configure.in: Properly test for the presence of rl_getc_function;

it's a variable, not a function.
* configure: Regenerated.
This commit is contained in:
Jim Blandy 1998-10-07 09:02:39 +00:00
parent aee2009bf1
commit bd69c3abe5

View file

@ -61,8 +61,18 @@ if test $ac_cv_func_connect = no; then
fi
AC_CHECK_LIB(termcap, tgoto)
AC_CHECK_LIB(readline, readline)
AC_CHECK_FUNCS(rl_getc_function rl_clear_signals rl_cleanup_after_signal)
if test $ac_cv_lib_readline_readline = yes -a $ac_cv_func_rl_getc_function = no; then
AC_CHECK_FUNCS(rl_clear_signals rl_cleanup_after_signal)
AC_CACHE_CHECK([for rl_getc_function pointer in readline],
ac_cv_var_rl_getc_function,
[AC_TRY_LINK([
#include <stdio.h>
#include <readline/readline.h>],
[rl_getc_function;],
[ac_cv_var_rl_getc_function=yes],
[ac_cv_var_rl_getc_function=no])])
if test $ac_cv_lib_readline_readline = yes -a $ac_cv_var_rl_getc_function = no; then
echo 'Warning: libreadline is too old on your system. Need >= 2.1.'
fi