1 | case `uname -r` in
|
---|
2 | 6.1*) shellflags="-m+65536" ;;
|
---|
3 | esac
|
---|
4 |
|
---|
5 | case "$optimize" in
|
---|
6 | # If we used fastmd (the default) integer values would be limited to 46 bits.
|
---|
7 | # --Mark P. Lutz
|
---|
8 | '') optimize="$optimize -O1 -h nofastmd" ;;
|
---|
9 | esac
|
---|
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 |
|
---|
20 | # The default is to die in runtime on math overflows.
|
---|
21 | # Let's not do that. --jhi
|
---|
22 | ccflags="$ccflags -h matherror=errno"
|
---|
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.)
|
---|
28 | if /etc/cpu -i | grep -q cfp
|
---|
29 | then
|
---|
30 | ccflags="$ccflags -h rounddiv"
|
---|
31 | fi
|
---|
32 |
|
---|
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"'
|
---|
36 | # Otherwise the unpack %65c checksums will fail.
|
---|
37 | pp_pack_cflags='optimize="$ccflags -h scalar0 -h vector0"'
|
---|
38 | case "$usemymalloc" in
|
---|
39 | '') # The perl malloc.c SHOULD work says Ilya.
|
---|
40 | # But for the time being (5.004_68), alas, it doesn't. --jhi
|
---|
41 | # usemymalloc='y'
|
---|
42 | # ccflags="$ccflags -DNO_RCHECK"
|
---|
43 | usemymalloc='n'
|
---|
44 | ;;
|
---|
45 | esac
|
---|
46 | # Configure gets fooled for some reason, these do not exist.
|
---|
47 | d_getpgid='undef'
|
---|
48 | d_setitimer='undef'
|
---|
49 | # These exist but do not really work.
|
---|
50 | d_setregid='undef'
|
---|
51 | d_setreuid='undef'
|
---|
52 | # No shared libraries.
|
---|
53 | so='none'
|
---|
54 | # No dynaloading.
|
---|
55 | d_dlopen='undef'
|
---|
56 | i_dlfcn='undef'
|
---|
57 | # Threads call-back unit.
|
---|
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
|
---|