From: Adam Dickmeiss Date: Fri, 25 Feb 2000 11:40:09 +0000 (+0000) Subject: Check for possible inclusion -ltermcap when doing -lreadline check. X-Git-Tag: YAZ.1.8~275 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=494f920a167da8363b008176b75960f983e1631a;p=yaz-moved-to-github.git Check for possible inclusion -ltermcap when doing -lreadline check. --- diff --git a/configure.in b/configure.in index 5e6d0c0..caccff8 100644 --- a/configure.in +++ b/configure.in @@ -1,7 +1,7 @@ dnl YAZ Toolkit dnl (c) Index Data 1994-1999 dnl See the file LICENSE for details. -dnl $Id: configure.in,v 1.14 1999-12-16 23:36:19 adam Exp $ +dnl $Id: configure.in,v 1.15 2000-02-25 11:40:09 adam Exp $ AC_INIT(include/yaz/yaz-version.h) dnl dnl ------ Checking programs @@ -46,6 +46,9 @@ AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"])) dnl dnl ------ GNU Readline AC_CHECK_LIB(readline, readline, [LIBS="$LIBS -lreadline"]) +if test "$ac_cv_lib_readline_readline" = "no"; then + AC_CHECK_LIB(readline, readline, [LIBS="$LIBS -lreadline -ltermcap"]) +fi AC_CHECK_LIB(history, add_history, [LIBS="$LIBS -lhistory"]) if test "$ac_cv_lib_readline_readline" = "yes"; then AC_CHECK_HEADERS(readline/readline.h readline/history.h)