summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-08-20 00:31:48 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-08-20 00:31:48 -0300
commit8bd603cb68fb5dd768b5b23ffe0c6f09f5340ceb (patch)
treefe5506bbbd80dca2b318e7d89c51218f31d880a4 /configure.ac
parent78be8201dc86c4d57226d845f04ac496cd64d9b6 (diff)
Make Unicode strings safe for ncurses 6 ABI.
Closes #241.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
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.])

© 2014-2024 Faster IT GmbH | imprint | privacy policy