perl/hints/vos.sh
[p5sagit/p5-mst-13.2.git] / hints / dec_osf.sh
index 1e0122f..87d3933 100644 (file)
@@ -313,6 +313,33 @@ case "`/usr/sbin/sizer -v`" in
 *[1-4].0*) d_modfl=undef ;; # must wait till 5.0
 esac
 
+case "$loclibpth" in
+'')    ;;
+*)
+       needusrshlib=''
+       for p in $loclibpth
+       do
+           if test -n "`ls $p/libdb.so* 2>/dev/null`"; then
+               needusrshlib=yes
+           fi
+           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
+       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.
+       if test -n "$needusrshlib"; then
+           echo "Prepending /usr/shlib to loclibpth." >& 4
+           loclibpth="/usr/shlib $loclibpth"
+           echo "loclibpth is now $loclibpth." >& 4
+       fi
+       ;;
+esac
+
 #
 # Unset temporary variables no more needed.
 #