Commit 8b26095c authored by Chris Allegretta's avatar Chris Allegretta
Browse files

Only define HAVE_TABSIZE in ncurses

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@42 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent f374645e
Showing with 105 additions and 143 deletions
+105 -143
......@@ -22,5 +22,5 @@
/* Define to use the slang wrappers for curses instead of native curses */
#undef USE_SLANG
/* Define this if you have the TABSIZE global in your curses lib */
/* Define this if you have a behaving TABSIZE global in your curses lib */
#undef HAVE_TABSIZE
......@@ -76,7 +76,7 @@
/* Define to use the slang wrappers for curses instead of native curses */
#undef USE_SLANG
/* Define this if you have the TABSIZE global in your curses lib */
/* Define this if you have a behaving TABSIZE global in your curses lib */
#undef HAVE_TABSIZE
/* Define if you have the __argz_count function. */
......
This diff is collapsed.
......@@ -101,7 +101,9 @@ dnl Checks for libraries.
if eval "test x$CURSES_LIB_NAME = x"
then
AC_CHECK_HEADERS(curses.h ncurses.h)
AC_CHECK_LIB(ncurses, tgetent, CURSES_LIB="-lncurses" CURSES_LIB_NAME=ncurses)
AC_CHECK_LIB(ncurses, tgetent,[CURSES_LIB="-lncurses" CURSES_LIB_NAME=ncurses
dnl Only ncurses seems to have a working TABSIZE function.
AC_DEFINE(HAVE_TABSIZE)])
fi
if eval "test x$CURSES_LIB_NAME = x"
......@@ -126,7 +128,6 @@ fi
AC_CHECK_LIB($CURSES_LIB_NAME, wresize, AC_DEFINE(HAVE_WRESIZE))
AC_CHECK_LIB($CURSES_LIB_NAME, TABSIZE, AC_DEFINE(HAVE_TABSIZE))
dnl Parse any configure options
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment