[patch] Fix typos to configure.in

Fernando Nasser fnasser@cygnus.com
Mon Dec 11 11:02:00 GMT 2000


When I added the cli subdirectory I paste-and-copied a few lines of
configure.in that were for the mi and I missed to change mi to cli in
a couple of places.

I fixed that with the attached patch.

The original code did not check for enableval as it should, so I fixed
that as well.


-- 
Fernando Nasser
Red Hat Canada Ltd.                     E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9



Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.47
diff -c -p -r1.47 configure.in
*** configure.in        2000/12/02 15:40:56     1.47
--- configure.in        2000/12/11 18:46:33
*************** dnl Handle CLI sub-directory configury.
*** 466,486 ****
  AC_ARG_ENABLE(gdbcli,
  [  --enable-gdbcli            Enable GDB-CLI interface],
  [
!   case "${enable_gdbcli}" in
!     yes) ;;
!     "")  enable_gdbcli=yes ;;
      no) 
        AC_MSG_ERROR(The CLI cannot be disabled yet)
      ;;
      *)
!       AC_MSG_ERROR(Bad value for --enable-gdbmi: ${enableval})
      ;;
    esac
  ],
  [enable_gdbcli=yes])
  case ${enable_gdbcli} in
    "yes" )
!     if test -d "${srcdir}/mi" ; then
        CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_CLI_OBS)"
        CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_CLI_DEPS)"
        CONFIG_SRCS="${CONFIG_SRS} \$(SUBDIR_CLI_SRCS)"
--- 466,486 ----
  AC_ARG_ENABLE(gdbcli,
  [  --enable-gdbcli            Enable GDB-CLI interface],
  [
!   case "${enableval}" in
!     yes) enable_gdbcli=yes ;;
!     "") enable_gdbcli=yes ;;
      no) 
        AC_MSG_ERROR(The CLI cannot be disabled yet)
      ;;
      *)
!       AC_MSG_ERROR(Bad value for --enable-gdbcli: ${enableval})
      ;;
    esac
  ],
  [enable_gdbcli=yes])
  case ${enable_gdbcli} in
    "yes" )
!     if test -d "${srcdir}/cli" ; then
        CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_CLI_OBS)"
        CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_CLI_DEPS)"
        CONFIG_SRCS="${CONFIG_SRS} \$(SUBDIR_CLI_SRCS)"


More information about the Gdb-patches mailing list