diff options
author | Mark Kettenis <kettenis@gnu.org> | 2003-01-04 01:03:41 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2003-01-04 01:03:41 +0000 |
commit | 8ee5372653a683f676a39db4d513b0ff9c64d852 (patch) | |
tree | a6b6bfb8c83c094b157eb92c3691b552e7e6348d /gdb/configure.in | |
parent | b39c905ef8addd20526e661bfb14044085243b69 (diff) | |
download | gdb-8ee5372653a683f676a39db4d513b0ff9c64d852.zip gdb-8ee5372653a683f676a39db4d513b0ff9c64d852.tar.gz gdb-8ee5372653a683f676a39db4d513b0ff9c64d852.tar.bz2 |
* configure.in: Move code that provides the --enable-gdbtk option
right after the code that handles the --enable-tui option, and
polish it somewhat.
* configure: Regenerated.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r-- | gdb/configure.in | 53 |
1 files changed, 21 insertions, 32 deletions
diff --git a/gdb/configure.in b/gdb/configure.in index 7bfe6df..f87eba5 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -162,6 +162,27 @@ if test x"$enable_tui" = xyes; then fi fi +# Enable gdbtk. +AC_ARG_ENABLE(gdbtk, +[ --enable-gtk enable gdbtk graphical user interface (GUI)], + [case $enableval in + yes | no) + ;; + *) + AC_MSG_ERROR([bad value $enableval for --enable-gdbtk]) ;; + esac], + [if test -d $srcdir/gdbtk; then + enable_gdbtk=yes + else + enable_gdbtk=no + fi]) +# We unconditionally disable gdbtk tests on selected platforms. +case $host_os in + go32* | windows*) + AC_MSG_WARN([gdbtk isn't supported on $host; disabling]) + enable_gdbtk=no ;; +esac + # --------------------- # # Checks for programs. # # --------------------- # @@ -944,38 +965,6 @@ GUI_CFLAGS_X="-I${srcdir}/../libgui/src" AC_SUBST(LIBGUI) AC_SUBST(GUI_CFLAGS_X) -AC_ARG_ENABLE(gdbtk, -[ --enable-gdbtk Enable GDBTK GUI front end], -[case "${enableval}" in - yes) - case "$host" in - *go32*) - AC_MSG_WARN([GDB does not support GDBtk on host ${host}. GDBtk will be disabled.]) - enable_gdbtk=no ;; - *windows*) - AC_MSG_WARN([GDB does not support GDBtk on host ${host}. GDBtk will be disabled.]) - enable_gdbtk=no ;; - *) - enable_gdbtk=yes ;; - esac ;; - no) - enable_gdbtk=no ;; - *) - AC_MSG_ERROR(bad value ${enableval} given for gdbtk option) ;; -esac], -[ -# Default is on for everything but go32 and Cygwin -case "$host" in - *go32* | *windows*) - ;; - *) - if test -d "${srcdir}/gdbtk" ; then - enable_gdbtk=yes - fi - ;; -esac -]) - WIN32LDAPP= AC_SUBST(WIN32LIBS) AC_SUBST(WIN32LDAPP) |