mirror of https://github.com/mpv-player/mpv
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:
parent
c2c91b66bc
commit
6a837d7f0d
|
@ -3060,10 +3060,10 @@ echores "$_sol_scsi_h"
|
||||||
echocheck "termcap"
|
echocheck "termcap"
|
||||||
if test "$_termcap" = auto ; then
|
if test "$_termcap" = auto ; then
|
||||||
cat > $TMPC <<EOF
|
cat > $TMPC <<EOF
|
||||||
int main(void) { return 0; }
|
int main(void) { tgetent(); return 0; }
|
||||||
EOF
|
EOF
|
||||||
_termcap=no
|
_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
|
cc_check $_ld_tmp && _ld_termcap="$_ld_tmp" && _termcap=yes && break
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue