]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Correction for VTK la files
authormaintenance team <salome-mnt@opencascade.com>
Thu, 23 Aug 2007 12:08:53 +0000 (12:08 +0000)
committermaintenance team <salome-mnt@opencascade.com>
Thu, 23 Aug 2007 12:08:53 +0000 (12:08 +0000)
config_files/common.sh

index 0a86f3aa77eb58c4e302b889a36b9fe765985684..4a25f9e70bc2ed02b614e6e5d7ca0d9879b96559 100755 (executable)
@@ -653,10 +653,14 @@ if [ "$l" != "X" ] ; then
        mv -f $l"_" $l
     fi
     # 4. process VTK dependencies
+    if test `uname -m` = "x86_64" ; then
+    vtkdir=`printenv VTKHOME`/lib64/vtk
+    else
     vtkdir=`printenv VTKHOME`/lib/vtk
+    fi
     if [ -n "${VTKHOME}" ] && [ -d "${vtkdir}" ] ; then
        # echo $l $VTKHOME $vtkdir
-       sed -e "s%-L[^[:space:]]*VTK[^[:space:]]*/lib/vtk%-L${vtkdir}%g" $l > $l"_"
+       sed -e "s%-L[^[:space:]]*VTK[^[:space:]]*/\(lib\|lib64\)/vtk%-L${vtkdir}%g" $l > $l"_"
        mv -f $l"_" $l
     fi
     # 5. process HDF dependencies