Issue #28190: Merge 3.6.

This commit is contained in:
Xavier de Gaye 2016-12-13 16:05:15 +01:00
commit f191a9e8e4
3 changed files with 8 additions and 3 deletions

2
configure vendored
View File

@ -15706,7 +15706,9 @@ fi
# first curses header check
ac_save_cppflags="$CPPFLAGS"
if test "$cross_compiling" = no; then
CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
fi
for ac_header in curses.h ncurses.h
do :

View File

@ -4889,7 +4889,9 @@ fi
# first curses header check
ac_save_cppflags="$CPPFLAGS"
if test "$cross_compiling" = no; then
CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
fi
AC_CHECK_HEADERS(curses.h ncurses.h)

View File

@ -1350,6 +1350,7 @@ class PyBuildExt(build_ext):
panel_library = 'panel'
if curses_library == 'ncursesw':
curses_defines.append(('HAVE_NCURSESW', '1'))
if not cross_compiling:
curses_includes.append('/usr/include/ncursesw')
# Bug 1464056: If _curses.so links with ncursesw,
# _curses_panel.so must link with panelw.