From 150baa465ba7ef6027004829804d58a4cd8a178c Mon Sep 17 00:00:00 2001 From: Stas Sergeev Date: Fri, 27 Oct 2006 19:06:09 +0000 Subject: [PATCH 1/1] Use libncursesw, not libncurses --- configure | 22 +++++++++++----------- configure.ac | 2 +- src/config.h.in | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/configure b/configure index 75f845b..f613871 100755 --- a/configure +++ b/configure @@ -5988,13 +5988,13 @@ echo "$as_me: error: math library is missing on your system." >&2;} fi -echo "$as_me:$LINENO: checking for newwin in -lncurses" >&5 -echo $ECHO_N "checking for newwin in -lncurses... $ECHO_C" >&6 -if test "${ac_cv_lib_ncurses_newwin+set}" = set; then +echo "$as_me:$LINENO: checking for newwin in -lncursesw" >&5 +echo $ECHO_N "checking for newwin in -lncursesw... $ECHO_C" >&6 +if test "${ac_cv_lib_ncursesw_newwin+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lncurses $LIBS" +LIBS="-lncursesw $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF @@ -6039,25 +6039,25 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_lib_ncurses_newwin=yes + ac_cv_lib_ncursesw_newwin=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_cv_lib_ncurses_newwin=no +ac_cv_lib_ncursesw_newwin=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_newwin" >&5 -echo "${ECHO_T}$ac_cv_lib_ncurses_newwin" >&6 -if test $ac_cv_lib_ncurses_newwin = yes; then +echo "$as_me:$LINENO: result: $ac_cv_lib_ncursesw_newwin" >&5 +echo "${ECHO_T}$ac_cv_lib_ncursesw_newwin" >&6 +if test $ac_cv_lib_ncursesw_newwin = yes; then cat >>confdefs.h <<_ACEOF -#define HAVE_LIBNCURSES 1 +#define HAVE_LIBNCURSESW 1 _ACEOF - LIBS="-lncurses $LIBS" + LIBS="-lncursesw $LIBS" else { { echo "$as_me:$LINENO: error: ncurses library is missing on your system." >&5 diff --git a/configure.ac b/configure.ac index 5ac7654..f250747 100644 --- a/configure.ac +++ b/configure.ac @@ -27,7 +27,7 @@ fi # Checks for libraries. AC_CHECK_LIB(m, floor, [], AC_MSG_ERROR([math library is missing on your system.])) -AC_CHECK_LIB(ncurses, newwin, [], +AC_CHECK_LIB(ncursesw, newwin, [], AC_MSG_ERROR([ncurses library is missing on your system.])) # Checks for header files. diff --git a/src/config.h.in b/src/config.h.in index 7ceb83a..7ce35ea 100644 --- a/src/config.h.in +++ b/src/config.h.in @@ -43,8 +43,8 @@ /* Define to 1 if you have the `m' library (-lm). */ #undef HAVE_LIBM -/* Define to 1 if you have the `ncurses' library (-lncurses). */ -#undef HAVE_LIBNCURSES +/* Define to 1 if you have the `ncursesw' library (-lncursesw). */ +#undef HAVE_LIBNCURSESW /* Define to 1 if you have the header file. */ #undef HAVE_LINUX_KD_H -- 2.31.1