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 1/3] 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.24.1.1484.g7fcb965970

