diff options
Diffstat (limited to 'gdb/configure.in')
-rw-r--r-- | gdb/configure.in | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/gdb/configure.in b/gdb/configure.in index 96c2e3c..f120a3d 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -26,6 +26,7 @@ AC_CONFIG_HEADER(config.h:config.in) AC_PROG_CC AC_AIX AC_ISC_POSIX +AM_PROG_CC_STDC AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/..) AC_CANONICAL_SYSTEM @@ -296,6 +297,31 @@ fi dnl Handle optional features that can be enabled. ENABLE_CFLAGS= +AC_ARG_ENABLE(tui, +[ --enable-tui Enable full-screen terminal user interface], +[ + case "${enable_tui}" in + yes | no) ;; + "") enable_tui=yes ;; + *) + AC_MSG_ERROR(Bad value for --enable-tui: ${enableval}) + ;; + esac +]) +case ${enable_tui} in + "yes" ) + AC_DEFINE(TUI) + BUILD_TUI=all-tui + TUI_LIBRARY=tui/libtui.a + ;; + * ) + BUILD_TUI= + TUI_LIBRARY= + ;; +esac +AC_SUBST(BUILD_TUI) +AC_SUBST(TUI_LIBRARY) + AC_ARG_ENABLE(netrom, [ --enable-netrom Enable NetROM support], [case "${enableval}" in @@ -874,7 +900,7 @@ dnl Check for exe extension set on certain hosts (e.g. Win32) AM_EXEEXT AC_CONFIG_SUBDIRS($configdirs) -AC_OUTPUT(Makefile .gdbinit:gdbinit.in, +AC_OUTPUT(Makefile tui/Makefile .gdbinit:gdbinit.in, [ dnl Autoconf doesn't provide a mechanism for modifying definitions dnl provided by makefile fragments. |