From 8ee5372653a683f676a39db4d513b0ff9c64d852 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sat, 4 Jan 2003 01:03:41 +0000 Subject: * 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. --- gdb/configure.in | 53 +++++++++++++++++++++-------------------------------- 1 file changed, 21 insertions(+), 32 deletions(-) (limited to 'gdb/configure.in') 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) -- cgit v1.1