File 0009-Fix-finding-wide-variant-of-ncurses-library.patch of Package mingw64-python3

From 3e22a358c907dbfbb26cde8b89b62430104ac4dc Mon Sep 17 00:00:00 2001
From: Ralf Habacker <ralf.habacker@freenet.de>
Date: Wed, 31 Aug 2022 16:17:23 +0200
Subject: [PATCH 09/12] Fix finding wide variant of ncurses library

---
 cmake/ConfigureChecks.cmake | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/cmake/ConfigureChecks.cmake b/cmake/ConfigureChecks.cmake
index ba6ace7..c24f720 100644
--- a/cmake/ConfigureChecks.cmake
+++ b/cmake/ConfigureChecks.cmake
@@ -315,8 +315,17 @@ endif()
 check_include_files(mach-o/dyld.h HAVE_MACH_O_DYLD_H)
 check_include_files(memory.h HAVE_MEMORY_H) # libffi and cpython
 check_include_files(minix/config.h HAVE_MINIX_CONFIG_H)
-check_include_files(ncurses.h HAVE_NCURSES_H)
+check_include_files(ncurses/ncurses.h HAVE_NCURSES_H)
 check_include_files(ncurses/panel.h HAVE_NCURSES_PANEL_H)
+check_include_files(ncursesw/ncurses.h HAVE_NCURSESW)
+check_include_files(ncursesw/ncurses.h HAVE_NCURSESW_NCURSES_H)
+if(HAVE_NCURSESW_NCURSES_H AND NOT HAVE_NCURSES_H)
+    set(HAVE_NCURSES_H 1)
+endif()
+check_include_files(ncursesw/panel.h HAVE_NCURSESW_NCURSES_PANEL_H)
+if(HAVE_NCURSESW_PANEL_H AND NOT HAVE_PANEL_H)
+    set(HAVE_PANEL_H 1)
+endif()
 check_include_files(netdb.h HAVE_NETDB_H)
 check_include_files(netinet/in.h HAVE_NETINET_IN_H)
 check_include_files(netpacket/packet.h HAVE_NETPACKET_PACKET_H)
-- 
2.35.3

openSUSE Build Service is sponsored by