diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-08-22 10:51:18 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2014-09-19 09:26:45 -0400 |
commit | 4e5044f034f5b5d064c8d998817c4476bf4842a3 (patch) | |
tree | 9b95c364b63c0bce96c45b207917e5d4da906a43 /Configure | |
parent | 688d9ed14d976fe7ce810427ec76afcdd23d4757 (diff) | |
download | perl-4e5044f034f5b5d064c8d998817c4476bf4842a3.tar.gz |
Configure for <quadmath.h>
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 94 |
1 files changed, 94 insertions, 0 deletions
@@ -957,6 +957,7 @@ d_pwgecos='' d_pwpasswd='' d_pwquota='' i_pwd='' +i_quadmath='' i_shadow='' i_socks='' i_stdbool='' @@ -15683,6 +15684,98 @@ EOCP esac +: check for fpclassify +echo " " +echo "Checking to see if you have fpclassify..." >&4 +$cat >try.c <<EOCP +#$i_math I_MATH +#ifdef I_MATH +#include <math.h> +#endif +int main() { return fpclassify(1.0) == FP_NORMAL ? 0 : 1; } +EOCP +set try +if eval $compile; then + val="$define" + echo "You have fpclassify." +else + val="$undef" + echo "You do not have fpclassify." +fi +$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 this is a quadmath.h system +set quadmath.h i_quadmath +eval $inhdr + : see if link exists set link d_link eval $inlibc @@ -23869,6 +23962,7 @@ i_poll='$i_poll' i_prot='$i_prot' i_pthread='$i_pthread' i_pwd='$i_pwd' +i_quadmath='$i_quadmath' i_rpcsvcdbm='$i_rpcsvcdbm' i_sgtty='$i_sgtty' i_shadow='$i_shadow' |