# -*-sh-*-
#ident  "@(#)smail/conf/os:RELEASE-3_2_0_115:solaris2,v 1.15 2003/06/10 00:27:53 woods Exp"
#
# solaris2 - define the characteristics of SunOS 5.x (5.2 or later)
#
# (This file should really be called sun_os5!)
#
# JSG <jamesg@cogs.susx.ac.uk>, 17th June 1993
# Slight mods by Nigel Metheringham <nigelm@ohm.york.ac.uk>
# More info from Joe Kelsey <joe@zircon.seattle.wa.us> 20 June 1996
# Fixed and tested by Greg A. Woods <woods@web.net> 20 November 1996
# (tested on SunOS-5.3, SunOS-5.4, and SunOS-5.5)
# (more recently tested on SunOS-5.6, SunOS-5.7, SunOS-5.8, and SunOS-5.9)
#
. $ROOT/conf/os/sys5.4

OSREV=`uname -r | sed 's/\./_/g'`

# OSNAMES - Names defining this operating system
OSNAMES=UNIX_SUN_OS_5:UNIX_SUN_OS_${OSREV}:$OSNAMES

# CC - presumably the path will have been set up for a C compiler.  The
# version in /usr/ucb shouldn't be used, as it forces use of BSD libraries.
# Unlike standard SVR4, cc will not be found in /bin.
# If gcc is all that's available, it should be chosen in the local EDITME.
CC=cc

# OSLIBS - override sys5.4's to eliminate -ldbm (ndbm is in libc)
#### This should probably test for "5.9" or greater....
if [ $OSREV = "5_9" ] ; then
	OSLIBS="-lresolv -lgen -lsocket -lnsl"
else
	# Note we don't include -lresolv -- you must always use BIND's resolver anyway!
	OSLIBS="-lbind -lgen -lsocket -lnsl"
fi

# Who is nobody? 
SMAIL_NOBODY=nobody

# LMAIL - where the real /bin/mail resides
### SunOS-5 /usr/bin/mail correctly routes mail via the MTA
### so undo what sys5.4 does....
unset LMAIL

# HAVE list
### FIXME: ULIMIT and MEMMOVE should probably be in posix or sys5.4
HAVE=$HAVE:COMSAT:NISPLUS:ULIMIT:MEMMOVE:SYSEXITS_H
### FIXME: STRSIGNAL, and possibly SIG2STR & STR2SIG, may belong in sys5.4
HAVE=$HAVE:STRSIGNAL:SIG2STR:STR2SIG

MISC_DEFINES=$MISC_DEFINES:RLIM_T_DECLARED
