mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +08:00
Added error messages when compiling hdf4 support but no hdf4 libraries are present.
This commit is contained in:
parent
530be59c55
commit
5c2cce3016
@ -37,7 +37,7 @@ AC_CONFIG_HEADERS([config.h])
|
||||
|
||||
# This call is required by automake.
|
||||
AM_INIT_AUTOMAKE([foreign dist-zip subdir-objects])
|
||||
|
||||
AM_MAINTAINER_MODE()
|
||||
# Check for the existence of this file before proceeding.
|
||||
AC_CONFIG_SRCDIR([include/netcdf.h])
|
||||
|
||||
@ -730,8 +730,8 @@ if test "x$enable_netcdf_4" = xyes; then
|
||||
if test "x$nc_mfhdf_h_missing" = xyes; then
|
||||
AC_MSG_ERROR([Cannot find mfhdf.h, yet --enable-hdf4 was used.])
|
||||
fi
|
||||
AC_CHECK_LIB([df], [Hclose], [], [])
|
||||
AC_CHECK_LIB([mfhdf], [SDcreate], [], [])
|
||||
AC_CHECK_LIB([df], [Hclose], [], [AC_MSG_ERROR([Can't find or link to the hdf4 df library. See config.log for errors.])])
|
||||
AC_CHECK_LIB([mfhdf], [SDcreate], [], [AC_MSG_ERROR([Can't find or link to the hdf4 mfhdf library. See config.log for errors.])])
|
||||
#AC_SEARCH_LIBS([Hclose],[df], [], [AC_MSG_ERROR([Can't find or link to the hdf4 df library. See config.log for errors.])])
|
||||
#AC_SEARCH_LIBS([SDcreate],[mfhdf], [], [AC_MSG_ERROR([Can't find or link to the hdf4 mfhdf library. See config.log for errors.])])
|
||||
AC_DEFINE([USE_HDF4], [1], [if true, use HDF4 too])
|
||||
|
Loading…
Reference in New Issue
Block a user