]> git.wh0rd.org Git - nano.git/commitdiff
* configure.ac: Add ncursesw dir to include path if lib detected
authorChris Allegretta <chrisa@asty.org>
Thu, 31 Jul 2008 17:01:47 +0000 (17:01 +0000)
committerChris Allegretta <chrisa@asty.org>
Thu, 31 Jul 2008 17:01:47 +0000 (17:01 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4284 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
configure.ac

index ef2580cda14974bbad372d8a898d7e240f32cf50..2c9c0a4739f4c6af7dae292c9754cb0a5f7866c1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2008-07-23 Chris Allegretta <chrisa@asty.org>
+       * configure.ac: Add ncursesw dir to include path if lib detected
+
 2008-07-11 Mike Frysinger <vapier@gentoo.org>
        * doc/nanorc.sample.in: Include the updates files in the default sample nanorc.
 
index 1e09e23bac5e796d71a37945abc9a97108994e41..0fc5c24034305b49902fefcb2ddfad9ceabbfeaa 100644 (file)
@@ -417,7 +417,7 @@ if eval "test x$CURSES_LIB_NAME = x"; then
     AC_CHECK_HEADERS(ncurses.h)
 
     if test x$enable_utf8 != xno; then
-       AC_CHECK_LIB(ncursesw, get_wch, [CURSES_LIB="-lncursesw" CURSES_LIB_NAME=ncursesw CURSES_LIB_WIDE=yes])
+       AC_CHECK_LIB(ncursesw, get_wch, [CURSES_LIB="-lncursesw" CPPFLAGS="-I/usr/include/ncursesw $CPPFLAGS" CURSES_LIB_NAME=ncursesw CURSES_LIB_WIDE=yes])
     fi
 
     if eval "test x$CURSES_LIB_NAME = x"; then