This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [configury patch] don't add 'mpfr' to --with-mpfr-dir
- From: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- To: Paul Brook <paul at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Tobias Schlüter<tobias dot schlueter at physik dot uni-muenchen dot de>, GCC Fortran mailing list<fortran at gcc dot gnu dot org>
- Date: 06 Jun 2005 16:34:47 +0200
- Subject: Re: [configury patch] don't add 'mpfr' to --with-mpfr-dir
- References: <42A1DFC9.7060100@physik.uni-muenchen.de> <200506041837.55733.paul@codesourcery.com>
Paul Brook <paul@codesourcery.com> writes:
> > 2005-06-04 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
> >
> > * configure.in: Don't add another '/mpfr' to the directory given
> > in --with-mpfr-dir.
> > * configure: Regenerate.
>
> Ok.
>
> This looks like is a copy/paste error from when we assumed a combined gmp+mpfr
> build.
one could argue the other way round: the /mpfr infix is missing from
gmplibs here. According to the installation docs
--with-gmp=pathname
--with-mpfr=pathname
--with-gmp-dir=pathname
--with-mpfr-dir=pathname
If you don't have GMP (the GNU Multiple Precision library) and the MPFR
Libraries installed in a standard location and you want to build the
Fortran front-end, you can explicitly specify the directory where they
are installed (`--with-gmp=gmpinstalldir',
`--with-mpfr=mpfrinstalldir') or where you built them without
installing (`--with-gmp-dir=gmpbuilddir',
`--with-mpfr-dir=gmpbuilddir').
i.e. the arg to --with-mpfr-dir is supposed to be gmpbuilddir. With this
patch and gmp build with --enable-mpfr, you need to know that mpfr is built
inside an mpfr subdir. On the other hand, omitting mpfr is correct if you
have a separate build of e.g. mpfr 2.1.1.
However this is resolved, there are more problems in this area: for a VPATH
build of gmp with --enable-mpfr, mpfr.h isn't found because (unlike
libmpfr.a) it lives in the gmp $srcdir, not the build dir. One can work
around this by adding a symlink in the build dir, but this is all terribly
ugly. It's probably high time for including a copy of gmp and mpfr in GCC
CVS.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University