perl5.000 patch.0l: MakeMaker 4.085 and upgrade Configure to dist3 PL 51.
[p5sagit/p5-mst-13.2.git] / hints / solaris_2.sh
1 usevfork=false
2 d_suidsafe=define
3 set `echo $glibpth | sed -e 's@/usr/ucblib@@'`
4 glibpth="$*"
5 # Remove bad libraries.  -lucb contains incompatible routines.
6 # -lld doesn't do anything useful.
7 # -lmalloc can cause a problem with GNU CC & Solaris.  Specifically,
8 # libmalloc.a may allocate memory that is only 4 byte aligned, but
9 # GNU CC on the Sparc assumes that doubles are 8 byte aligned.
10 # Thanks to  Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>
11 set `echo " $libswanted " | sed -e 's@ ld @ @' -e 's@ malloc @ @' -e 's@ ucb @ @'`
12 libswanted="$*"
13
14 # Look for architecture name.  We want to suggest a useful default
15 # for archlib and also warn about possible -x486 flags needed.
16 case "$archname" in
17 '')
18     if test -f /usr/bin/arch; then
19         archname=`/usr/bin/arch`
20         archname="${archname}-${osname}"
21     elif test -f /usr/ucb/arch; then
22         archname=`/usr/ucb/arch`
23         archname="${archname}-${osname}"
24     fi
25     ;;
26 esac
27 case "$archname" in
28 *86*) echo "For an Intel platform you might need to add -x486 to ccflags" >&4;;
29 *) ;;
30 esac
31
32 case $PATH in
33 */usr/ucb*:/usr/bin:*) cat <<END
34 NOTE:  Some people have reported problems with /usr/ucb/cc.  
35 Remove /usr/ucb from your PATH if you have difficulties.
36 END
37 ;;
38 esac
39