ccflags="-Dbool=char -DHAS_BOOL $ccflags"
# BSD compatability library no longer needed
-set `echo X "$libswanted "| sed -e 's/ bsd / /'`
+# 'kaffe' has a /usr/lib/libnet.so which is not at all relevent for perl.
+set `echo X "$libswanted "| sed -e 's/ bsd / /' -e 's/ net / /'`
shift
libswanted="$*"
if [ ! "`csh -c 'echo $version' 2>/dev/null`" ]
then
echo 'Real csh found (might break); looking for tcsh ...'
- # Use ../UU/loc to find tcsh. (We run in the hints/ directory.)
- if xxx=`../UU/loc tcsh blurfl $pth`; $test -f "$xxx"; then
+ # Use ./UU/loc to find tcsh. (We no longer run in the hints/ directory)
+ if xxx=`./UU/loc tcsh blurfl $pth`; $test -f "$xxx"; then
echo "Found tcsh. I'll use it for globbing."
# We can't change Configure's setting of $csh, due to the way
# Configure handles $d_portable and commands found in $loclist.
echo 'Your csh is really tcsh. Good.'
fi
-if [ "X$usethreads" != "X" ]; then
- ccflags="-D_REENTRANT -DUSE_THREADS $ccflags"
- cppflags="-D_REENTRANT -DUSE_THREADS $cppflags"
+# Shimpei Yamashita <shimpei@socrates.patnet.caltech.edu>
+# Message-Id: <33EF1634.B36B6500@pobox.com>
+#
+# MkLinux (osname=linux,archname=ppc-linux), which differs slightly from other
+# linuces, needs special flags passed in order for dynamic loading to work.
+# instead of the recommended:
+# ccdlflags='-rdynamic'
+#
+# it should be:
+# ccdlflags='-Wl,-E'
+
+# XXX EXPERIMENTAL A.D. 2/27/1998
+# XXX This script UU/usethreads.cbu will get 'called-back' by Configure
+# XXX after it has prompted the user for whether to use threads.
+cat > UU/usethreads.cbu <<'EOSH'
+case "$usethreads" in
+$define|true|[yY]*)
+ ccflags="-D_REENTRANT $ccflags"
# -lpthread needs to come before -lc but after other libraries such
# as -lgdbm and such like. We assume here that -lc is present in
# libswanted. If that fails to be true in future, then this can be
set `echo X "$libswanted "| sed -e 's/ c / pthread c /'`
shift
libswanted="$*"
-fi
+ ;;
+esac
+EOSH
+# XXX EXPERIMENTAL --end of call-back