mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +08:00
changes to support build of libsrc4 without libhdf5
This commit is contained in:
parent
1d9f28fb70
commit
150662dd0b
@ -1386,6 +1386,11 @@ AC_MSG_WARN([netCDF-4 disabled => --disable-filter-testing])
|
||||
enable_filter_testing=no
|
||||
fi
|
||||
|
||||
if test "x$enable_hdf5" = xno ; then
|
||||
AC_MSG_WARN([HDF5 disabled => --disable-filter-testing])
|
||||
enable_filter_testing=no
|
||||
fi
|
||||
|
||||
if test "x$enable_shared" = xno ; then
|
||||
AC_MSG_WARN([Shared libraries are disabled => --disable-filter-testing])
|
||||
enable_filter_testing=no
|
||||
|
@ -11,6 +11,7 @@
|
||||
#ifndef _NCDIMSCALE_H_
|
||||
#define _NCDIMSCALE_H_
|
||||
|
||||
#ifdef USE_HDF5
|
||||
#include <hdf5.h>
|
||||
|
||||
/* This is used to uniquely identify datasets, so we can keep track of
|
||||
@ -20,5 +21,6 @@ typedef struct hdf5_objid
|
||||
unsigned long fileno[2]; /* file number */
|
||||
haddr_t objno[2]; /* object number */
|
||||
} HDF5_OBJID_T;
|
||||
#endif /* USE_HDF5 */
|
||||
|
||||
#endif
|
||||
|
@ -9,7 +9,9 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#ifdef USE_HDF5
|
||||
#include <hdf5internal.h>
|
||||
#endif
|
||||
#include <math.h> /* For pow() used below. */
|
||||
|
||||
/** @internal Default size for unlimited dim chunksize. */
|
||||
|
@ -16,12 +16,12 @@ extern int NC3_finalize(void);
|
||||
|
||||
#ifdef USE_NETCDF4
|
||||
#include "nc4internal.h"
|
||||
#include "hdf5internal.h"
|
||||
extern int NC4_initialize(void);
|
||||
extern int NC4_finalize(void);
|
||||
#endif
|
||||
|
||||
#ifdef USE_HDF5
|
||||
#include "hdf5internal.h"
|
||||
extern int NC_HDF5_initialize(void);
|
||||
extern int NC_HDF5_finalize(void);
|
||||
#endif
|
||||
|
@ -13,7 +13,9 @@
|
||||
#include "config.h"
|
||||
#include <nc4internal.h>
|
||||
#include "nc4dispatch.h"
|
||||
#ifdef USE_HDF5
|
||||
#include "hdf5internal.h"
|
||||
#endif
|
||||
#include <math.h>
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user