1case `uname -r` in 26.1*) shellflags="-m+65536" ;; 3esac 4 5case "$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" ;; 9esac 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 20# The default is to die in runtime on math overflows. 21# Let's not do that. --jhi 22ccflags="$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.) 28if /etc/cpu -i | grep -q cfp 29then 30 ccflags="$ccflags -h rounddiv" 31fi 32 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"' 36# Otherwise the unpack %65c checksums will fail. 37pp_pack_cflags='optimize="$ccflags -h scalar0 -h vector0"' 38case "$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 ;; 45esac 46# Configure gets fooled for some reason, these do not exist. 47d_getpgid='undef' 48d_setitimer='undef' 49# These exist but do not really work. 50d_setregid='undef' 51d_setreuid='undef' 52# No shared libraries. 53so='none' 54# No dynaloading. 55d_dlopen='undef' 56i_dlfcn='undef' 57# Threads call-back unit. 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 69