Il 22/03/2012 09:30, Tristan Gingold ha scritto:
> Hi,
> 
> this is version 2 of the patch.
> 
> The initial problem is that libgfortran configure.ac used AC_CHECK_LIB([m]…) 
> to check wether several math functions are available.  That doesn't work on 
> VMS, because there is no such things as a libm.
> 
> It seems to me that there are no autoconf macro to check wether a function is 
> available: AC_CHECK_FUNC[S] don't allow to specify additional include files 
> (necessary on VMS as some math functions are renamed through macros), and 
> AC_CHECK_DECL only checks the presence of the declaration (as pointed out by 
> Ralf).
> 
> So I have finally learnt a little bit more about autoconf and added a new 
> file: config/math.m4 (build machinery maintainer cc:)
> libgfortran/configure.ac now uses the new GCC_CHECK_MATH_FUNC macro.
> 
> Bootstrapped without gfortran regressions on x86_64-darwin.
> 
> Ok for trunk ?
> 
> (I will submit a follow-up change in libquadmath once this change is 
> approved).
> 
> Tristan.
> 
> config/
> 2012-03-22  Tristan Gingold  <ging...@adacore.com>
> 
>       * math.m4: New file.
> 
> libgfortran/
> 2012-03-22  Tristan Gingold  <ging...@adacore.com>
> 
>       * configure.ac: Use GCC_CHECK_MATH_FUNC for math functions.
>       * acinclude.m4: Include ../config/math.m4
>       * configure: Regenerate.
>       * Makefile.in: Regenerate.

Ok.

Reply via email to