Salome HOME
To see which hdf5 we're using in configure log
[modules/kernel.git] / salome_adm / unix / config_files / check_hdf5.m4
index 96afbc5ae480ee83237420906a5f30f614806371..966a4709848644990f3bfd0f3b80d2dc6244f256 100644 (file)
@@ -48,12 +48,15 @@ LOCAL_RLIBS=""
 if test -z $HDF5HOME
 then
    AC_MSG_WARN(undefined HDF5HOME variable which specify hdf5 installation directory)
+   AC_MSG_NOTICE(Trying native Hdf5...)
 else
    LOCAL_INCLUDES="-I$HDF5HOME/include"
    if test "x$HDF5HOME" = "x/usr"
    then
+      AC_MSG_NOTICE(Trying native Hdf5...)
       LOCAL_LIBS=""
    else
+      AC_MSG_NOTICE(Trying Hdf5 from $HDF5HOME ...)
       LOCAL_LIBS="-L$HDF5HOME/lib"
       LOCAL_RLIBS="-R$HDF5HOME/lib"
    fi
@@ -86,6 +89,11 @@ then
   HDF5_MT_LIBS="$LOCAL_LIBS -lhdf5 $LOCAL_RLIBS"
 fi
 
+if  test "x$hdf5_ok" = "xyes"
+then
+  HDF5_INCLUDES="$HDF5_INCLUDES -DH5_USE_16_API"
+fi
+
 AC_MSG_RESULT(for hdf5: $hdf5_ok)
 
 ])dnl