#!/bin/sh
#* ----------------------------------------------------------------------
#*               Proprietary and Confidential Information
#*
#* This material contains, and is part of a computer software program
#* which is, proprietary and confidential information owned by COMPUTER
#* ASSOCIATES INTERNATIONAL, INC.  The program, including this material,
#* may not be duplicated, disclosed or reproduced in whole or in part for
#* any purpose without the express written authorization of COMPUTER
#* ASSOCIATES. All authorized reproductions must be marked with this
#* legend.
#*
#*                          Copyright (c) 1992-2005
#*             Computer Associates International, Incorporated
#*                          All rights reserved
#*
#* ----------------------------------------------------------------------
#*  SCCS Module Control Stamp
#* ----------------------------------------------------------------------
#
#* "@(#)addlibpath	1.3  03/01/05 11:33:41"
#* "Copyright (C) 1992-2005 Computer Associates International, Inc.  All rights reserved."
#
ca_add_libpath()
{
SYSTYPE="`uname -s`"
 case $SYSTYPE in
      HP-UX)
           case "$SHLIB_PATH" in
           $1 | $1:* | *:$1:* | *:$1) ;;
           "") SHLIB_PATH=$1;;
           *) SHLIB_PATH=$SHLIB_PATH:$1;;
           esac
           export SHLIB_PATH;;
        AIX)
           case "$LIBPATH" in
           $1 | $1:* | *:$1:* | *:$1) ;;
           "") LIBPATH=$1;;
           *) LIBPATH=$LIBPATH:$1;;
           esac
           export LIBPATH;;
       Darwin)
           case "$DYLD_LIBRARY_PATH" in
           $1 | $1:* | *:$1:* | *:$1) ;;
           "") DYLD_LIBRARY_PATH=$1;;
           *) DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$1;;
           esac
           export DYLD_LIBRARY_PATH;;
          *)
           case "$LD_LIBRARY_PATH" in
           $1 | $1:* | *:$1:* | *:$1) ;;           
	   "") LD_LIBRARY_PATH=$1;;
           *) LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$1;;
           esac
           export LD_LIBRARY_PATH;;
 esac
}

