Salome HOME
To see which hdf5 we're using in configure log
[modules/kernel.git] / salome_adm / unix / config_files / check_htmlgen.m4
index 6f46e9fbacc29cf06cc01d732a99943ccb8ca32b..c60df5cf63be2eca73a10bbead74e7cc2470d360 100644 (file)
@@ -1,5 +1,24 @@
-dnl Copyright (C) 2003  CEA/DEN, EDF R&D
-
+dnl  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
+dnl
+dnl  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+dnl  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+dnl
+dnl  This library is free software; you can redistribute it and/or
+dnl  modify it under the terms of the GNU Lesser General Public
+dnl  License as published by the Free Software Foundation; either
+dnl  version 2.1 of the License.
+dnl
+dnl  This library is distributed in the hope that it will be useful,
+dnl  but WITHOUT ANY WARRANTY; without even the implied warranty of
+dnl  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+dnl  Lesser General Public License for more details.
+dnl
+dnl  You should have received a copy of the GNU Lesser General Public
+dnl  License along with this library; if not, write to the Free Software
+dnl  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+dnl
+dnl  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+dnl
 AC_DEFUN([CHECK_HTML_GENERATORS],[
 
 #AC_CHECKING(for html generators)
@@ -12,6 +31,61 @@ then
   AC_MSG_WARN(doxygen not found)
   doxygen_ok=no
 fi
+if test "x$doxygen_ok" = "xyes"
+then
+  version=`$DOXYGEN --version`
+  AC_MSG_RESULT(doxygen version $version)
+  case "$version" in
+       1.4.4*)
+         DOXYGEN_WITH_PYTHON=yes
+         DOXYGEN_WITH_STL=no
+         ;;
+       1.4.5*)
+         DOXYGEN_WITH_PYTHON=yes
+         DOXYGEN_WITH_STL=yes
+         ;;
+       1.4.6*)
+         DOXYGEN_WITH_PYTHON=yes
+         DOXYGEN_WITH_STL=yes
+         ;;
+       1.4.7*)
+         DOXYGEN_WITH_PYTHON=yes
+         DOXYGEN_WITH_STL=yes
+         ;;
+       1.4.8*)
+         DOXYGEN_WITH_PYTHON=yes
+         DOXYGEN_WITH_STL=yes
+         ;;
+       1.4.9*)
+         DOXYGEN_WITH_PYTHON=yes
+         DOXYGEN_WITH_STL=yes
+         ;;
+       [[1-9]].[[5-9]]*)
+         DOXYGEN_WITH_PYTHON=yes
+         DOXYGEN_WITH_STL=yes
+         ;;
+       *)
+         DOXYGEN_WITH_PYTHON=no
+         DOXYGEN_WITH_STL=no
+         ;;
+  esac
+  AC_MSG_RESULT(doxygen with support STL    - $DOXYGEN_WITH_STL)
+  AC_MSG_RESULT(doxygen with support PYTHON - $DOXYGEN_WITH_PYTHON)
+  if test "$DOXYGEN_WITH_PYTHON" == "yes" ; then
+    DOXYGEN_PYTHON_EXTENSION="*.py"
+  else
+    DOXYGEN_PYTHON_EXTENSION=""
+  fi
+  if test "$DOXYGEN_WITH_STL" == "yes" ; then
+    DOXYGEN_SUPPORT_STL="YES"
+  else
+    DOXYGEN_SUPPORT_STL="NO"
+  fi
+  AC_SUBST(DOXYGEN_WITH_PYTHON)
+  AC_SUBST(DOXYGEN_PYTHON_EXTENSION)
+  AC_SUBST(DOXYGEN_WITH_STL)
+  AC_SUBST(DOXYGEN_SUPPORT_STL)
+fi
 dnl AC_SUBST(DOXYGEN)
 
 graphviz_ok=yes