* configure.in: Check for waddstr instead of mvwaddstr when

searching for curses library.  Check for wborder.
* configure, config.in: Regenerate.
* tui/tui-wingeneral.c (box_win): Use box if wborder isn't
available.
This commit is contained in:
Mark Kettenis 2004-09-25 09:17:47 +00:00
parent 9a8371d2df
commit 8b9cf73540
5 changed files with 305 additions and 236 deletions

View File

@ -1,5 +1,11 @@
2004-09-25 Mark Kettenis <kettenis@gnu.org>
* configure.in: Check for waddstr instead of mvwaddstr when
searching for curses library. Check for wborder.
* configure, config.in: Regenerate.
* tui/tui-wingeneral.c (box_win): Use box if wborder isn't
available.
* inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2004-09-24 Robert Picco <Robert.Picco@hp.com>

View File

@ -263,6 +263,9 @@
/* Define if you have the ttrace function. */
#undef HAVE_TTRACE
/* Define if you have the wborder function. */
#undef HAVE_WBORDER
/* Define if you have the <argz.h> header file. */
#undef HAVE_ARGZ_H

521
gdb/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -195,7 +195,7 @@ AC_ARG_ENABLE(tui,
esac],enable_tui=yes)
if test x"$enable_tui" = xyes; then
if test -d $srcdir/tui; then
if test "$ac_cv_search_mvwaddstr" != no; then
if test "$ac_cv_search_waddstr" != no; then
CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
@ -341,9 +341,9 @@ AC_SEARCH_LIBS(socketpair, socket)
# search /usr/local/include, if ncurses is installed in /usr/local. A
# default installation of ncurses on alpha*-dec-osf* will lead to such
# a situation.
AC_SEARCH_LIBS(mvwaddstr, [ncurses cursesX curses])
AC_SEARCH_LIBS(waddstr, [ncurses cursesX curses])
if test "$ac_cv_search_mvwaddstr" = no; then
if test "$ac_cv_search_waddstr" = no; then
AC_MSG_WARN([no curses library found])
fi
@ -467,6 +467,7 @@ AC_CHECK_FUNCS(sigaction sigprocmask sigsetmask)
AC_CHECK_FUNCS(socketpair)
AC_CHECK_FUNCS(syscall)
AC_CHECK_FUNCS(ttrace)
AC_CHECK_FUNCS(wborder)
# Check the return and argument types of ptrace. No canned test for
# this, so roll our own.

View File

@ -94,10 +94,14 @@ box_win (struct tui_gen_win_info * win_info, int highlight_flag)
attrs = tui_border_attrs;
wattron (win, attrs);
#ifdef HAVE_WBORDER
wborder (win, tui_border_vline, tui_border_vline,
tui_border_hline, tui_border_hline,
tui_border_ulcorner, tui_border_urcorner,
tui_border_llcorner, tui_border_lrcorner);
#else
box (win, tui_border_vline, tui_border_hline);
#endif
if (win_info->title)
mvwaddstr (win, 0, 3, win_info->title);
wattroff (win, attrs);