File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -3868,7 +3868,7 @@ else
3868
3868
fi
3869
3869
3870
3870
if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then
3871
- LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`"
3871
+ LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ . *$//'`"
3872
3872
else
3873
3873
LIBFFI_INCLUDEDIR=""
3874
3874
fi
@@ -6439,17 +6439,15 @@ then
6439
6439
fi
6440
6440
6441
6441
if test -n "$PKG_CONFIG"; then
6442
- NCURSESW_INCLUDEDIR="`"$PKG_CONFIG" ncursesw --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`"
6442
+ NCURSESW_INCLUDEDIR="`"$PKG_CONFIG" ncursesw --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ . *$//'`"
6443
6443
else
6444
6444
NCURSESW_INCLUDEDIR=""
6445
6445
fi
6446
6446
AC_SUBST ( NCURSESW_INCLUDEDIR )
6447
6447
6448
6448
# first curses header check
6449
6449
ac_save_cppflags="$CPPFLAGS"
6450
- if test "$cross_compiling" = no; then
6451
- CPPFLAGS="$CPPFLAGS -I$NCURSESW_INCLUDEDIR"
6452
- fi
6450
+ CPPFLAGS="$CPPFLAGS -I$NCURSESW_INCLUDEDIR"
6453
6451
6454
6452
AC_CHECK_HEADERS ( curses.h ncurses.h )
6455
6453
Original file line number Diff line number Diff line change @@ -1155,8 +1155,7 @@ def detect_readline_curses(self):
1155
1155
panel_library = 'panel'
1156
1156
if curses_library == 'ncursesw' :
1157
1157
curses_defines .append (('HAVE_NCURSESW' , '1' ))
1158
- if not CROSS_COMPILING :
1159
- curses_includes .append (sysconfig .get_config_var ("NCURSESW_INCLUDEDIR" ))
1158
+ curses_includes .append (sysconfig .get_config_var ("NCURSESW_INCLUDEDIR" ))
1160
1159
# Bug 1464056: If _curses.so links with ncursesw,
1161
1160
# _curses_panel.so must link with panelw.
1162
1161
panel_library = 'panelw'
You can’t perform that action at this time.
0 commit comments