Commit 31f75f44 authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Replace HDF5 check header macro with hdf5.h file test

parent 3da363c0
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -24859,17 +24859,21 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
# Check for required headers
as_ac_Header=`printf "%s\n" "ac_cv_header_$HDF5_INCLUDE/hdf5.h" | sed "$as_sed_sh"`
ac_fn_c_check_header_compile "$LINENO" "$HDF5_INCLUDE/hdf5.h" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"
# AC_CHECK_HEADER(
#  [${HDF5_INCLUDE}/hdf5.h],
#  ,
#  AC_MSG_ERROR([Could not find HDF5 headers!]),
# )
if test -f ${HDF5_INCLUDE}/hdf5.h
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: HDF5 headers found in ${HDF5_INCLUDE}" >&5
printf "%s\n" "$as_me: HDF5 headers found in ${HDF5_INCLUDE}" >&6;}
else case e in #(
  e) as_fn_error $? "\"Could not find HDF5 headers!" "$LINENO" 5 ;;
  e) as_fn_error $? "HDF5 headers not found!" "$LINENO" 5
 ;;
esac
fi
# Check for required libraries
    cat > nptm_test_hdf5.cpp <<EOF
+9 −4
Original line number Diff line number Diff line
@@ -254,10 +254,15 @@ LT_INIT
M4_DETECT_HDF5

# Check for required headers
AC_CHECK_HEADER(
  [$HDF5_INCLUDE/hdf5.h],
  ,
  AC_MSG_ERROR(["Could not find HDF5 headers!]),
# AC_CHECK_HEADER(
#  [${HDF5_INCLUDE}/hdf5.h],
#  ,
#  AC_MSG_ERROR([Could not find HDF5 headers!]),
# )
AS_IF(
  [test -f ${HDF5_INCLUDE}/hdf5.h],
  [AC_MSG_NOTICE([HDF5 headers found in ${HDF5_INCLUDE}])],
  [AC_MSG_ERROR([HDF5 headers not found!])]
)

# Check for required libraries