6 libswanted=`echo $libswanted | sed 's/ malloc / /'`
8 objformat=`/usr/bin/objformat`
9 if [ 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"
14 lddlflags='-Bshareable'
16 libpth="/usr/lib /usr/local/lib"
17 glibpth="/usr/lib /usr/local/lib"
21 cccdlflags='-DPIC -fPIC'
23 ccflags="${ccflags} -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H"
24 if /usr/bin/file -L /usr/lib/libc.so | /usr/bin/grep -vq "not stripped" ; then
31 # This script UU/usethreads.cbu will get 'called-back' by Configure
32 # after it has prompted the user for whether to use threads.
33 cat > UU/usethreads.cbu <<'EOCBU'
36 ldflags="-pthread $ldflags"
37 set `echo X "$libswanted "| sed -e 's/ c //'`
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...
46 # Even with the malloc mutexes the Perl malloc does not
47 # seem to be threadsafe in MidnightBSD?
48 case "$usemymalloc" in
55 case "$usemallocwrap" in
56 '') usemallocwrap='define' ;;