]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
correct modif_la_files() function to reflect native qwt configuration
authorvsr <vsr@opencascade.com>
Wed, 21 Dec 2005 14:42:25 +0000 (14:42 +0000)
committervsr <vsr@opencascade.com>
Wed, 21 Dec 2005 14:42:25 +0000 (14:42 +0000)
config_files/common.sh

index 9a69683fabf2fb474071bed5de016656f0203f52..a89c48e31c6799c1120ab146f8e4996fbf35a3a0 100755 (executable)
@@ -499,9 +499,9 @@ if [ "$l" != "X" ] ; then
        mv -f _$l $l
     fi
     # 7. process qwt dependencies
-    qwtdir=`printenv QWTHOME`/lib
-    if [ -n "${QWTHOME}" ] && [ -d "${qwtdir}" ] ; then
-       # echo $l $QWTHOME $qwtdir
+    qwtdir=`find_in_path libqwt.so ${LD_LIBRARY_PATH}`
+    if [ -n "${qwtdir}" ] && [ -d "${qwtdir}" ] ; then
+       # echo $l $qwtdir
        sed -e "s%-L[^[:space:]]*qwt[^[:space:]]*/lib%-L${qwtdir}%g" $l > _$l
        mv -f _$l $l
     fi