add ncursesw header and lib checking
authorVitaly Lipatov <lav@etersoft.ru>
Mon, 28 Apr 2008 16:00:01 +0000 (20:00 +0400)
committerVitaly Lipatov <lav@etersoft.ru>
Mon, 28 Apr 2008 16:00:01 +0000 (20:00 +0400)
configure.ac

index c0f6d293e0e7f15870fd40a7a1d018934b71e74a..3b0e7933a6e038585a55cb45a82455075f779989 100644 (file)
@@ -269,6 +269,7 @@ AC_CHECK_HEADERS(\
        machine/soundcard.h \
        mntent.h \
        ncurses.h \
+       ncursesw/ncurses.h \
        netdb.h \
        netinet/in.h \
        netinet/in_systm.h \
@@ -871,7 +872,12 @@ WINE_NOTICE_WITH(hal,[test "x$ac_cv_lib_soname_hal" = "x"],
 
 dnl **** Check which curses lib to use ***
 CURSESLIBS=""
-if test "$ac_cv_header_ncurses_h" = "yes"
+if test "$ac_cv_header_ncursesw_ncurses_h" = "yes"
+then
+    WINE_CHECK_SONAME(ncursesw,waddnwstr,
+      [AC_DEFINE(HAVE_LIBNCURSESW, 1, [Define if you have the ncursesw library (-lncursesw)])
+         CURSESLIBS="-lncursesw"])
+elif test "$ac_cv_header_ncurses_h" = "yes"
 then
     WINE_CHECK_SONAME(ncurses,waddch,[CURSESLIBS="-lncurses"])
 elif test "$ac_cv_header_curses_h" = "yes"
@@ -882,7 +888,7 @@ ac_save_LIBS="$LIBS"
 LIBS="$LIBS $CURSESLIBS"
 AC_CHECK_FUNCS(mousemask)
 LIBS="$ac_save_LIBS"
-WINE_NOTICE_WITH(curses,[test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"],
+WINE_NOTICE_WITH(curses,[test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses$ac_cv_lib_soname_ncursesw" = "x"],
                  [lib(n)curses development files not found, curses won't be supported.])
 
 dnl **** Check for SANE ****