1999-01-19 Fernando Nasser <fnasser@totem.to.cygnus.com>
[deliverable/binutils-gdb.git] / gdb / configure.in
index c1317623ed6203484ef9e8e0697b4cc463b414be..38363e0aeb07f9c013d9c52c24b13c7e386f204d 100644 (file)
@@ -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,8 +297,33 @@ 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         Enable NetROM support],
 [case "${enableval}" in
 yes)   enable_netrom=yes ;;
 no)    enable_netrom=no ;;
@@ -310,7 +336,7 @@ if test "${enable_netrom}" = "yes"; then
 fi
 
 AC_ARG_ENABLE(build-warnings,
-[  --enable-build-warnings             Enable build-time compiler warnings if gcc is used],
+[  --enable-build-warnings Enable build-time compiler warnings if gcc is used],
 [build_warnings="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
 case "${enableval}" in
   yes) ;;
@@ -356,7 +382,7 @@ fi
 # significant backward compatibility.
 
 AC_ARG_ENABLE(carp,
-[  --enable-carp        Configure alternative readaptive paradigm ],
+[  --enable-carp           Configure alternative readaptive paradigm ],
 [case "${enableval}" in
   yes) enable_carp=yes ;;
   no)  enable_carp=no ;;
@@ -584,8 +610,9 @@ AC_SUBST(DLLTOOL)
 AC_SUBST(WINDRES)
 
 if test x$gdb_cv_os_cygwin = xyes; then
+    WIN32LIBS="-luser32"
     if test x$enable_ide = xyes; then
-       WIN32LIBS="-ladvapi32"
+       WIN32LIBS="$WIN32LIBS -ladvapi32"
     fi
 fi
 
@@ -661,7 +688,7 @@ if test "${enable_gdbtk}" = "yes"; then
           CONFIG_OBS="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o"
 
           if test x$gdb_cv_os_cygwin = xyes; then
-             WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32 -luser32"
+             WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
              WIN32LDAPP="-Wl,--subsystem,console"
              CONFIG_OBS="${CONFIG_OBS} gdbres.o"
           fi
@@ -874,7 +901,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.
This page took 0.025697 seconds and 4 git commands to generate.