summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-08-27 18:36:32 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-08-28 07:50:27 -0400
commit946f662dd4889e024389c494e5ffe76502568e8e (patch)
tree34faed7909016e9e6183d7332762acdfe4f229a8 /Configure
parente09e3cee34fbe40a471dc2fa31f2b8533598fb45 (diff)
downloadperl-946f662dd4889e024389c494e5ffe76502568e8e.tar.gz
Under C99 isfinite/isinf/isnan are sizeof-aware macros.
So let's not test them with inlibc.
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure78
1 files changed, 66 insertions, 12 deletions
diff --git a/Configure b/Configure
index 2a4d4d6e50..fbf239bb49 100755
--- a/Configure
+++ b/Configure
@@ -15445,26 +15445,14 @@ set d_isblank
eval $setvar
$rm -f isblank*
-: see if isfinite exists
-set isfinite d_isfinite
-eval $inlibc
-
: see if isfinitel exists
set isfinitel d_isfinitel
eval $inlibc
-: see if isinf exists
-set isinf d_isinf
-eval $inlibc
-
: see if isinfl exists
set isinfl d_isinfl
eval $inlibc
-: see if isnan exists
-set isnan d_isnan
-eval $inlibc
-
: see if isnanl exists
set isnanl d_isnanl
eval $inlibc
@@ -15586,6 +15574,72 @@ $rm_try
set d_fpclassify
eval $setvar
+: check for isfinite
+echo " "
+echo "Checking to see if you have isfinite..." >&4
+$cat >try.c <<EOCP
+#$i_math I_MATH
+#ifdef I_MATH
+#include <math.h>
+#endif
+int main() { return isfinite(0.0); }
+EOCP
+set try
+if eval $compile; then
+ val="$define"
+ echo "You have isfinite."
+else
+ val="$undef"
+ echo "You do not have isfinite."
+fi
+$rm_try
+set d_isfinite
+eval $setvar
+
+: check for isinf
+echo " "
+echo "Checking to see if you have isinf..." >&4
+$cat >try.c <<EOCP
+#$i_math I_MATH
+#ifdef I_MATH
+#include <math.h>
+#endif
+int main() { return isinf(0.0); }
+EOCP
+set try
+if eval $compile; then
+ val="$define"
+ echo "You have isinf."
+else
+ val="$undef"
+ echo "You do not have isinf."
+fi
+$rm_try
+set d_isinf
+eval $setvar
+
+: check for isnan
+echo " "
+echo "Checking to see if you have isnan..." >&4
+$cat >try.c <<EOCP
+#$i_math I_MATH
+#ifdef I_MATH
+#include <math.h>
+#endif
+int main() { return isnan(0.0); }
+EOCP
+set try
+if eval $compile; then
+ val="$define"
+ echo "You have isnan."
+else
+ val="$undef"
+ echo "You do not have isnan."
+fi
+$rm_try
+set d_isnan
+eval $setvar
+
: see if link exists
set link d_link
eval $inlibc