comparison src/configure.in @ 2700:7c46737918cb v7.3.117

updated for version 7.3.117 Problem: On some systems --as-needed does not work, because the "tinfo" library is included indirectly from "ncurses". (Charles Campbell) Solution: In configure prefer using "tinfo" instead of "ncurses".
author Bram Moolenaar <bram@vim.org>
date Wed, 09 Feb 2011 17:42:57 +0100
parents b803b2776880
children 820f12659c50
comparison
equal deleted inserted replaced
2699:bb3661a2eccc 2700:7c46737918cb
2616 olibs="$LIBS" 2616 olibs="$LIBS"
2617 else 2617 else
2618 AC_MSG_RESULT([empty: automatic terminal library selection]) 2618 AC_MSG_RESULT([empty: automatic terminal library selection])
2619 dnl On HP-UX 10.10 termcap or termlib should be used instead of 2619 dnl On HP-UX 10.10 termcap or termlib should be used instead of
2620 dnl curses, because curses is much slower. 2620 dnl curses, because curses is much slower.
2621 dnl Newer versions of ncurses are preferred over anything. 2621 dnl Newer versions of ncurses are preferred over anything, except
2622 dnl when tinfo has been split off, it conains all we need.
2622 dnl Older versions of ncurses have bugs, get a new one! 2623 dnl Older versions of ncurses have bugs, get a new one!
2623 dnl Digital Unix (OSF1) should use curses (Ronald Schild). 2624 dnl Digital Unix (OSF1) should use curses (Ronald Schild).
2624 dnl On SCO Openserver should prefer termlib (Roger Cornelius). 2625 dnl On SCO Openserver should prefer termlib (Roger Cornelius).
2625 case "`uname -s 2>/dev/null`" in 2626 case "`uname -s 2>/dev/null`" in
2626 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";; 2627 OSF1|SCO_SV) tlibs="tinfo ncurses curses termlib termcap";;
2627 *) tlibs="ncurses termlib termcap curses";; 2628 *) tlibs="tinfo ncurses termlib termcap curses";;
2628 esac 2629 esac
2629 for libname in $tlibs; do 2630 for libname in $tlibs; do
2630 AC_CHECK_LIB(${libname}, tgetent,,) 2631 AC_CHECK_LIB(${libname}, tgetent,,)
2631 if test "x$olibs" != "x$LIBS"; then 2632 if test "x$olibs" != "x$LIBS"; then
2632 dnl It's possible that a library is found but it doesn't work 2633 dnl It's possible that a library is found but it doesn't work