[Python-checkins] gh-94644: Define HAVE_NCURSESW in pkg-config branch (#94651)
tiran
webhook-mailer at python.org
Thu Jul 7 06:57:17 EDT 2022
https://github.com/python/cpython/commit/9c60b25a0d5c0107862a04e3ba8f789921b88961
commit: 9c60b25a0d5c0107862a04e3ba8f789921b88961
branch: main
author: Christian Heimes <christian at python.org>
committer: tiran <christian at python.org>
date: 2022年07月07日T12:57:12+02:00
summary:
gh-94644: Define HAVE_NCURSESW in pkg-config branch (#94651)
files:
M configure
M configure.ac
diff --git a/configure b/configure
index 38481eea8475e..bb0625432d211 100755
--- a/configure
+++ b/configure
@@ -21825,6 +21825,8 @@ else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
+ $as_echo "#define HAVE_NCURSESW 1" >>confdefs.h
+
have_curses=ncursesw
fi
diff --git a/configure.ac b/configure.ac
index 42e181bca9dac..fde61728e7ef8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6112,6 +6112,7 @@ AS_VAR_IF([ac_cv_header_ncurses_h], [yes], [
if test "$ac_sys_system" != "Darwin"; then
dnl On macOS, there is no separate /usr/lib/libncursesw nor libpanelw.
PKG_CHECK_MODULES([CURSES], [ncursesw], [
+ AC_DEFINE([HAVE_NCURSESW], [1])
have_curses=ncursesw
], [
WITH_SAVE_ENV([
More information about the Python-checkins
mailing list