34 |
AM_GNU_GETTEXT |
AM_GNU_GETTEXT |
35 |
|
|
36 |
# Checks for libraries |
# Checks for libraries |
37 |
AC_CHECK_LIB(ncursesw, initscr, LIBNCURSES_FOUND=1, LIBNCURSES_FOUND=0) |
AC_CHECK_LIB(ncurses, initscr, LIBNCURSES_FOUND=1, LIBNCURSES_FOUND=0) |
38 |
|
AC_CHECK_LIB(ncursesw, initscr, LIBNCURSESW_FOUND=1, LIBNCURSESW_FOUND=0) |
39 |
|
|
40 |
# Checks for header files |
# Checks for header files |
41 |
AC_HEADER_STDC |
AC_HEADER_STDC |
104 |
# ------------------------------------------------------------------------------ |
# ------------------------------------------------------------------------------ |
105 |
|
|
106 |
if test "x$enable_ncurses" = "xyes" ; then |
if test "x$enable_ncurses" = "xyes" ; then |
107 |
if test "$LIBNCURSES_FOUND" = "0" ; then |
if test "$LIBNCURSESW_FOUND" = "0" ; then |
108 |
AC_MSG_ERROR([ |
if test "$LIBNCURSES_FOUND" = "0" ; then |
109 |
*** ncursesw library not found! |
AC_MSG_ERROR([ |
110 |
|
*** ncurses library not found! |
111 |
*** Please install ncurses library or run ./configure with --disable-ncurses parameter.]) |
*** Please install ncurses library or run ./configure with --disable-ncurses parameter.]) |
112 |
|
fi |
113 |
|
AC_MSG_WARN([ |
114 |
|
*** ncursesw library not found! Falling back to "ncurses" |
115 |
|
*** Be careful, UTF-8 display will not work properly.]) |
116 |
|
NCURSES_LIBS="-lncurses" |
117 |
|
else |
118 |
|
NCURSES_LIBS="-lncursesw" |
119 |
|
AC_CHECK_HEADERS(ncursesw/curses.h) |
120 |
fi |
fi |
|
NCURSES_LIBS="-lncursesw" |
|
121 |
AC_SUBST(NCURSES_LIBS) |
AC_SUBST(NCURSES_LIBS) |
122 |
fi |
fi |
123 |
|
|