diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-08-20 00:31:48 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-08-20 00:31:48 -0300 |
commit | 8bd603cb68fb5dd768b5b23ffe0c6f09f5340ceb (patch) | |
tree | fe5506bbbd80dca2b318e7d89c51218f31d880a4 /configure.ac | |
parent | 78be8201dc86c4d57226d845f04ac496cd64d9b6 (diff) |
Make Unicode strings safe for ncurses 6 ABI.
Closes #241.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index f9e58eea..13b09a6b 100644 --- a/configure.ac +++ b/configure.ac @@ -143,7 +143,10 @@ fi AC_ARG_ENABLE(unicode, [AC_HELP_STRING([--enable-unicode], [enable Unicode support])], ,enable_unicode="yes") if test "x$enable_unicode" = xyes; then - AC_CHECK_LIB([ncursesw6], [refresh], [], [ + AC_CHECK_LIB([ncursesw6], [refresh], [ + AC_DEFINE(HAVE_LIBNCURSESW, 1, []) + LIBS="-lncursesw6 $LIBS " + ], [ AC_CHECK_LIB([ncursesw], [refresh], [], [ missing_libraries="$missing_libraries libncursesw" AC_MSG_ERROR([You may want to use --disable-unicode or install libncursesw.]) |