fix readline configure issues (obs from Paulo Moura).

This commit is contained in:
Vitor Santos Costa 2010-10-13 00:20:40 +01:00
parent 755a57fdbd
commit 7a29007eb5
2 changed files with 235 additions and 298 deletions

516
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -610,14 +610,15 @@ fi
if test "$yap_cv_readline" != "no" if test "$yap_cv_readline" != "no"
then then
AC_CHECK_LIB(termcap,tgetent) AC_CHECK_LIB([readline], [main],[
case "$target_os" in AC_DEFINE([HAVE_LIBREADLINE], [1],[Define if you have libreadline])
*darwin*) LIBS="$LIBS -lreadline -lncurses"
;; ],
*) [if test "x$with_readline" != xcheck; then
AC_CHECK_LIB(ncurses,main) AC_MSG_FAILURE(
esac [--with-readline was given, but test for readline failed])
AC_CHECK_LIB(readline,readline) fi
], -lncurses)
fi fi
if test "$yap_cv_gmp" != "no" if test "$yap_cv_gmp" != "no"
then then