diff options
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r-- | gdb/configure.ac | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac index 3c203a1..95d5b08 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -267,11 +267,11 @@ fi AC_ARG_ENABLE(tui, [ --enable-tui enable full-screen terminal user interface (TUI)], [case $enableval in - yes | no) + yes | no | auto) ;; *) AC_MSG_ERROR([bad value $enableval for --enable-tui]) ;; - esac],enable_tui=yes) + esac],enable_tui=auto) # Enable gdbtk. AC_ARG_ENABLE(gdbtk, @@ -1578,7 +1578,7 @@ AC_PATH_X # Check whether we should enable the TUI, but only do so if we really # can. -if test x"$enable_tui" = xyes; then +if test x"$enable_tui" != xno; then if test -d $srcdir/tui; then if test "$ac_cv_search_waddstr" != no; then CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)" @@ -1591,7 +1591,11 @@ if test x"$enable_tui" = xyes; then CONFIG_INSTALL="${CONFIG_INSTALL} install-tui" CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui" else - AC_MSG_WARN([no enhanced curses library found; disabling TUI]) + if test x"$enable_tui" = xyes; then + AC_MSG_ERROR([no enhanced curses library found; disable TUI]) + else + AC_MSG_WARN([no enhanced curses library found; disabling TUI]) + fi fi fi fi |