]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Improve the way VTK in PARAVIEW is detected
authoradam <adam>
Thu, 17 Feb 2011 15:09:23 +0000 (15:09 +0000)
committeradam <adam>
Thu, 17 Feb 2011 15:09:23 +0000 (15:09 +0000)
salome_adm/unix/config_files/check_vtk.m4

index 48cf22f0c8a674765face7744389719bdb492e6a..5aac05ddb1db67a7ecefa4611d40cdcadb1fd0cd 100644 (file)
@@ -172,6 +172,16 @@ if test "x$PVHOME" != "x" ; then
       fi
     done
   fi   
+  if test "x$PVVERSION" = "x" ; then
+    ls -1d $PVHOME/include/paraview-* > /dev/null 2>&1
+    if test $? = 0 ; then
+      nb=$(ls -1d $PVHOME/include/paraview-* | wc -l)
+      if test $nb = 1 ; then
+        d=$(ls -1d $PVHOME/include/paraview-*)
+        PVVERSION=$(echo $d | awk -F "-" '{print $(NF)}')
+      fi
+    fi
+  fi
   if test "x$PVVERSION" = "x" ; then
     PVVERSION=`basename $PVHOME | sed -e "s,[[^-]]*,,"`
   else