Commit | Line | Data |
---|---|---|
68decaef LW |
1 | case `uname -r` in |
2 | 6.1*) shellflags="-m+65536" ;; | |
3 | esac | |
f9248b72 | 4 | |
c4f23d77 | 5 | case "$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 | 9 | esac |
f9248b72 JH |
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 | |
18 | perl_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 | 22 | ccflags="$ccflags -h matherror=errno" |
fdf48296 JH |
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 JH |
28 | if /etc/cpu -i | grep -q cfp |
29 | then | |
30 | ccflags="$ccflags -h rounddiv" | |
31 | fi | |
fdf48296 | 32 | |
214f2c7f JH |
33 | # Avoid an optimizer bug where a volatile variables |
34 | # isn't correctly saved and restored --Mark P. Lutz | |
35 | pp_ctl_cflags='ccflags="$ccflags -h scalar0 -h vector0"' | |
d8526ec6 | 36 | # Otherwise the unpack %65c checksums will fail. |
23fb6509 | 37 | pp_pack_cflags='optimize="$ccflags -h scalar0 -h vector0"' |
693762b4 | 38 | case "$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 JH |
41 | # usemymalloc='y' |
42 | # ccflags="$ccflags -DNO_RCHECK" | |
43 | usemymalloc='n' | |
c4f23d77 | 44 | ;; |
693762b4 | 45 | esac |
333b7451 | 46 | # Configure gets fooled for some reason, these do not exist. |
e1f2cf02 | 47 | d_getpgid='undef' |
333b7451 | 48 | d_setitimer='undef' |
214f2c7f JH |
49 | # These exist but do not really work. |
50 | d_setregid='undef' | |
51 | d_setreuid='undef' | |
bc2e71b5 JH |
52 | # No shared libraries. |
53 | so='none' | |
7d4807db JH |
54 | # No dynaloading. |
55 | d_dlopen='undef' | |
56 | i_dlfcn='undef' | |
bc2e71b5 | 57 | # Threads call-back unit. |
acbe1256 JH |
58 | cat > 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. | |
61 | case "$usethreads" in | |
62 | $define|true|[yY]*) | |
63 | set `echo X "$libswanted "| sed -e "s/ c / pthread c /"` | |
64 | shift | |
65 | libswanted="$*" | |
66 | ;; | |
67 | esac | |
68 | EOCBU |