4ae9063c3bda8f0c14c65d1db60b0b0305528b42
[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 set `echo " $libswanted " | sed -e 's@ ld @ @' -e 's@ ucb @ @'`
6 libswanted="$*"
7
8 # Look for architecture name.  We want to suggest a useful default
9 # for archlib and also warn about possible -x486 flags needed.
10 case "$archname" in
11 '')
12     if test -f /usr/bin/arch; then
13         archname=`/usr/bin/arch`
14         archname="${archname}-${osname}"
15     elif test -f /usr/ucb/arch; then
16         archname=`/usr/ucb/arch`
17         archname="${archname}-${osname}"
18     fi
19     ;;
20 esac
21 case "$archname" in
22 *86*) echo "For an Intel platform you might need to add -x486 to ccflags" >&4;;
23 *) ;;
24 esac
25
26 case $PATH in
27 */usr/ucb*:/usr/bin:*) cat <<END
28 NOTE:  Some people have reported problems with /usr/ucb/cc.  
29 Remove /usr/ucb from your PATH if you have difficulties.
30 END
31 ;;
32 esac