From a6ed5501f78250d70d1ced106927e4fcc2eb95c9 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 15 Aug 2004 10:06:05 +0000 Subject: [PATCH] * configure.in: Add to the list of possible curses headers. * configure, config.in: Regenerate. * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include . --- gdb/ChangeLog | 6 ++++++ gdb/config.in | 3 +++ gdb/configure | 2 +- gdb/configure.in | 2 +- gdb/gdb_curses.h | 6 ++++-- 5 files changed, 15 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9e4e10e278c..7de45e49acc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2004-08-15 Mark Kettenis + * configure.in: Add to the list of possible + curses headers. + * configure, config.in: Regenerate. + * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include + . + * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define. * config/nm-nbsd.h: Update copyright year. (PTRACE_ARG3_TYPE): Remove define. diff --git a/gdb/config.in b/gdb/config.in index 8b5c96f35c0..83b914260f1 100644 --- a/gdb/config.in +++ b/gdb/config.in @@ -305,6 +305,9 @@ /* Define if you have the header file. */ #undef HAVE_NCURSES_H +/* Define if you have the header file. */ +#undef HAVE_NCURSES_NCURSES_H + /* Define if you have the header file. */ #undef HAVE_NDIR_H diff --git a/gdb/configure b/gdb/configure index 495d798a27b..02456805b89 100755 --- a/gdb/configure +++ b/gdb/configure @@ -5664,7 +5664,7 @@ EOF fi ;; esac -for ac_hdr in curses.h cursesX.h ncurses.h term.h +for ac_hdr in curses.h cursesX.h ncurses.h ncurses/ncurses.h term.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 diff --git a/gdb/configure.in b/gdb/configure.in index 899a334537f..07def817963 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -430,7 +430,7 @@ case $host_os in Solaris 2.[789] when using GCC. ]]) fi ;; esac -AC_CHECK_HEADERS(curses.h cursesX.h ncurses.h term.h) +AC_CHECK_HEADERS(curses.h cursesX.h ncurses.h ncurses/ncurses.h term.h) # FIXME: kettenis/20030102: In most cases we include these # unconditionally, so what's the point in checking these? diff --git a/gdb/gdb_curses.h b/gdb/gdb_curses.h index 1e4bfcd8154..4371d4f89d9 100644 --- a/gdb/gdb_curses.h +++ b/gdb/gdb_curses.h @@ -22,7 +22,9 @@ #ifndef GDB_CURSES_H #define GDB_CURSES_H 1 -#if defined (HAVE_NCURSES_H) +#if defined (HAVE_NCURSES_NCURSES_H) +#include +#elif defined (HAVE_NCURSES_H) #include #elif defined (HAVE_CURSESX_H) #include @@ -30,4 +32,4 @@ #include #endif -#endif +#endif /* gdb_curses.h */ -- 2.30.2