Skip to content
Snippets Groups Projects
Commit b06fb91e authored by Stefen Guzik's avatar Stefen Guzik
Browse files

Details for cgns and hdf5 configuration

parent 29fb062b
No related branches found
No related tags found
No related merge requests found
...@@ -128,6 +128,9 @@ AC_ARG_ENABLE(cgns, ...@@ -128,6 +128,9 @@ AC_ARG_ENABLE(cgns,
AC_ARG_ENABLE(occ, AC_ARG_ENABLE(occ,
AC_HELP_STRING([--enable-occ], AC_HELP_STRING([--enable-occ],
[enable OpenCascade support (default=no)])) [enable OpenCascade support (default=no)]))
AC_ARG_ENABLE(hdf5,
AC_HELP_STRING([--enable-hdf5],
[enable HDF5 support (default=no)]))
AC_ARG_ENABLE(med, AC_ARG_ENABLE(med,
AC_HELP_STRING([--enable-med], AC_HELP_STRING([--enable-med],
[enable MED support (default=yes)])) [enable MED support (default=yes)]))
...@@ -158,6 +161,7 @@ if test "x$enable_minimal" = "xyes"; then ...@@ -158,6 +161,7 @@ if test "x$enable_minimal" = "xyes"; then
enable_chaco=no; enable_chaco=no;
enable_med=no; enable_med=no;
enable_cgns=no; enable_cgns=no;
enable_hdf5=no;
enable_zlib=no; enable_zlib=no;
if test "x$enable_post" != "xyes"; then if test "x$enable_post" != "xyes"; then
enable_post=no; enable_post=no;
...@@ -658,27 +662,32 @@ if test "x$enable_fm" != "xno"; then ...@@ -658,27 +662,32 @@ if test "x$enable_fm" != "xno"; then
fi fi
fi fi
dnl Check for HDF5 (required by MED, needs zlib) dnl Check for HDF5 (required by MED, needs zlib, and optional for cgns)
if test "x${ZLIB}" = "xyes"; then if test "x${HDF5_PREFIX}" != "x" -a "x$enable_hdf5" != "xno"; then
if test "x$enable_med" != "xno"; then enable_hdf5=yes
if test "x${HDF5_PREFIX}" != "x"; then fi
LDFLAGS="-L${HDF5_PREFIX}/lib ${LDFLAGS}" if test "x${ZLIB}" = "xyes" -a "x$enable_med" != "xno"; then
fi enable_hdf5=yes
AC_CHECK_LIB(hdf5,main,HDF5="yes",HDF5="no") fi
if test "x$enable_hdf5" = "xyes"; then
if test "x${HDF5_PREFIX}" != "x"; then
LDFLAGS="-L${HDF5_PREFIX}/lib ${LDFLAGS}"
fi
AC_CHECK_LIB(hdf5,main,HDF5="yes",HDF5="no")
if test "x${HDF5}" = "xyes"; then
LIBS="-lhdf5 ${LIBS}" # Necessary for CGNS with HDF5
fi fi
fi fi
dnl Check for CGNS dnl Check for CGNS
if test "x${CGNS_PREFIX}" != "x"; then if test "x${CGNS_PREFIX}" != "x" -a "x$enable_cgns" != "xno"; then
if test "x$enable_cgns" != "xno"; then enable_cgns="yes"
enable_cgns="yes"
fi
fi fi
if test "x$enable_cgns" = "xyes"; then if test "x$enable_cgns" = "xyes"; then
if test "x${CGNS_PREFIX}" != "x"; then if test "x${CGNS_PREFIX}" != "x"; then
LDFLAGS="-L${CGNS_PREFIX}/lib ${LDFLAGS}" LDFLAGS="-L${CGNS_PREFIX}/lib ${LDFLAGS}"
fi fi
AC_CHECK_LIB(cgns,main,CGNS="yes",CGNS="no",-lhdf5) AC_CHECK_LIB(cgns,main,CGNS="yes",CGNS="no")
if test "x${CGNS}" = "xyes"; then if test "x${CGNS}" = "xyes"; then
if test "x${CGNS_PREFIX}" = "x"; then if test "x${CGNS_PREFIX}" = "x"; then
GMSH_LIBS="${GMSH_LIBS} -lcgns" GMSH_LIBS="${GMSH_LIBS} -lcgns"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment