From patchwork Wed Dec 7 07:47:26 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: configure: don't try to compile against known broken curses. Date: Tue, 06 Dec 2011 21:47:26 -0000 From: andrzej zaborowski X-Patchwork-Id: 130012 Message-Id: <1323244048-6021-1-git-send-email-balrogg@gmail.com> To: qemu-devel@nongnu.org This should resolve a problem noted by Caraman Mihai Claudiu. Signed-off-by: Andrzej Zaborowski Reviewed-by: Stefan Weil --- configure | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 61c43b9..678b982 100755 --- a/configure +++ b/configure @@ -1846,6 +1846,11 @@ if test "$curses" != "no" ; then #ifdef __OpenBSD__ #define resize_term resizeterm #endif +#ifdef NCURSES_VERSION +# if NCURSES_VERSION_PATCH < 20040117 +# error Old ncurses contain dangerous typedefs, break qemu build (and are old) +# endif +#endif int main(void) { resize_term(0, 0); return curses_version(); } EOF for curses_lib in $curses_list; do