Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1490326
 поиск   регистрация   авторизация 
 
Группа :: Видео
Пакет: MPlayer

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Патч: MPlayer-1.0pre4-alt-explicit_termcap.patch


diff -urN MPlayer-1.0pre4.orig/configure MPlayer-1.0pre4/configure
--- MPlayer-1.0pre4.orig/configure	2004-05-03 12:12:43 +0700
+++ MPlayer-1.0pre4/configure	2004-05-03 12:31:50 +0700
@@ -2549,6 +2549,17 @@
   _termcap=no
   cc_check -ltermcap && _termcap=yes && _ld_termcap='-ltermcap'
   cc_check -ltinfo && _termcap=yes && _ld_termcap='-ltinfo'
+elif test "$_termcap" = yes ; then
+  cat > $TMPC <<EOF
+int main(void) { return 0; }
+EOF
+  if test -n "$_ld_termcap" ; then
+    cc_check "$_ld_termcap" || die "Unable to link with $_ld_termcap"
+  else
+    cc_check -ltinfo && _ld_termcap='-ltinfo'
+    test -z "$_ld_termcap" && cc_check -ltermcap && _ld_termcap='-ltermcap'
+    test -z "$_ld_termcap" && die "Unable to find termcap lib"
+  fi
 fi
 if test "$_termcap" = yes ; then
   _def_termcap='#define USE_TERMCAP 1'
 
design & coding: Vladimir Lettiev aka crux © 2004-2005