]> code.ossystems Code Review - openembedded-core.git/commit
ncurses: refactor configure to avoid configuring widec when disabled
authorDarren Hart <dvhart@linux.intel.com>
Tue, 8 Nov 2011 18:21:28 +0000 (10:21 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 10 Nov 2011 12:07:21 +0000 (12:07 +0000)
commit8b995deb046469c1c713fa053510d2fe94454133
tree0c88c6078df25e87e725c5b2858f77c6d8a528ce
parentb50bf2fe6d3364e2ceb652623c9c25057d8b1001
ncurses: refactor configure to avoid configuring widec when disabled

The ENABLE_WIDEC variable can be used to disable ncurses wide character support
when your C library doesn't support it. Currently, the do_configure step
configures for both narrow and wide characters regardless and only checks
ENABLE_WIDEC during compilation. This leads to QA failures with host
contamination during configure if the C library doesn't support wide characters.

Refactor do_configure with a new ncurses_configure helper function and only
configure for wide character support if ENABLE_WIDEC is true.

Ensure that configure errors are propogated back through to do_configure.

Tested with ENABLE_WIDEC as true and false via an ncurses bbappend on i586,
including basic error injection.

V2: INC_PR bump

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
meta/recipes-core/ncurses/ncurses.inc