aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-02-16 19:33:42 +0000
committerAndrew Cagney <cagney@redhat.com>2004-02-16 19:33:42 +0000
commitc324d747ca58c10261f15ec141cc5f64d708f680 (patch)
tree5f5d52cadb5e59ec92236382776c8b50df0d7fc2 /gdb/configure.in
parent344c97118d14fbbc1e156e459a046f63bab99d9a (diff)
downloadgdb-c324d747ca58c10261f15ec141cc5f64d708f680.zip
gdb-c324d747ca58c10261f15ec141cc5f64d708f680.tar.gz
gdb-c324d747ca58c10261f15ec141cc5f64d708f680.tar.bz2
2004-02-16 Andrew Cagney <cagney@redhat.com>
* configure.in: Always check for curses, including pdcurses. Warn, instead of error, when no curses are found. Enable TUI when curses is available. * configure: Re-generate.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in40
1 files changed, 20 insertions, 20 deletions
diff --git a/gdb/configure.in b/gdb/configure.in
index bd16ad5..8cffe3df 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -135,6 +135,17 @@ if test x"$enable_gdbmi" = xyes; then
fi
fi
+# FIXME: kettenis/20030102: We seem to prefer HP curses (Hcurses) over
+# Xcurses on HP-UX; see the `-D__HP_CURSES' in the relevant host
+# Makefile fragments. That's why we need to have `Hcurses' before
+# `curses'. I don't see why we should use HP curses if a more
+# standard curses is available, except that according to HP's
+# documentation one needs to compile `-D_XOPEN_SOURCE_EXTENDED' on
+# HP-UX 10.10 and 10.20.
+
+AC_SEARCH_LIBS(initscr, [ncurses Hcurses curses pdcurses], [],
+ [AC_MSG_WARN([no curses library found])])
+
# Enable TUI.
AC_ARG_ENABLE(tui,
[ --enable-tui enable full-screen terminal user interface (TUI)],
@@ -143,14 +154,16 @@ AC_ARG_ENABLE(tui,
;;
*)
AC_MSG_ERROR([bad value $enableval for --enable-tui]) ;;
- esac])
+ esac],enable_tui=yes)
if test x"$enable_tui" = xyes; then
if test -d $srcdir/tui; then
- CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
- CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
- CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
- ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
- need_curses=yes
+ if test "$ac_cv_search_initscr" != no; then
+ CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
+ CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
+ CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
+ CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
+ ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
+ fi
fi
fi
@@ -279,20 +292,7 @@ AC_SEARCH_LIBS(socketpair, socket)
# Since GDB uses Readline, we need termcap functionality, so we need
# to find a library that provides that. When GDB is configured with
-# --enable-tui, we need full curses functionality.
-#
-# FIXME: kettenis/20030102: We seem to prefer HP curses (Hcurses) over
-# Xcurses on HP-UX; see the `-D__HP_CURSES' in the relevant host
-# Makefile fragments. That's why we need to have `Hcurses' before
-# `curses'. I don't see why we should use HP curses if a more
-# standard curses is available, except that according to HP's
-# documentation one needs to compile `-D_XOPEN_SOURCE_EXTENDED' on
-# HP-UX 10.10 and 10.20.
-
-if test "$need_curses" = yes; then
- AC_SEARCH_LIBS(initscr, [ncurses Hcurses curses], [],
- [AC_MSG_ERROR([no curses library found])])
-fi
+# the TUI, we need full curses functionality.
case $host_os in
cygwin*)