summaryrefslogtreecommitdiff
path: root/hints/aix.sh
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-10-06 21:27:28 +0200
committerJarkko Hietaniemi <jhi@iki.fi>2014-10-06 22:45:33 +0200
commit1a78f2f425a3e884a0fe2c40ebb1ce5dc7feeeb5 (patch)
tree052d22fab56063cb3d939c3418f3fdf8afb12013 /hints/aix.sh
parent6f376839598531b67a3a4384f73266962205ae72 (diff)
downloadperl-1a78f2f425a3e884a0fe2c40ebb1ce5dc7feeeb5.tar.gz
AIX/longdouble: switch the default to allow it.
Since the only really unfixable part is the inf/nan support. Document the troublesomeness in README.aix.
Diffstat (limited to 'hints/aix.sh')
-rw-r--r--hints/aix.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/hints/aix.sh b/hints/aix.sh
index 956e80666b..fce831fd12 100644
--- a/hints/aix.sh
+++ b/hints/aix.sh
@@ -584,7 +584,7 @@ fi
# The missing math functions affect the POSIX extension math interfaces.
case "$uselongdouble" in
-define)
+'')
echo "Checking if your infinity is working with long doubles..." >&4
cat > inf$$.c <<EOF
#include <math.h>
@@ -598,7 +598,7 @@ EOF
$cc -qlongdouble -o inf$$ inf$$.c -lm
case `./inf$$` in
INF) echo "Your infinity is working correctly with long doubles." >&4 ;;
- *) # NaNQ
+ *) # NaNQ (or anything else than INF)
echo " "
echo "Your infinity is broken, I suggest disabling long doubles." >&4
rp="Disable long doubles?"
@@ -607,7 +607,7 @@ EOF
case "$ans" in
[Yy]*)
echo "Okay, disabling long doubles." >&4
- uselongdouble=undef
+ uselongdouble="$undef"
ccflags=`echo " $ccflags " | sed -e 's/ -qlongdouble / /'`
libswanted=`echo " $libswanted " | sed -e 's/ c128/ /'`
lddlflags=`echo " $lddlflags " | sed -e 's/ -lc128 / /'`