Mercurial > mplayer.hg
comparison configure @ 17236:3c172cd21575
improove termcap detection, -lncurses works too
author | ods15 |
---|---|
date | Sun, 25 Dec 2005 07:21:42 +0000 (2005-12-25) |
parents | 6ac0b5f0d1ed |
children | 8c150c1db839 |
comparison
equal
deleted
inserted
replaced
17235:fbac61e449d5 | 17236:3c172cd21575 |
---|---|
3058 | 3058 |
3059 | 3059 |
3060 echocheck "termcap" | 3060 echocheck "termcap" |
3061 if test "$_termcap" = auto ; then | 3061 if test "$_termcap" = auto ; then |
3062 cat > $TMPC <<EOF | 3062 cat > $TMPC <<EOF |
3063 int main(void) { return 0; } | 3063 int main(void) { tgetent(); return 0; } |
3064 EOF | 3064 EOF |
3065 _termcap=no | 3065 _termcap=no |
3066 for _ld_tmp in "-ltermcap" "-ltinfo" ; do | 3066 for _ld_tmp in "-ltermcap" "-ltinfo" "-lncurses"; do |
3067 cc_check $_ld_tmp && _ld_termcap="$_ld_tmp" && _termcap=yes && break | 3067 cc_check $_ld_tmp && _ld_termcap="$_ld_tmp" && _termcap=yes && break |
3068 done | 3068 done |
3069 fi | 3069 fi |
3070 if test "$_termcap" = yes ; then | 3070 if test "$_termcap" = yes ; then |
3071 _def_termcap='#define USE_TERMCAP 1' | 3071 _def_termcap='#define USE_TERMCAP 1' |