1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

* configure.in: Check for curses, terminfo and termlib libraries

in addition to ncurses and termcap.
Check for `readline' in libreadline, not for `main'.
Thanks to Albert Chin!
This commit is contained in:
Marius Vollmer 2000-09-17 21:16:18 +00:00
parent 45605b53fb
commit 49dd8ff330

View file

@ -7,14 +7,13 @@ AC_PROG_CC
AM_PROG_CC_STDC
AM_PROG_LIBTOOL
dnl Should we check for curses, terminfo, and termlib, too?
for termlib in ncurses termcap ; do
for termlib in ncurses curses termcap terminfo termlib ; do
AC_CHECK_LIB(${termlib}, tgoto,
[LIBS="-l${termlib} $LIBS"; break])
done
AC_CHECK_LIB(readline, main)
if test $ac_cv_lib_readline_main = no; then
AC_CHECK_LIB(readline, readline)
if test $ac_cv_lib_readline_readline = no; then
AC_MSG_WARN([libreadline was not found on your system.])
fi