Use a more bulletproof test for whether finite() and isinf() are present.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 158c7f32b497af31943162250b548897a797be72
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2006-01-12T19:24:48Z
Releases: 7.3.14
Use a more bulletproof test for whether finite() and isinf() are present.
It seems that recent gcc versions can optimize away calls to these functions
even when the functions do not exist on the platform, resulting in a bogus
positive result.  Avoid this by using a non-constant argument and ensuring
that the function result is not simply discarded.  Per report from
François Laupretre.

Files

PathChange+/−
configure modified +7 −3
configure.in modified +11 −7