fis-gtm/sr_unix/set_library_path.csh

43 lines
1.6 KiB
Tcsh

#################################################################
# #
# Copyright 2010 Fidelity Information Services, Inc #
# #
# This source code contains the intellectual property #
# of its copyright holder(s), and is made available #
# under a license. If you do not know the terms of #
# the license, please stop and do not read further. #
# #
#################################################################
#
###########################################################################################
#
# set_library_path.csh - setenv LIBPATH and LD_LIBRARY_PATH
#
# The calling gtm installation script should sould source this script in order to
# avoid duplication of 'setenv LD_LIBRARY_PATH'.
###########################################################################################
if ($HOSTOS == "AIX" || $HOSTOS == "SunOS" || $HOSTOS == "OS/390") then
setenv LIBPATH /usr/local/lib64:/usr/local/lib
setenv LD_LIBRARY_PATH /usr/local/lib64:/usr/local/lib
else
# Its worth noting that SuSE+RedHat,Debian & Ubuntu handle the lib32 vs lib64 differently
# Debian way: /lib 32bit points to /emul/ia32-linux/lib
# /lib64 64bit
# Ubuntu way: /lib ARCH default points to either lib32 or lib64
# /lib32 32bit
# /lib64 64bit
# Redhat/SuSE way: /lib 32bit
# /lib64 64bit
if ( ! $?gtm_inc ) then
echo "ERROR : gtm_inc not defined!"
exit
endif
if (( -e $gtm_inc/s390.h ) || ( -e $gtm_inc/x86_64.h )) then
setenv LD_LIBRARY_PATH "/usr/local/lib64:/usr/local/lib:/usr/lib64:/usr/lib"
else
setenv LD_LIBRARY_PATH "/usr/local/lib:/usr/lib:/usr/lib32"
endif
endif