[Patch V2] libgfortran: do not assume libm
Tristan Gingold
gingold@adacore.com
Mon Mar 26 08:44:00 GMT 2012
On Mar 22, 2012, at 11:06 AM, Paolo Bonzini wrote:
> 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 <gingold@adacore.com>
>>
>> * math.m4: New file.
>>
>> libgfortran/
>> 2012-03-22 Tristan Gingold <gingold@adacore.com>
>>
>> * configure.ac: Use GCC_CHECK_MATH_FUNC for math functions.
>> * acinclude.m4: Include ../config/math.m4
>> * configure: Regenerate.
>> * Makefile.in: Regenerate.
>
> Ok.
Thanks, now committed.
Tristan.
More information about the Gcc-patches
mailing list