summaryrefslogtreecommitdiff
path: root/hints/dec_osf.sh
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-03-25 22:36:18 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-03-25 22:36:18 +0000
commit95fecce171ac398d897e67e75aa7a30b6351629b (patch)
tree488a5fd51f1fa5243c4d5dd8827d62c1a66c5966 /hints/dec_osf.sh
parent8756f06c969267241b5b589fcabed9d55ae28861 (diff)
downloadperl-95fecce171ac398d897e67e75aa7a30b6351629b.tar.gz
Tru64: Modify LD_LIBRARY_PATH only if loclibpth is set.
p4raw-id: //depot/perl@15505
Diffstat (limited to 'hints/dec_osf.sh')
-rw-r--r--hints/dec_osf.sh30
1 files changed, 17 insertions, 13 deletions
diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh
index b30f218945..8bc2771040 100644
--- a/hints/dec_osf.sh
+++ b/hints/dec_osf.sh
@@ -358,20 +358,24 @@ case "$loclibpth" in
'') ;;
*)
needusrshlib=''
- for p in $loclibpth
- do
- if test -n "`ls $p/libdb.so* 2>/dev/null`"; then
- needusrshlib=yes
- fi
- if test -d $p; then
- echo "Appending $p to LD_LIBRARY_PATH." >& 4
- case "$LD_LIBRARY_PATH" in
- '') LD_LIBRARY_PATH=$p ;;
- *) LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$p ;;
- esac
- fi
+ case "$loclibpth" in
+ '') ;;
+ *) for p in $loclibpth
+ do
+ if test -n "`ls $p/libdb.so* 2>/dev/null`"; then
+ needusrshlib=yes
+ fi
+ if test -d $p; then
+ echo "Appending $p to LD_LIBRARY_PATH." >& 4
+ case "$LD_LIBRARY_PATH" in
+ '') LD_LIBRARY_PATH=$p ;;
+ *) LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$p ;;
+ esac
+ fi
+ done
+ echo "LD_LIBRARY_PATH is now $LD_LIBRARY_PATH." >& 4
+ ;;
done
- echo "LD_LIBRARY_PATH is now $LD_LIBRARY_PATH." >& 4
# This is evil but I can't think of a nice workaround:
# the /usr/shlib/libdb.so needs to be seen first,
# or running Configure will fail.