Line
Link Here
|
0 |
-- a/c3270/configure.in |
0 |
++ b/c3270/configure.in |
Lines 92-98
Link Here
|
92 |
dnl first, so that objects in them can be used by subsequent libraries. |
92 |
dnl first, so that objects in them can be used by subsequent libraries. |
93 |
AC_SEARCH_LIBS(forkpty, util) |
93 |
AC_SEARCH_LIBS(forkpty, util) |
94 |
AC_CHECK_FUNCS(forkpty) |
94 |
AC_CHECK_FUNCS(forkpty) |
95 |
AC_CHECK_LIB(ncursesw, newterm, , [AC_CHECK_LIB(ncurses, newterm, , [AC_CHECK_LIB(curses, newterm, , [AC_MSG_ERROR(Can't find libncurses or new-enough libcurses)])])]) |
95 |
AC_SEARCH_LIBS(newterm, ncursesw ncurses curses, , [AC_MSG_ERROR(Can't find libncurses or new-enough libcurses)]) |
|
|
96 |
AC_SEARCH_LIBS(setupterm, tinfow tinfo, , [AC_MSG_ERROR(Can't find terminfo library)]) |
96 |
if test "$with_readline" != no; then |
97 |
if test "$with_readline" != no; then |
97 |
AC_CHECK_LIB(readline, rl_initialize) |
98 |
AC_CHECK_LIB(readline, rl_initialize) |
98 |
fi |
99 |
fi |
Lines 115-134
Link Here
|
115 |
AC_FUNC_FSEEKO |
116 |
AC_FUNC_FSEEKO |
116 |
|
117 |
|
117 |
dnl Check for curses wide character support. |
118 |
dnl Check for curses wide character support. |
118 |
if test "$ac_cv_lib_ncursesw_newterm" = yes |
119 |
AC_SEARCH_LIBS(wadd_wch, ncursesw ncurses curses, [AC_DEFINE(CURSES_WIDE,1) |
119 |
then AC_CHECK_LIB(ncursesw, wadd_wch, [AC_DEFINE(CURSES_WIDE,1) |
120 |
Cw=1], [AC_MSG_WARN(Wide curses not found -- c3270 will not be able to support multi-byte character encodings)]) |
120 |
Cw=1]) |
|
|
121 |
elif test "$ac_cv_lib_ncurses_newterm" = yes |
122 |
then AC_CHECK_LIB(ncurses, wadd_wch, [AC_DEFINE(CURSES_WIDE,1) |
123 |
Cw=1]) |
124 |
elif test "$ac_cv_lib_curses_newterm" = yes |
125 |
then AC_CHECK_LIB(curses, wadd_wch, [AC_DEFINE(CURSES_WIDE,1) |
126 |
Cw=1]) |
127 |
else echo "What??? " |
128 |
fi |
129 |
if test "$Cw" != "1" |
130 |
then AC_MSG_WARN(Wide curses not found -- c3270 will not be able to support multi-byte character encodings) |
131 |
fi |
132 |
AC_SUBST(CURSES_WIDE) |
121 |
AC_SUBST(CURSES_WIDE) |
133 |
|
122 |
|
134 |
dnl Check for default pager |
123 |
dnl Check for default pager |