]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
If VTKHOME is not defined, search in /usr
authoradam <adam>
Thu, 2 Jun 2005 13:44:53 +0000 (13:44 +0000)
committeradam <adam>
Thu, 2 Jun 2005 13:44:53 +0000 (13:44 +0000)
salome_adm/unix/config_files/check_vtk.m4

index 4b4b1454fab0c07c93f3cdcb6d164863b686e03a..066aeb1ca760e36460b93e46182c352043a6cc3a 100644 (file)
@@ -62,7 +62,14 @@ TRY_LINK_LIBS="-lvtkCommon $OGL_LIBS $LXLIB -lX11 -lXt"
 if test -z $VTKHOME
 then 
    AC_MSG_WARN(undefined VTKHOME variable which specify where vtk was compiled)
-else
+   if test -f /usr/include/vtk/vtkPlane.h ; then
+      AC_MSG_RESULT(trying /usr)
+      VTKHOME="/usr"
+   fi
+fi
+
+if test ! -z $VTKHOME
+then
    LOCAL_INCLUDES="-I$VTKHOME/include/vtk $LOCAL_INCLUDES"
    LOCAL_LIBS="-L$VTKHOME/lib/vtk $LOCAL_LIBS"
    TRY_LINK_LIBS="-L$VTKHOME/lib/vtk $TRY_LINK_LIBS"