improove termcap detection, -lncurses works too

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17237 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ods15 2005-12-25 07:21:42 +00:00
parent c2c91b66bc
commit 6a837d7f0d
1 changed files with 2 additions and 2 deletions

4
configure vendored
View File

@ -3060,10 +3060,10 @@ echores "$_sol_scsi_h"
echocheck "termcap"
if test "$_termcap" = auto ; then
cat > $TMPC <<EOF
int main(void) { return 0; }
int main(void) { tgetent(); return 0; }
EOF
_termcap=no
for _ld_tmp in "-ltermcap" "-ltinfo" ; do
for _ld_tmp in "-ltermcap" "-ltinfo" "-lncurses"; do
cc_check $_ld_tmp && _ld_termcap="$_ld_tmp" && _termcap=yes && break
done
fi