Package: libterm-readline-gnu-perl / 1.24-2

40terminfo.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: check for -ltinfo
Origin: vendor
Bug_debian: http://bugs.debian.org/644423
Forwarded: no
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2011-10-07

--- a/Makefile.PL
+++ b/Makefile.PL
@@ -65,11 +65,12 @@
     my $PREFER_CURSES = $Config{osname} eq 'aix' || $Config{osname} eq 'hpux'
 			|| $Config{osname} eq 'cygwin';
     my $TERMCAP_LIB = (! $PREFER_CURSES && &search_lib('-ltermcap'))
-	|| &search_lib('-lncurses')
+	|| &search_lib('-ltinfo')
+	    || &search_lib('-lncurses')
 	    || &search_lib('-lcurses');
 
     unless ($TERMCAP_LIB) {
-	warn "Could not find neither libtermcap.a, libncurses.a, or libcurses.\n";
+	warn "Could not find neither libtinfo, libtermcap.a, libncurses.a, or libcurses.\n";
 	exit $err;
     }