* configure.in: Check for curses, terminfo and termlib libraries
authorMarius Vollmer <mvo@zagadka.de>
Sun, 17 Sep 2000 21:16:18 +0000 (21:16 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Sun, 17 Sep 2000 21:16:18 +0000 (21:16 +0000)
in addition to ncurses and termcap.
Check for `readline' in libreadline, not for `main'.
Thanks to Albert Chin!

guile-readline/configure.in

index b59b9e4..8daafb5 100644 (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