This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Conpigure support for GMP
- From: Phil Edwards <phil at jaj dot com>
- To: Paul Brook <paul at nowt dot org>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, gcc-g95 List <gcc-g95-devel at lists dot sourceforge dot net>
- Date: Thu, 31 Jul 2003 16:20:27 -0400
- Subject: Re: [tree-ssa] Conpigure support for GMP
- References: <200307312110.41787.paul@nowt.org>
On Thu, Jul 31, 2003 at 09:10:41PM +0100, Paul Brook wrote:
> The attached patch adds configure support for the GMP library, as required
> by g95.
>
> It's cobbled togeter from varioous bits i found lying about, but it seems to
> work. Anyone care to test or pass judgement?
Some tweaks needed for portability and safety:
> + if test "x$with_gmp_dir" != x -a -d "$with_gmp_dir"; then
This needs to be
if test "x$with_gmp_dir" != x && test -d "$with_gmp_dir"; then
i.e., don't use -a and -o.
> + if test "x$with_gmp" != x -a -d "$with_gmp"; then
Same here.
> +AC_SUBST(gmplibs)
> +AC_SUBST(gmpinc)
These should be set to something (presumably empty) outside the if branch.
> +++ gcc/gcc/fortran/config-lang.in 2003-07-30 22:22:43.000000000 +0100
>
> +need_gmp="yes"
> +
I could have sworn that the config-lang.in files didn't work like that,
but I'm not an authoritative voice.
I'm assuming that you're using autoconf 2.13 to do the regeneration?
Phil