curses headers.
* configure, config.in: Regenerate.
* gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
<ncurses/ncurses.h>.
2004-08-15 Mark Kettenis <kettenis@gnu.org>
+ * configure.in: Add <ncurses/ncurses.h> to the list of possible
+ curses headers.
+ * configure, config.in: Regenerate.
+ * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
+ <ncurses/ncurses.h>.
+
* config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
* config/nm-nbsd.h: Update copyright year.
(PTRACE_ARG3_TYPE): Remove define.
/* Define if you have the <ncurses.h> header file. */
#undef HAVE_NCURSES_H
+/* Define if you have the <ncurses/ncurses.h> header file. */
+#undef HAVE_NCURSES_NCURSES_H
+
/* Define if you have the <ndir.h> header file. */
#undef HAVE_NDIR_H
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
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?
#ifndef GDB_CURSES_H
#define GDB_CURSES_H 1
-#if defined (HAVE_NCURSES_H)
+#if defined (HAVE_NCURSES_NCURSES_H)
+#include <ncurses/ncurses.h>
+#elif defined (HAVE_NCURSES_H)
#include <ncurses.h>
#elif defined (HAVE_CURSESX_H)
#include <cursesX.h>
#include <curses.h>
#endif
-#endif
+#endif /* gdb_curses.h */