diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-05-25 01:50:50 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-05-25 01:50:50 +0000 |
commit | ed952ac51281cbe9ec9ea1aec12e99b779a79540 (patch) | |
tree | aeac2249085de426f76da06a93acc5e9255ec94e /gdb/configure.in | |
parent | 0aaf65d72f1fbfb99b02d8d5e6d9a43fcc2cf9f7 (diff) | |
download | gdb-ed952ac51281cbe9ec9ea1aec12e99b779a79540.zip gdb-ed952ac51281cbe9ec9ea1aec12e99b779a79540.tar.gz gdb-ed952ac51281cbe9ec9ea1aec12e99b779a79540.tar.bz2 |
Have TUI use the same configury mechanism as MI.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r-- | gdb/configure.in | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/gdb/configure.in b/gdb/configure.in index c884e97..28e7a07 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -456,17 +456,19 @@ AC_ARG_ENABLE(tui, ]) case ${enable_tui} in "yes" ) - AC_DEFINE(TUI) - BUILD_TUI=all-tui - TUI_LIBRARY=tui/libtui.a - ;; - * ) - BUILD_TUI= - TUI_LIBRARY= - ;; + if test -d "${srcdir}/tui" ; then + CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_TUI_OBS)" + CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_TUI_DEPS)" + CONFIG_SRCS="${CONFIG_SRS} \$(SUBDIR_TUI_SRCS)" + CONFIG_INITS="${CONFIG_INITS} \$(SUBDIR_TUI_INITS)" + ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_TUI_CFLAGS)" + CONFIG_ALL="${CONFIG_ALL} \$(SUBDIR_TUI_ALL)" + CONFIG_CLEAN="${CONFIG_CLEAN} \$(SUBDIR_TUI_CLEAN)" + CONFIG_INSTALL="${CONFIG_INSTALL} \$(SUBDIR_TUI_INSTALL)" + CONFIG_UNINSTALL="${CONFIG_UNINSTALL} \$(SUBDIR_TUI_UNINSTALL)" + fi + ;; esac -AC_SUBST(BUILD_TUI) -AC_SUBST(TUI_LIBRARY) AC_ARG_ENABLE(netrom, [ --enable-netrom Enable NetROM support], @@ -1014,7 +1016,7 @@ dnl Check for exe extension set on certain hosts (e.g. Win32) AC_EXEEXT AC_CONFIG_SUBDIRS($configdirs) -AC_OUTPUT(Makefile tui/Makefile .gdbinit:gdbinit.in, +AC_OUTPUT(Makefile .gdbinit:gdbinit.in, [ dnl Autoconf doesn't provide a mechanism for modifying definitions dnl provided by makefile fragments. |