| 1 | case `uname -r` in |
| 2 | 6.1*) shellflags="-m+65536" ;; |
| 3 | esac |
| 4 | case "$optimize" in |
| 5 | # If we used fastmd (the default) integer values would be limited to 46 bits. |
| 6 | # --Mark P. Lutz |
| 7 | '') optimize="$optimize -h nofastmd" ;; |
| 8 | esac |
| 9 | # The default is to die in runtime on math overflows. |
| 10 | # Let's not do that. --jhi |
| 11 | ccflags="$ccflags -h matherror=errno" |
| 12 | |
| 13 | # Cray floating point (cfp) CPUs need -h rounddiv |
| 14 | # (It gives int((2/3)*3) a chance to be 2, not 1. --jhi) |
| 15 | # (but IEEE CPUs, IEEE/ieee/CPE1 CPUs should not have -h rounddiv, |
| 16 | # since the compiler on those CPUs doesn't even support the option.) |
| 17 | if /etc/cpu -i | grep -q cfp |
| 18 | then |
| 19 | ccflags="$ccflags -h rounddiv" |
| 20 | fi |
| 21 | |
| 22 | # Avoid an optimizer bug where a volatile variables |
| 23 | # isn't correctly saved and restored --Mark P. Lutz |
| 24 | pp_ctl_cflags='ccflags="$ccflags -h scalar0 -h vector0"' |
| 25 | # Otherwise the unpack %65c checksums will fail. |
| 26 | pp_pack_cflags='optimize="$ccflags -h scalar0 -h vector0"' |
| 27 | case "$usemymalloc" in |
| 28 | '') # The perl malloc.c SHOULD work says Ilya. |
| 29 | # But for the time being (5.004_68), alas, it doesn't. --jhi |
| 30 | # usemymalloc='y' |
| 31 | # ccflags="$ccflags -DNO_RCHECK" |
| 32 | usemymalloc='n' |
| 33 | ;; |
| 34 | esac |
| 35 | # Configure gets fooled for some reason, these do not exist. |
| 36 | d_getpgid='undef' |
| 37 | d_setitimer='undef' |
| 38 | # These exist but do not really work. |
| 39 | d_setregid='undef' |
| 40 | d_setreuid='undef' |
| 41 | # No shared libraries. |
| 42 | so='none' |
| 43 | # Threads call-back unit. |
| 44 | cat > UU/usethreads.cbu <<'EOCBU' |
| 45 | # This script UU/usethreads.cbu will get 'called-back' by Configure |
| 46 | # after it has prompted the user for whether to use threads. |
| 47 | case "$usethreads" in |
| 48 | $define|true|[yY]*) |
| 49 | set `echo X "$libswanted "| sed -e "s/ c / pthread c /"` |
| 50 | shift |
| 51 | libswanted="$*" |
| 52 | ;; |
| 53 | esac |
| 54 | EOCBU |