------- Comment #3 from pinskia at gmail dot com  2008-12-29 00:49 -------
Subject: Re:  toplevel configure script does not test for GNU Make

On Sun, Dec 28, 2008 at 6:01 PM, bkorb at gnu dot org
<gcc-bugzi...@gcc.gnu.org> wrote:
>
>
> ------- Comment #2 from bkorb at gnu dot org  2008-12-28 23:01 -------
> It would seem to me that requiring one to read through installation
> documentation is unreasonable when a trivial change to the configure script 
> can
> tell the hapless builder what is wrong.  You are correct in that it is
> documented.  But adding a useful error message in configure is still the right
> thing to do.
>
> Something like this:
>
> --- configure.ac        (revision 140070)
> +++ configure.ac        (working copy)
> @@ -160,13 +160,24 @@
>  #
>  host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui 
> zlib
> libcpp libdecnumber gmp mpfr ppl cloog"
>
> +[MAKE=${MAKE-make}
> +case "`${MAKE} --version`" in
> +"GNU Make "* ) : ;;
> +* ) MAKE=gmake
> +    case "`${MAKE} --version`" in
> +    "GNU Make "* ) : ;;
> +    * ) AC_MSG_ERROR([GNU Make is required to build]) ;;
> +    esac
> +    ;;
> +esac ]

Except this is only true for if the toplevel includes gcc sources
since the toplevel configure is used for more than GCC.

-- Pinski


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29311

Reply via email to