[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hurd-bug
Subject:    Re: [patch] for mig check in GDB's configure
From:       Pino Toscano <toscano.pino () tiscali ! it>
Date:       2013-05-03 15:22:13
Message-ID: 201305031722.19063.toscano.pino () tiscali ! it
[Download RAW message or body]


Hi,

Alle venerdì 3 maggio 2013, 陆岳 ha scritto:
> --- a/gdb/configure.ac
> +++ b/gdb/configure.ac
> @@ -488,6 +488,15 @@ AC_CHECK_TOOL(WINDRES, windres)
> 
>  # Needed for GNU/Hurd.
>  AC_CHECK_TOOL(MIG, mig)
> +case "${host}" in
> +       *-linux*|*-k*bsd-gnu*)
> +               ;;
> +       i[[3456789]]86-*-gnu*)
> +           if test "$MIG" = "" ; then
> +               AC_MSG_ERROR([no mig for use])
> +           fi
> +           ;;
> +esac

instead of the above, what about something like this:
  case "${host_os}" in
    gnu*)
      # Needed for GNU/Hurd.
      AC_CHECK_TOOL(MIG, mig)
      if test "$MIG" = "" ; then
        AC_MSG_ERROR([no mig for use])
      fi
    ;;
  esac

that is, look for mig as mandatory only on Hurd, using a less-ambiguous 
variable as $host_os.

-- 
Pino Toscano

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic