From 09c6bc2f29ddcb8b84669dd9865f2124270bf62c Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 3 Jun 2012 23:22:13 +0200 Subject: [PATCH] gui: Try to link against libncursesw. This variant of the curses library supports wide characters so we should link against it if it is available. If it is not, we may still fall back to libcurses instead. --- configure.ac | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 45557f6d..e1fa8116 100644 --- a/configure.ac +++ b/configure.ac @@ -471,11 +471,16 @@ fi AC_CHECK_HEADER(curses.h, [], [ have_curses="no" ]) -AC_CHECK_LIB([curses], [initscr], [], [ - have_curses="no" -]) +gui_ldflags="$curses_libs" +AC_CHECK_LIB([ncursesw], [initscr], + [gui_ldflags="$curses_libs -lncursesw"], [ + AC_CHECK_LIB([curses], [initscr], + [gui_ldflags="$curses_libs -lcurses"], + [have_curses="no"] + ) + ] +) if test "$have_curses" = "yes"; then - gui_ldflags="$curses_libs -lcurses" AC_SUBST(curses_cppflags) extras="$extras gui" executables="$executables gui" -- 2.39.5