1.1 --- a/agent/make/saenv.sh Sat Oct 17 19:51:05 2009 -0700 1.2 +++ b/agent/make/saenv.sh Wed Oct 21 09:15:33 2009 -0700 1.3 @@ -48,8 +48,16 @@ 1.4 CPU=i386 1.5 fi 1.6 else 1.7 - LD_AUDIT_32=$STARTDIR/../src/os/solaris/proc/`uname -p`/libsaproc_audit.so 1.8 - export LD_AUDIT_32 1.9 + # configure audit helper library if SA_ALTROOT is set 1.10 + if [ -n "$SA_ALTROOT" ]; then 1.11 + LD_AUDIT_32=$STARTDIR/../src/os/solaris/proc/`uname -p`/libsaproc_audit.so 1.12 + export LD_AUDIT_32 1.13 + if [ ! -f $LD_AUDIT_32 ]; then 1.14 + echo "SA_ALTROOT is set and can't find libsaproc_audit.so." 1.15 + echo "Make sure to build it with 'make natives'." 1.16 + exit 1 1.17 + fi 1.18 + fi 1.19 SA_LIBPATH=$STARTDIR/../src/os/solaris/proc/`uname -p`:$STARTDIR/solaris/`uname -p` 1.20 OPTIONS="-Dsa.library.path=$SA_LIBPATH -Dsun.jvm.hotspot.debugger.useProcDebugger" 1.21 CPU=sparc