1usevfork='true' 2case "$usemymalloc" in 3 "") usemymalloc='n' 4 ;; 5esac 6libswanted=`echo $libswanted | sed 's/ malloc / /'` 7 8objformat=`/usr/bin/objformat` 9if [ x$objformat = xaout ]; then 10 if [ -e /usr/lib/aout ]; then 11 libpth="/usr/lib/aout /usr/local/lib /usr/lib" 12 glibpth="/usr/lib/aout /usr/local/lib /usr/lib" 13 fi 14 lddlflags='-Bshareable' 15else 16 libpth="/usr/lib /usr/local/lib" 17 glibpth="/usr/lib /usr/local/lib" 18 ldflags="-Wl,-E " 19 lddlflags="-shared " 20fi 21cccdlflags='-DPIC -fPIC' 22 23ccflags="${ccflags} -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H" 24if /usr/bin/file -L /usr/lib/libc.so | /usr/bin/grep -vq "not stripped" ; then 25 usenm=false 26fi 27 28signal_t='void' 29d_voidsig='define' 30 31# This script UU/usethreads.cbu will get 'called-back' by Configure 32# after it has prompted the user for whether to use threads. 33cat > UU/usethreads.cbu <<'EOCBU' 34case "$usethreads" in 35$define|true|[yY]*) 36 ldflags="-pthread $ldflags" 37 set `echo X "$libswanted "| sed -e 's/ c //'` 38 shift 39 libswanted="$*" 40 # Configure will probably pick the wrong libc to use for nm scan. 41 # The safest quick-fix is just to not use nm at all... 42 usenm=false 43 44 unset lc_r 45 46 # Even with the malloc mutexes the Perl malloc does not 47 # seem to be threadsafe in MidnightBSD? 48 case "$usemymalloc" in 49 '') usemymalloc=n ;; 50 esac 51esac 52EOCBU 53 54# malloc wrap works 55case "$usemallocwrap" in 56'') usemallocwrap='define' ;; 57esac 58