master hovercats/oakiss / repo / cmus / patches / 0002-remove-cursesw-and-curses-check.-it-errors-out-with-.patch
 1From 4df30bd425fae0981fc608df2553ea3f2587391b Mon Sep 17 00:00:00 2001
 2From: hovercats <hovercatswithlasereyes@protonmail.com>
 3Date: Sat, 9 Nov 2024 08:17:25 +0100
 4Subject: [PATCH] remove cursesw and curses check. it errors out with oasis's
 5 netbsd-curses
 6
 7---
 8 configure | 32 +++-----------------------------
 9 1 file changed, 3 insertions(+), 29 deletions(-)
10
11diff --git a/configure b/configure
12index fb750ad..882e9b0 100755
13--- a/configure
14+++ b/configure
15@@ -178,35 +178,9 @@ int main(void)
16 
17 check_ncurses()
18 {
19-	if pkg_config NCURSES "ncursesw" "" "-lncursesw"
20-	then
21-		widechars=y
22-	elif pkg_config NCURSES "ncurses" "" "-lncurses" || pkg_config NCURSES "curses" "" "-lcurses"
23-	then
24-		widechars=n
25-		msg_error "Your ncurses does not support wide characters!"
26-		msg_error "Install ncursesw if you need wide character support,"
27-		msg_error "you can ignore this warning otherwise."
28-	fi
29-	test -z "$widechars" && return 1
30-
31-	msg_checking "for working ncurses setup"
32-	for flag in "" "-I/usr/include/ncurses" "-I/usr/include/ncursesw"
33-	do
34-		if try_compile_link "$ncurses_code" $flag $NCURSES_LIBS
35-		then
36-			NCURSES_CFLAGS="$NCURSES_CFLAGS $flag"
37-			msg_result yes
38-			working_curses=y
39-			break
40-		fi
41-	done
42-	if test -z "$working_curses"
43-	then
44-		msg_result no
45-		return 1
46-	fi
47-
48+	widechars=n
49+	working_curses=y
50+	
51 	check_function "resizeterm" $NCURSES_CFLAGS $NCURSES_LIBS
52 	HAVE_RESIZETERM=`test $? -ne 0 ; echo $?`
53 
54-- 
552.45.1
56