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

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

Патч: amanda-2.5.0-alt-tinfo.patch


--- configure.orig	2006-03-24 04:18:53 +0300
+++ configure	2006-03-29 20:35:51 +0400
@@ -32315,13 +32662,13 @@
 esac
 
 
-echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
-echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
-if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
+echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
+echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
+if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-ltermcap  $LIBS"
+LIBS="-ltinfo  $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -32366,29 +32713,29 @@
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; }; then
-  ac_cv_lib_termcap_tgetent=yes
+  ac_cv_lib_tinfo_tgetent=yes
 else
   echo "$as_me: failed program was:" >&5
 sed 's/^/| /' conftest.$ac_ext >&5
 
-ac_cv_lib_termcap_tgetent=no
+ac_cv_lib_tinfo_tgetent=no
 fi
 rm -f conftest.err conftest.$ac_objext \
       conftest$ac_exeext conftest.$ac_ext
 LIBS=$ac_check_lib_save_LIBS
 fi
-echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
-echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
-if test $ac_cv_lib_termcap_tgetent = yes; then
+echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
+echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
+if test $ac_cv_lib_tinfo_tgetent = yes; then
   cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBTERMCAP 1
+#define HAVE_LIBTINFO 1
 _ACEOF
 
-  LIBS="-ltermcap $LIBS"
+  LIBS="-ltinfo $LIBS"
 
 fi
 
-if test "x$ac_cv_lib_termcap_tgetent" != xyes; then
+if test "x$ac_cv_lib_tinfo_tgetent" != xyes; then
 
 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
@@ -32540,7 +32887,7 @@
 
     fi
 fi
-if test "x$ac_cv_lib_termcap_tgetent" = xyes ||
+if test "x$ac_cv_lib_tinfo_tgetent" = xyes ||
    test "x$ac_cv_lib_curses_tgetent" = xyes ||
    test "x$ac_cv_lib_ncurses_tgetent" = xyes; then
     echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
--- configure.in.orig	2006-03-24 04:18:22 +0300
+++ configure.in	2006-03-29 20:35:16 +0400
@@ -2128,14 +2128,14 @@
 			;;
 esac
 
-AC_CHECK_LIB(termcap,tgetent)
-if test "x$ac_cv_lib_termcap_tgetent" != xyes; then
+AC_CHECK_LIB(tinfo,tgetent)
+if test "x$ac_cv_lib_tinfo_tgetent" != xyes; then
     AC_CHECK_LIB(curses,tgetent)
     if test "x$ac_cv_lib_curses_tgetent" != xyes; then
 	AC_CHECK_LIB(ncurses,tgetent)
     fi
 fi
-if test "x$ac_cv_lib_termcap_tgetent" = xyes ||
+if test "x$ac_cv_lib_tinfo_tgetent" = xyes ||
    test "x$ac_cv_lib_curses_tgetent" = xyes ||
    test "x$ac_cv_lib_ncurses_tgetent" = xyes; then
     AC_CHECK_LIB(readline,readline,
 
design & coding: Vladimir Lettiev aka crux © 2004-2005