Skip to content
Snippets Groups Projects
Commit cc76391d authored by Houtan Bastani's avatar Houtan Bastani Committed by Sébastien Villemot
Browse files

build system: add hdf5 check to RHEL matio hack

(cherry picked from commit f6fa3618)
parent 952503a8
No related branches found
No related tags found
No related merge requests found
dnl Detect the MATIO Library. dnl Detect the MATIO Library.
dnl dnl
dnl Copyright (C) 2012 Dynare Team dnl Copyright (C) 2012-2014 Dynare Team
dnl dnl
dnl This file is part of Dynare. dnl This file is part of Dynare.
dnl dnl
...@@ -41,9 +41,10 @@ AC_ARG_WITH(matio, AC_HELP_STRING([--with-matio=DIR], [prefix to MATIO installat ...@@ -41,9 +41,10 @@ AC_ARG_WITH(matio, AC_HELP_STRING([--with-matio=DIR], [prefix to MATIO installat
LDFLAGS="$LDFLAGS_MATIO $LDFLAGS" LDFLAGS="$LDFLAGS_MATIO $LDFLAGS"
dnl Workaround for the matio from RHEL 6 + EPEL 6 dnl Workaround for the matio from RHEL 6 + EPEL 6
dnl If detected, libz is added to LIBS, used for matio test dnl If detected, libz and libhdf5 are added to LIBS, used for matio test
LIBS="" LIBS=""
AC_CHECK_LIB([z], [compress]) AC_CHECK_LIB([z], [compress])
AC_CHECK_LIB([hdf5], [H5Fcreate])
AC_CHECK_HEADER([matio.h], [], [has_matio=no]) AC_CHECK_HEADER([matio.h], [], [has_matio=no])
AC_CHECK_LIB([matio], [Mat_Open], [LIBADD_MATIO="-lmatio $LIBS"], [has_matio=no]) AC_CHECK_LIB([matio], [Mat_Open], [LIBADD_MATIO="-lmatio $LIBS"], [has_matio=no])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment