Commit 34714150 authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

Test for unicode-enabled libncurses

parent 0837fc5b
...@@ -146,13 +146,15 @@ fi ...@@ -146,13 +146,15 @@ fi
AC_ARG_ENABLE(unicode, [AC_HELP_STRING([--enable-unicode], [enable Unicode support])], ,enable_unicode="yes") AC_ARG_ENABLE(unicode, [AC_HELP_STRING([--enable-unicode], [enable Unicode support])], ,enable_unicode="yes")
if test "x$enable_unicode" = xyes; then if test "x$enable_unicode" = xyes; then
AC_CHECK_LIB([ncursesw6], [refresh], [ AC_CHECK_LIB([ncursesw6], [addnwstr], [
AC_DEFINE(HAVE_LIBNCURSESW, 1, []) AC_DEFINE(HAVE_LIBNCURSESW, 1, [])
LIBS="-lncursesw6 $LIBS " LIBS="-lncursesw6 $LIBS "
], [ ], [
AC_CHECK_LIB([ncursesw], [refresh], [], [ AC_CHECK_LIB([ncursesw], [addnwstr], [], [
missing_libraries="$missing_libraries libncursesw" AC_CHECK_LIB([ncurses], [addnwstr], [], [
AC_MSG_ERROR([You may want to use --disable-unicode or install libncursesw.]) missing_libraries="$missing_libraries libncursesw"
AC_MSG_ERROR([You may want to use --disable-unicode or install libncursesw.])
])
]) ])
]) ])
AC_CHECK_HEADERS([ncursesw/curses.h],[:], AC_CHECK_HEADERS([ncursesw/curses.h],[:],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment