# up to date with new CPU/OS releases.
xxcpu=`getconf CPU_VERSION`; # Get the number.
xxcpu=`printf '0x%x' $xxcpu`; # convert to hex
- archname=`sed -n -e "s/^#[ \t]*define[ \t]*CPU_//p" /usr/include/sys/unistd.h |
- sed -n -e "s/[ \t]*$xxcpu[ \t].*//p" |
+ archname=`sed -n -e "s/^#[[:space:]]*define[[:space:]]*CPU_//p" /usr/include/sys/unistd.h |
+ sed -n -e "s/[[:space:]]*$xxcpu[[:space:]].*//p" |
sed -e s/_RISC/-RISC/ -e s/HP_// -e s/_/./ -e "s/[[:space:]]*//g"`;
else
# This system is running <= 9.x
ccflags="$cc_cppflags"
if [ "X$gccversion" = "X" ]; then
# Done too late in Configure if hinted
- gccversion=`$cc --version`
+ gccversion=`$cc --version | sed 's/.*(GCC) *//'`
fi
case "$gccversion" in
[012]*) # HP-UX and gcc-2.* break UINT32_MAX :-(
ccflags="$ccflags -DUINT32_MAX_BROKEN"
;;
+ 3*) # GCC (both 32bit and 64bit) will define __STDC_EXT__
+ # by default when using GCC 3.0 and newer versions of
+ # the compiler.
+ cppflags="$cc_cppflags"
+ ;;
esac
case "`getconf KERNEL_BITS 2>/dev/null`" in
*64*)
*) ccisgcc=''
ccversion=`which cc | xargs what | awk '/Compiler/{print $2}'`
case "$ccflags" in
- "-Ae "*) ;;
- *) ccflags="-Ae $cc_cppflags -Wl,+vnocompatwarnings" ;;
- esac
+ "-Ae "*) ;;
+ *) ccflags="-Ae $cc_cppflags -Wl,+vnocompatwarnings" ;;
+ esac
# Needed because cpp does only support -Aa (not -Ae)
cpplast='-'
cppminus='-'
libswanted="$*"
fi
- usemymalloc='n'
;;
esac
EOCBU
+# The mysterious io_xs memory corruption in 11.00 32bit seems to get
+# fixed by not using Perl's malloc.
+usemymalloc='n'
+case "$useperlio" in
+ $undef|false|[nN]*) usemymalloc='y' ;;
+ esac
+
# fpclassify() is a macro, the library call is Fpclassify
# Similarly with the others below.
d_fpclassify='define'