summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-11-11 18:14:40 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2014-11-12 06:49:07 -0500
commit2f52d58da6fe67fb710f470965ffef38c2f32d9c (patch)
tree9efc6b8f0e13c77b1969e2d8f6e253a1329a42b1 /hints
parentc5e6a3c74b2fe93aae700ce59ef0ad8c70ad1bd6 (diff)
downloadperl-2f52d58da6fe67fb710f470965ffef38c2f32d9c.tar.gz
If long double math functions do not work, drop uselongdouble.
This moves a earlier version of the test from the freebsd hints to Configure, thus stopping also any other platforms that have lacking longdouble implementations. The test is not comprehensive (not all long double interfaces are tested), but it covers some of the most common ones. The earlier test was actually wrong, so no FreeBSD could ever pass. Sorry, FreeBSD.
Diffstat (limited to 'hints')
-rw-r--r--hints/freebsd.sh32
1 files changed, 0 insertions, 32 deletions
diff --git a/hints/freebsd.sh b/hints/freebsd.sh
index 673dc4bade..8d436a19e1 100644
--- a/hints/freebsd.sh
+++ b/hints/freebsd.sh
@@ -310,35 +310,3 @@ esac
# of FreeBSD.
d_printf_format_null='undef'
-$cat > UU/uselongdouble.cbu <<'EOCBU'
-# This script UU/uselongdouble.cbu will get 'called-back' by Configure
-# after it has prompted the user for whether to use long doubles.
-
-# Some FreeBSD releases apparently don't really have the C99 long double
-# versions of math functions. If this seems to be the case, disable
-# uselongdouble.
-#
-# XXX This sanity check logic could be move to Configure.
-case "$uselongdouble" in
-define)
- echo "Checking if your long double math functions work right..." >&4
- cat > ldblm$$.c <<EOF
-#include <math.h>
-#include <stdio.h>
-int main() {
- printf("%Lg\n", sqrtl(logl(expl(1.0L))+powl(2.0L, 3.0L))+cosl(sinl(1.0L)));
-}
-EOF
- $cc -o ldblm$$ ldblm$$.c -lm
- case `test -x ldblm$$ && ./ldblm$$` in
- 4) echo "Your long double math functions are working correctly." >&4 ;;
- *)
- echo "Your long double math functions are broken, disabling uselongdouble." >&4
- uselongdouble=$undef
- ;;
- esac
- rm -f ldblm$$.c ldblm$$
- ;;
-esac
-
-EOCBU