Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
perl_term_readline_gnu: Find ncurses
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Apr 6, 2018
1 parent 3ffafdf commit 672a3a2
Showing 1 changed file with 41 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
From e9fbab6c37a1955bdf44d8e7ab3fe125351e4aad Mon Sep 17 00:00:00 2001
From: Matthias Koeppe <mkoeppe@math.ucdavis.edu>
Date: Fri, 6 Apr 2018 15:17:41 -0500
Subject: [PATCH] Always use ncurses

---
Makefile.PL | 18 ++----------------
1 file changed, 2 insertions(+), 16 deletions(-)

diff --git a/Makefile.PL b/Makefile.PL
index ffd72c1..208aae0 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -74,22 +74,8 @@ if ($Config{osname} eq 'os2') {
}
}

- # Search libtermcap, libncurses, or libcurses in this order.
- # I emulate the behavior of the configure script for bash, and don't
- # know why AIX prefers curses.
- # libtermcap.a on HPUX cannot be used for dynamically linked binary.
- # Old Cygwin may require setting false (0).
- 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('-lcurses');
-
- unless ($TERMCAP_LIB) {
- warn "Could not find neither libtermcap.a, libncurses.a, or libcurses.\n";
- exit $err;
- }
-
+ my $TERMCAP_LIB = '-lncurses';
+
$libs = "-lreadline $TERMCAP_LIB";
# Latest Perl in FreeBSD does not need this hack. (Dec.2002)
$libs .= ' -lcrypt' if ($Config{osname} =~ /freebsd/i);
--
2.11.0

0 comments on commit 672a3a2

Please sign in to comment.