Regenerate META.yml
[p5sagit/p5-mst-13.2.git] / hints / unicos.sh
CommitLineData
68decaef 1case `uname -r` in
26.1*) shellflags="-m+65536" ;;
3esac
f9248b72 4
c4f23d77 5case "$optimize" in
b84d4f81 6# If we used fastmd (the default) integer values would be limited to 46 bits.
214f2c7f 7# --Mark P. Lutz
f9248b72 8'') optimize="$optimize -O1 -h nofastmd" ;;
8bda1795 9esac
f9248b72 10
11# At least in the following environment
12# uname -a: snxxxx xxxx 9.0.2.2 sin.0 CRAY Y-MP
13# cc -V: Cray Standard C Version 4.0.3 (057126) Jan 29 2006 07:27:26
14# one has to drop optimisation from perl.c or otherwise
15# the resulting miniperl executable does nothing (visible)
16# but always exits with zero (success) exit status, this
17# making it impossible to build the perl executable. --jhi
18perl_cflags='optimize="-O0"'
19
f3ff050f 20# The default is to die in runtime on math overflows.
a20e3af3 21# Let's not do that. --jhi
45ff97fd 22ccflags="$ccflags -h matherror=errno"
fdf48296 23
24# Cray floating point (cfp) CPUs need -h rounddiv
25# (It gives int((2/3)*3) a chance to be 2, not 1. --jhi)
26# (but IEEE CPUs, IEEE/ieee/CPE1 CPUs should not have -h rounddiv,
27# since the compiler on those CPUs doesn't even support the option.)
fcb0901b 28if /etc/cpu -i | grep -q cfp
29then
30 ccflags="$ccflags -h rounddiv"
31fi
fdf48296 32
214f2c7f 33# Avoid an optimizer bug where a volatile variables
34# isn't correctly saved and restored --Mark P. Lutz
35pp_ctl_cflags='ccflags="$ccflags -h scalar0 -h vector0"'
d8526ec6 36# Otherwise the unpack %65c checksums will fail.
23fb6509 37pp_pack_cflags='optimize="$ccflags -h scalar0 -h vector0"'
693762b4 38case "$usemymalloc" in
214f2c7f 39'') # The perl malloc.c SHOULD work says Ilya.
8bda1795 40 # But for the time being (5.004_68), alas, it doesn't. --jhi
5283c38d 41 # usemymalloc='y'
42 # ccflags="$ccflags -DNO_RCHECK"
43 usemymalloc='n'
c4f23d77 44 ;;
693762b4 45esac
333b7451 46# Configure gets fooled for some reason, these do not exist.
e1f2cf02 47d_getpgid='undef'
333b7451 48d_setitimer='undef'
214f2c7f 49# These exist but do not really work.
50d_setregid='undef'
51d_setreuid='undef'
bc2e71b5 52# No shared libraries.
53so='none'
7d4807db 54# No dynaloading.
55d_dlopen='undef'
56i_dlfcn='undef'
bc2e71b5 57# Threads call-back unit.
acbe1256 58cat > UU/usethreads.cbu <<'EOCBU'
59# This script UU/usethreads.cbu will get 'called-back' by Configure
60# after it has prompted the user for whether to use threads.
61case "$usethreads" in
62$define|true|[yY]*)
63 set `echo X "$libswanted "| sed -e "s/ c / pthread c /"`
64 shift
65 libswanted="$*"
66 ;;
67esac
68EOCBU