2018-12-07 06:51:35 +08:00
|
|
|
/*! \file
|
|
|
|
|
|
|
|
Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
|
|
|
2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014,
|
|
|
|
2015, 2016, 2017, 2018
|
|
|
|
University Corporation for Atmospheric Research/Unidata.
|
|
|
|
|
|
|
|
See \ref copyright file for more info.
|
|
|
|
|
|
|
|
*/
|
2017-02-01 01:59:03 +08:00
|
|
|
#ifndef CONFIG_H
|
|
|
|
#define CONFIG_H
|
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
|
2017-06-02 04:48:23 +08:00
|
|
|
/* Prevent an issue where there is a circular inclusion
|
|
|
|
of winsock.h/windows.h. This weird state occurs with
|
|
|
|
libdap4 and hdf4 support. The solution comes from the
|
|
|
|
following URL, found after a bit of research.
|
|
|
|
|
|
|
|
Added in support of the 4.5.0-rc1. Hello, future generations.
|
|
|
|
|
|
|
|
* https://stackoverflow.com/questions/1372480/c-redefinition-header-files-winsock2-h
|
|
|
|
|
|
|
|
*/
|
2017-07-27 03:40:03 +08:00
|
|
|
|
2017-09-26 07:38:48 +08:00
|
|
|
/* #cmakedefine HAVE_WINSOCK2_H
|
2017-07-27 03:40:03 +08:00
|
|
|
|
|
|
|
#ifdef HAVE_WINSOCK2_H
|
2017-09-04 05:09:10 +08:00
|
|
|
#define _WINSOCKAPI_
|
2017-07-27 03:40:03 +08:00
|
|
|
#endif
|
2017-09-26 07:38:48 +08:00
|
|
|
*/
|
2017-05-24 06:07:18 +08:00
|
|
|
#if _MSC_VER>=1900
|
|
|
|
#define STDC99
|
|
|
|
#endif
|
2017-02-01 01:59:03 +08:00
|
|
|
/* Define O_BINARY so that the appropriate flags
|
|
|
|
are set when opening a binary file on Windows. */
|
|
|
|
|
|
|
|
/* Disable a few warnings under Visual Studio, for the
|
|
|
|
time being. */
|
2017-05-24 06:07:18 +08:00
|
|
|
#include <io.h>
|
|
|
|
#pragma warning( disable: 4018 4996 4244 4305 )
|
|
|
|
#define unlink _unlink
|
|
|
|
#define open _open
|
|
|
|
#define close _close
|
|
|
|
#define read _read
|
|
|
|
#define lseek _lseeki64
|
|
|
|
|
|
|
|
#define fstat _fstat64
|
|
|
|
|
|
|
|
#define off_t __int64
|
|
|
|
#define _off_t __int64
|
|
|
|
|
|
|
|
#ifndef _OFF_T_DEFINED
|
|
|
|
#define _OFF_T_DEFINED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
#ifndef strcasecmp
|
|
|
|
#define strcasecmp _stricmp
|
|
|
|
#endif
|
2017-02-01 01:59:03 +08:00
|
|
|
|
2020-05-14 21:20:57 +08:00
|
|
|
#ifndef strincasecmp
|
|
|
|
#define strncasecmp _strnicmp
|
|
|
|
#endif
|
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
#ifndef snprintf
|
|
|
|
#if _MSC_VER<1900
|
|
|
|
#define snprintf _snprintf
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
2014-12-28 14:59:06 +08:00
|
|
|
|
2012-12-06 02:35:42 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
#define strdup _strdup
|
|
|
|
#define fdopen _fdopen
|
|
|
|
#define write _write
|
|
|
|
#define strtoll _strtoi64
|
|
|
|
#endif /*_MSC_VER */
|
2013-11-01 01:10:20 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
#cmakedefine const
|
2013-11-01 01:10:20 +08:00
|
|
|
|
2017-05-24 06:12:26 +08:00
|
|
|
#ifndef _FILE_OFFSET_BITS
|
2017-05-24 06:41:23 +08:00
|
|
|
#cmakedefine _FILE_OFFSET_BITS ${_FILE_OFFSET_BITS}
|
2017-05-24 06:12:26 +08:00
|
|
|
#cmakedefine _LARGEFILE64_SOURCE
|
|
|
|
#cmakedefine _LARGEFILE_SOURCE
|
|
|
|
#endif
|
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* Define if building universal (internal helper macro) */
|
|
|
|
#cmakedefine AC_APPLE_UNIVERSAL_BUILD 1
|
2014-12-28 14:59:06 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* If true, will attempt to download and build netcdf-fortran. */
|
|
|
|
#cmakedefine BUILD_FORTRAN 1
|
2013-04-03 06:09:31 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* default file chunk cache nelems. */
|
|
|
|
#cmakedefine CHUNK_CACHE_NELEMS ${CHUNK_CACHE_NELEMS}
|
2013-04-03 06:09:31 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* default file chunk cache preemption policy. */
|
|
|
|
#cmakedefine CHUNK_CACHE_PREEMPTION ${CHUNK_CACHE_PREEMPTION}
|
2012-09-05 06:10:32 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* default file chunk cache size in bytes. */
|
|
|
|
#cmakedefine CHUNK_CACHE_SIZE ${CHUNK_CACHE_SIZE}
|
2012-12-06 06:06:38 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
|
|
|
|
systems. This function is required for `alloca.c' support on those systems.
|
|
|
|
*/
|
|
|
|
#cmakedefine CRAY_STACKSEG_END
|
2012-07-18 04:50:43 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* Define to 1 if using `alloca.c'. */
|
|
|
|
#cmakedefine C_ALLOCA 1
|
2012-12-21 05:50:45 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* num chunks in default per-var chunk cache. */
|
|
|
|
#cmakedefine DEFAULT_CHUNKS_IN_CACHE ${DEFAULT_CHUNKS_IN_CACHE}
|
2012-07-18 04:50:43 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* default chunk size in bytes */
|
|
|
|
#cmakedefine DEFAULT_CHUNK_SIZE ${DEFAULT_CHUNK_SIZE}
|
|
|
|
|
|
|
|
/* set this only when building a DLL under MinGW */
|
|
|
|
#cmakedefine DLL_EXPORT 1
|
|
|
|
|
|
|
|
/* set this only when building a DLL under MinGW */
|
|
|
|
#cmakedefine DLL_NETCDF 1
|
|
|
|
|
2019-02-25 07:54:13 +08:00
|
|
|
/* if true, build byte-range Client */
|
|
|
|
#cmakedefine ENABLE_BYTERANGE 1
|
|
|
|
|
2017-09-14 05:25:40 +08:00
|
|
|
/* if true, enable CDF5 Support */
|
2017-09-15 04:18:56 +08:00
|
|
|
#cmakedefine ENABLE_CDF5 1
|
2017-09-14 05:25:40 +08:00
|
|
|
|
2017-11-21 04:52:06 +08:00
|
|
|
/* if true, enable strict null byte header padding. */
|
|
|
|
#cmakedefine USE_STRICT_NULL_BYTE_HEADER_PADDING 1
|
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* if true, build DAP2 and DAP4 Client */
|
2012-08-11 04:55:07 +08:00
|
|
|
#cmakedefine ENABLE_DAP 1
|
2017-05-24 06:07:18 +08:00
|
|
|
|
|
|
|
/* if true, build DAP4 Client */
|
|
|
|
#cmakedefine ENABLE_DAP4 1
|
|
|
|
|
|
|
|
/* if true, build DAP4 Client */
|
|
|
|
#cmakedefine ENABLE_DAP4 1
|
|
|
|
|
|
|
|
/* if true, do remote tests */
|
2012-08-11 04:55:07 +08:00
|
|
|
#cmakedefine ENABLE_DAP_REMOTE_TESTS 1
|
2017-05-24 06:07:18 +08:00
|
|
|
|
|
|
|
/* define the possible sources for remote test servers */
|
|
|
|
#cmakedefine REMOTETESTSERVERS "${REMOTETESTSERVERS}"
|
|
|
|
|
|
|
|
/* if true, run extra tests which may not work yet */
|
|
|
|
#cmakedefine EXTRA_TESTS 1
|
|
|
|
|
|
|
|
/* use HDF5 1.6 API */
|
|
|
|
#cmakedefine H5_USE_16_API 1
|
|
|
|
|
|
|
|
/* Define to 1 if you have `alloca', as a function or macro. */
|
|
|
|
#cmakedefine HAVE_ALLOCA 1
|
|
|
|
|
|
|
|
/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
|
|
|
|
*/
|
|
|
|
#cmakedefine HAVE_ALLOCA_H 1
|
|
|
|
|
|
|
|
/* Define to 1 if you have hdf5_coll_metadata_ops */
|
|
|
|
#cmakedefine HDF5_HAS_COLL_METADATA_OPS 1
|
|
|
|
|
|
|
|
/* Is CURLINFO_RESPONSE_CODE defined */
|
2014-03-12 06:02:46 +08:00
|
|
|
#cmakedefine HAVE_CURLINFO_RESPONSE_CODE 1
|
2017-05-24 06:07:18 +08:00
|
|
|
|
2017-09-26 03:29:04 +08:00
|
|
|
/* Is CURLINFO_HTTP_CODE defined */
|
2017-09-26 07:38:48 +08:00
|
|
|
#cmakedefine HAVE_CURLINFO_HTTP_CONNECTCODE 1
|
2017-09-26 03:29:04 +08:00
|
|
|
|
2018-08-27 07:04:46 +08:00
|
|
|
/* Is CURLOPT_BUFFERSIZE defined */
|
|
|
|
#cmakedefine HAVE_CURLOPT_BUFFERSIZE 1
|
|
|
|
|
|
|
|
/* Is CURLOPT_TCP_KEEPALIVE defined */
|
|
|
|
#cmakedefine HAVE_CURLOPT_KEEPALIVE 1
|
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* Is CURLOPT_KEYPASSWD defined */
|
|
|
|
#cmakedefine HAVE_CURLOPT_KEYPASSWD 1
|
2017-01-28 02:18:55 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* Is CURLOPT_PASSWORD defined */
|
|
|
|
#cmakedefine HAVE_CURLOPT_PASSWORD 1
|
2017-01-28 02:18:55 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* Is CURLOPT_USERNAME defined */
|
|
|
|
#cmakedefine HAVE_CURLOPT_USERNAME 1
|
2017-01-28 02:18:55 +08:00
|
|
|
|
2020-04-11 03:42:27 +08:00
|
|
|
/* Is LIBCURL version >= 7.66 */
|
|
|
|
#cmakedefine HAVE_LIBCURL_766 1
|
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* Define to 1 if you have the declaration of `isfinite', and to 0 if you
|
|
|
|
don't. */
|
|
|
|
#cmakedefine HAVE_DECL_ISFINITE 1
|
|
|
|
|
|
|
|
/* Define to 1 if you have the declaration of `isinf', and to 0 if you don't.
|
|
|
|
*/
|
|
|
|
#cmakedefine HAVE_DECL_ISINF 1
|
|
|
|
|
|
|
|
/* Define to 1 if you have the declaration of `isnan', and to 0 if you don't.
|
|
|
|
*/
|
|
|
|
#cmakedefine HAVE_DECL_ISNAN 1
|
|
|
|
|
2012-07-11 01:41:05 +08:00
|
|
|
/* Define to 1 if you have the <fcntl.h> header file. */
|
2017-05-24 06:07:18 +08:00
|
|
|
#cmakedefine HAVE_FCNTL_H 1
|
|
|
|
|
|
|
|
/* Define to 1 if you have the BaseTsd.h header file. */
|
|
|
|
#cmakedefine HAVE_BASETSD_H @HAVE_BASETSD_H@
|
|
|
|
|
|
|
|
/* Define if we have filelengthi64. */
|
|
|
|
#cmakedefine HAVE_FILE_LENGTH_I64 @HAVE_FILE_LENGTH_I64@
|
|
|
|
|
2019-03-23 05:16:47 +08:00
|
|
|
/* Define to 1 if you have the `fileno' function. */
|
|
|
|
#cmakedefine HAVE_FILENO 1
|
2017-05-24 06:07:18 +08:00
|
|
|
|
|
|
|
/* Define to 1 if you have the `fsync' function. */
|
|
|
|
#cmakedefine HAVE_FSYNC 1
|
2012-07-11 01:41:05 +08:00
|
|
|
|
|
|
|
/* Define to 1 if you have the <getopt.h> header file. */
|
2017-05-24 06:07:18 +08:00
|
|
|
#cmakedefine HAVE_GETOPT_H 1
|
2017-01-28 02:18:55 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* Define to 1 if you have the `getpagesize' function. */
|
|
|
|
#cmakedefine HAVE_GETPAGESIZE 1
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `getrlimit' function. */
|
|
|
|
#cmakedefine HAVE_GETRLIMIT 1
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `gettimeofday' function. */
|
|
|
|
#cmakedefine HAVE_GETTIMEOFDAY 1
|
|
|
|
|
|
|
|
/* if true, netcdf4 file properties will be set using H5Pset_libver_bounds */
|
2019-04-30 06:36:08 +08:00
|
|
|
#cmakedefine HAVE_H5PSET_LIBVER_BOUNDS 1
|
2017-05-24 06:07:18 +08:00
|
|
|
|
|
|
|
/* Define to 1 if you have the `H5Z_SZIP' function. */
|
|
|
|
#cmakedefine HAVE_H5Z_SZIP 1
|
2012-12-21 05:50:45 +08:00
|
|
|
|
2012-07-11 01:41:05 +08:00
|
|
|
/* Define to 1 if you have the <hdf5.h> header file. */
|
2017-05-24 06:07:18 +08:00
|
|
|
#cmakedefine HAVE_HDF5_H 1
|
|
|
|
|
2017-05-24 06:32:36 +08:00
|
|
|
/* Define to 1 if you have the <hdf5.h> header file. */
|
|
|
|
#cmakedefine HAVE_HDF5_HL_H 1
|
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* Define to 1 if the system has the type `int64'. */
|
|
|
|
#cmakedefine HAVE_INT64 1
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
|
|
|
#cmakedefine HAVE_INTTYPES_H 1
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `dl' library (-ldl). */
|
|
|
|
#cmakedefine HAVE_LIBDL 1
|
2012-07-18 04:50:43 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* Define to 1 if you have the `jpeg' library (-ljpeg). */
|
|
|
|
#cmakedefine HAVE_LIBJPEG 1
|
2017-01-28 02:18:55 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* Define to 1 if you have the `m' library (-lm). */
|
|
|
|
#cmakedefine HAVE_LIBM 1
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `mfhdf' library (-lmfhdf). */
|
|
|
|
#cmakedefine HAVE_LIBMFHDF 1
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `pnetcdf' library (-lpnetcdf). */
|
|
|
|
#cmakedefine HAVE_LIBPNETCDF 1
|
2012-07-11 01:58:53 +08:00
|
|
|
|
2012-07-11 01:41:05 +08:00
|
|
|
/* Define to 1 if you have the <locale.h> header file. */
|
2017-05-24 06:07:18 +08:00
|
|
|
#cmakedefine HAVE_LOCALE_H 1
|
|
|
|
|
|
|
|
/* Define to 1 if the system has the type `longlong'. */
|
|
|
|
#cmakedefine HAVE_LONGLONG 1
|
|
|
|
|
|
|
|
/* Define to 1 if the system has the type 'long long int'. */
|
|
|
|
#cmakedefine HAVE_LONG_LONG_INT 1
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <malloc.h> header file. */
|
|
|
|
#cmakedefine HAVE_MALLOC_H 1
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `memmove' function. */
|
|
|
|
#cmakedefine HAVE_MEMMOVE 1
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `mkstemp' function. */
|
|
|
|
#cmakedefine HAVE_MKSTEMP 1
|
|
|
|
|
2017-09-03 08:09:36 +08:00
|
|
|
/* Define to 1 if you have the `mktemp' function. */
|
|
|
|
#cmakedefine HAVE_MKTEMP 1
|
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* Define to 1 if you have the `MPI_Comm_f2c' function. */
|
|
|
|
#cmakedefine HAVE_MPI_COMM_F2C 1
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `mremap' function. */
|
|
|
|
#cmakedefine HAVE_MREMAP 1
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `random' function. */
|
|
|
|
#cmakedefine HAVE_RANDOM 1
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `snprintf' function. */
|
|
|
|
#cmakedefine HAVE_SNPRINTF 1
|
|
|
|
|
|
|
|
/* Define to 1 if the system has the type `ssize_t'. */
|
|
|
|
#cmakedefine HAVE_SSIZE_T 1
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <stdarg.h> header file. */
|
|
|
|
#cmakedefine HAVE_STDARG_H 1
|
|
|
|
|
2012-07-11 01:41:05 +08:00
|
|
|
/* Define to 1 if you have the <stdint.h> header file. */
|
2017-05-24 06:07:18 +08:00
|
|
|
#cmakedefine HAVE_STDINT_H 1
|
2012-07-11 01:41:05 +08:00
|
|
|
|
|
|
|
/* Define to 1 if you have the <stdio.h> header file. */
|
2017-05-24 06:07:18 +08:00
|
|
|
#cmakedefine HAVE_STDIO_H 1
|
2012-07-11 01:41:05 +08:00
|
|
|
|
|
|
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
2017-05-24 06:07:18 +08:00
|
|
|
#cmakedefine HAVE_STDLIB_H 1
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `strdup' function. */
|
|
|
|
#cmakedefine HAVE_STRDUP 1
|
|
|
|
|
2017-05-24 06:32:36 +08:00
|
|
|
/* Define to 1 if you have the `strndup` function. */
|
|
|
|
#cmakedefine HAVE_STRNDUP
|
|
|
|
|
2012-07-11 01:41:05 +08:00
|
|
|
/* Define to 1 if you have the <strings.h> header file. */
|
2017-05-24 06:07:18 +08:00
|
|
|
#cmakedefine HAVE_STRINGS_H 1
|
2012-07-11 01:41:05 +08:00
|
|
|
|
2017-05-24 06:32:36 +08:00
|
|
|
/* Define to 1 if you have the <signal.h> header file. */
|
|
|
|
#cmakedefine HAVE_SIGNAL_H 1
|
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* Define to 1 if you have the <string.h> header file. */
|
|
|
|
#cmakedefine HAVE_STRING_H 1
|
2012-09-15 00:15:18 +08:00
|
|
|
|
2017-07-06 00:03:48 +08:00
|
|
|
/* Define to 1 if you have the <ftw.h> header file. */
|
|
|
|
#cmakedefine HAVE_FTW_H 1
|
|
|
|
|
2018-02-03 11:27:06 +08:00
|
|
|
/* Define to 1 if you have the <libgen.h> header file. */
|
|
|
|
#cmakedefine HAVE_LIBGEN_H 1
|
2018-02-03 10:57:55 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* Define to 1 if you have the `strlcat' function. */
|
|
|
|
#cmakedefine HAVE_STRLCAT 1
|
2017-01-28 02:18:55 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* Define to 1 if you have the `strtoll' function. */
|
|
|
|
#cmakedefine HAVE_STRTOLL 1
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `strtoull' function. */
|
|
|
|
#cmakedefine HAVE_STRTOULL 1
|
|
|
|
|
2017-05-24 06:32:36 +08:00
|
|
|
/* Define to 1 if you have the `stroull' function. */
|
|
|
|
#cmakedefine HAVE_STROULL 1
|
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* Define to 1 if `st_blksize' is a member of `struct stat'. */
|
|
|
|
#cmakedefine HAVE_STRUCT_STAT_ST_BLKSIZE 1
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `sysconf' function. */
|
|
|
|
#cmakedefine HAVE_SYSCONF 1
|
|
|
|
|
2012-07-11 01:41:05 +08:00
|
|
|
/* Define to 1 if you have the <sys/param.h> header file. */
|
2017-05-24 06:07:18 +08:00
|
|
|
#cmakedefine HAVE_SYS_PARAM_H 1
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <sys/resource.h> header file. */
|
|
|
|
#cmakedefine HAVE_SYS_RESOURCE_H 1
|
2012-07-11 01:41:05 +08:00
|
|
|
|
|
|
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
2017-05-24 06:07:18 +08:00
|
|
|
#cmakedefine HAVE_SYS_STAT_H 1
|
2012-07-11 01:41:05 +08:00
|
|
|
|
|
|
|
/* Define to 1 if you have the <sys/time.h> header file. */
|
2017-05-24 06:07:18 +08:00
|
|
|
#cmakedefine HAVE_SYS_TIME_H 1
|
2017-01-28 02:18:55 +08:00
|
|
|
|
2017-05-24 06:03:58 +08:00
|
|
|
/* Define to 1 if you have the <sys/types.h> header file. */
|
2017-05-24 06:07:18 +08:00
|
|
|
#cmakedefine HAVE_SYS_TYPES_H 1
|
2017-01-28 02:18:55 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* Define to 1 if the system has the type `uchar'. */
|
|
|
|
#cmakedefine HAVE_UCHAR 1
|
2017-01-28 02:18:55 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* Define to 1 if the system has the type `uint'. */
|
|
|
|
#cmakedefine HAVE_UINT 1
|
2017-01-28 02:18:55 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* Define to 1 if the system has the type `uint64'. */
|
|
|
|
#cmakedefine HAVE_UINT64 1
|
2017-01-28 02:18:55 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* Define to 1 if you have the <unistd.h> header file. */
|
|
|
|
#cmakedefine HAVE_UNISTD_H 1
|
|
|
|
#cmakedefine YY_NO_UNISTD_H 1
|
2017-01-28 02:18:55 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* Define to 1 if the system has the type `ushort'. */
|
|
|
|
#cmakedefine HAVE_USHORT 1
|
|
|
|
|
|
|
|
/* if true, H5free_memory() will be used to free hdf5-allocated memory in
|
|
|
|
nc4file. */
|
2019-04-30 06:36:08 +08:00
|
|
|
#cmakedefine HAVE_H5FREE_MEMORY 1
|
2017-05-24 06:07:18 +08:00
|
|
|
|
2019-02-22 06:37:36 +08:00
|
|
|
/* if true, H5allocate_memory() will be used. */
|
2019-04-30 06:36:08 +08:00
|
|
|
#cmakedefine HAVE_H5ALLOCATE_MEMORY 1
|
2019-02-22 05:02:46 +08:00
|
|
|
|
2019-02-22 06:37:36 +08:00
|
|
|
/* if true, H5resize_memory() will be used. */
|
2019-04-30 06:36:08 +08:00
|
|
|
#cmakedefine HAVE_H5RESIZE_MEMORY 1
|
2019-02-22 05:02:46 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* if true, hdf5 has parallelism enabled */
|
|
|
|
#cmakedefine HDF5_PARALLEL 1
|
|
|
|
|
2020-04-03 00:09:57 +08:00
|
|
|
/* if true, HDF5 is at least version 1.10. 3 and allows parallel I/O
|
|
|
|
with zip */
|
|
|
|
#cmakedefine HDF5_SUPPORTS_PAR_FILTERS 1
|
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* if true, include JNA bug fix */
|
|
|
|
#cmakedefine JNA 1
|
|
|
|
|
|
|
|
/* do large file tests */
|
|
|
|
#cmakedefine LARGE_FILE_TESTS 1
|
|
|
|
|
|
|
|
/* If true, turn on logging. */
|
|
|
|
#cmakedefine LOGGING 1
|
2017-01-28 02:18:55 +08:00
|
|
|
|
2018-07-16 20:31:44 +08:00
|
|
|
/* If true, define nc_set_log_level. */
|
|
|
|
#cmakedefine ENABLE_SET_LOG_LEVEL 1
|
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* max size of the default per-var chunk cache. */
|
|
|
|
#cmakedefine MAX_DEFAULT_CACHE_SIZE ${MAX_DEFAULT_CACHE_SIZE}
|
|
|
|
|
|
|
|
/* min blocksize for posixio. */
|
|
|
|
#cmakedefine NCIO_MINBLOCKSIZE ${NCIO_MINBLOCKSIZE}
|
|
|
|
|
2018-08-26 11:44:41 +08:00
|
|
|
/* Add extra properties to _NCProperties attribute */
|
|
|
|
#cmakedefine NCPROPERTIES_EXTRA ${NCPROPERTIES_EXTRA}
|
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* no IEEE float on this platform */
|
|
|
|
#cmakedefine NO_IEEE_FLOAT 1
|
|
|
|
|
2017-05-24 06:32:36 +08:00
|
|
|
#cmakedefine BUILD_V2 1
|
|
|
|
#cmakedefine ENABLE_DOXYGEN 1
|
|
|
|
#cmakedefine ENABLE_INTERNAL_DOCS 1
|
|
|
|
#cmakedefine VALGRIND_TESTS 1
|
|
|
|
#cmakedefine ENABLE_CDMREMOTE 1
|
|
|
|
#cmakedefine USE_HDF5 1
|
|
|
|
#cmakedefine ENABLE_FILEINFO 1
|
|
|
|
#cmakedefine TEST_PARALLEL ${TEST_PARALLEL}
|
|
|
|
#cmakedefine BUILD_RPC 1
|
|
|
|
#cmakedefine USE_X_GETOPT 1
|
|
|
|
#cmakedefine ENABLE_EXTREME_NUMBERS 1
|
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* do not build the netCDF version 2 API */
|
|
|
|
#cmakedefine NO_NETCDF_2 1
|
|
|
|
|
|
|
|
/* Name of package */
|
|
|
|
#define PACKAGE "netcdf"
|
|
|
|
|
|
|
|
/* Define to the address where bug reports for this package should be sent. */
|
|
|
|
#define PACKAGE_BUGREPORT "support-netcdf@unidata.ucar.edu"
|
|
|
|
|
|
|
|
/* Define to the full name of this package. */
|
|
|
|
#define PACKAGE_NAME "netCDF"
|
|
|
|
|
|
|
|
/* Define to the full name and version of this package. */
|
|
|
|
#define PACKAGE_STRING "netCDF ${netCDF_VERSION}"
|
|
|
|
|
|
|
|
/* Define to the one symbol short name of this package. */
|
|
|
|
#define PACKAGE_TARNAME "netcdf"
|
|
|
|
|
|
|
|
/* Define to the home page for this package. */
|
|
|
|
#define PACKAGE_URL ""
|
|
|
|
|
|
|
|
/* Define to the version of this package. */
|
|
|
|
#cmakedefine PACKAGE_VERSION "${netCDF_VERSION}"
|
|
|
|
|
|
|
|
/* The size of `ulonglong` as computed by sizeof. */
|
2017-02-02 04:27:29 +08:00
|
|
|
#cmakedefine SIZEOF_ULONGLONG @SIZEOF_ULONGLONG@
|
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* The size of `longlong` as computed by sizeof. */
|
|
|
|
#cmakedefine SIZEOF_LONGLONG @SIZEOF_LONGLONG@
|
2017-02-02 04:27:29 +08:00
|
|
|
|
2017-05-24 06:32:36 +08:00
|
|
|
/* The size of `char` as computed by sizeof. */
|
|
|
|
#cmakedefine SIZEOF_CHAR @SIZEOF_CHAR@
|
|
|
|
|
2017-05-24 06:03:58 +08:00
|
|
|
/* The size of `uchar` as computed by sizeof. */
|
|
|
|
#cmakedefine SIZEOF_UCHAR @SIZEOF_UCHAR@
|
2017-05-24 06:07:18 +08:00
|
|
|
|
2013-08-31 05:16:17 +08:00
|
|
|
/* The size of `__int64` found on Windows systems. */
|
2017-05-24 06:07:18 +08:00
|
|
|
#cmakedefine SIZEOF___INT64 ${SIZEOF___INT64}
|
2012-08-11 04:55:07 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* The size of `void*` as computed by sizeof. */
|
|
|
|
#cmakedefine SIZEOF_VOIDSTAR ${SIZEOF_VOIDSTAR}
|
2012-07-11 01:58:53 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* The size of `short` as computed by sizeof. */
|
|
|
|
#cmakedefine SIZEOF_OFF64_T ${SIZEOF_OFF64_T}
|
2012-08-11 04:55:07 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* The size of `double', as computed by sizeof. */
|
|
|
|
#cmakedefine SIZEOF_DOUBLE ${SIZEOF_DOUBLE}
|
2017-01-31 05:54:00 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* The size of `float', as computed by sizeof. */
|
|
|
|
#cmakedefine SIZEOF_FLOAT ${SIZEOF_FLOAT}
|
2017-01-28 02:18:55 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* The size of `int', as computed by sizeof. */
|
|
|
|
#cmakedefine SIZEOF_INT ${SIZEOF_INT}
|
2017-02-09 05:51:41 +08:00
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
/* The size of `long', as computed by sizeof. */
|
|
|
|
#cmakedefine SIZEOF_LONG ${SIZEOF_LONG}
|
|
|
|
|
|
|
|
/* The size of `long long', as computed by sizeof. */
|
|
|
|
#cmakedefine SIZEOF_LONG_LONG ${SIZEOF_LONG_LONG}
|
|
|
|
|
|
|
|
/* The size of `off_t', as computed by sizeof. */
|
|
|
|
#cmakedefine SIZEOF_OFF_T ${SIZEOF_OFF_T}
|
|
|
|
|
|
|
|
/* The size of `short', as computed by sizeof. */
|
|
|
|
#cmakedefine SIZEOF_SHORT ${SIZEOF_SHORT}
|
|
|
|
|
|
|
|
/* The size of `size_t', as computed by sizeof. */
|
|
|
|
#cmakedefine SIZEOF_SIZE_T ${SIZEOF_SIZE_T}
|
|
|
|
|
|
|
|
/* The size of `uint', as computed by sizeof. */
|
|
|
|
#cmakedefine SIZEOF_UINT ${SIZEOF_UINT}
|
|
|
|
|
|
|
|
/* The size of `unsigned int', as computed by sizeof. */
|
|
|
|
#cmakedefine SIZEOF_UNSIGNED_INT ${SIZEOF_UNSIGNED_INT}
|
|
|
|
|
|
|
|
/* The size of `unsigned long long', as computed by sizeof. */
|
|
|
|
#cmakedefine SIZEOF_UNSIGNED_LONG_LONG ${SIZEOF_UNSIGNED_LONG_LONG}
|
|
|
|
|
|
|
|
/* The size of `unsigned short int', as computed by sizeof. */
|
|
|
|
#cmakedefine SIZEOF_UNSIGNED_SHORT_INT ${SIZEOF_UNSIGNED_SHORT_INT}
|
|
|
|
|
|
|
|
/* The size of `ushort', as computed by sizeof. */
|
|
|
|
#cmakedefine SIZEOF_USHORT ${SIZEOF_USHORT}
|
|
|
|
|
|
|
|
/* The size of `void*', as computed by sizeof. */
|
|
|
|
#cmakedefine SIZEOF_VOIDP ${SIZEOF_VOIDP}
|
|
|
|
|
|
|
|
/* Place to put very large netCDF test files. */
|
|
|
|
#cmakedefine TEMP_LARGE "${TEMP_LARGE}"
|
|
|
|
|
|
|
|
/* if true, build DAP Client */
|
|
|
|
#cmakedefine USE_DAP 1
|
|
|
|
|
|
|
|
/* if true, include NC_DISKLESS code */
|
|
|
|
#cmakedefine USE_DISKLESS 1
|
|
|
|
|
|
|
|
/* set this to use extreme numbers in tests */
|
|
|
|
#cmakedefine USE_EXTREME_NUMBERS 1
|
|
|
|
|
|
|
|
/* if true, use ffio instead of posixio */
|
|
|
|
#cmakedefine USE_FFIO 1
|
|
|
|
|
|
|
|
/* if true, include experimental fsync code */
|
|
|
|
#cmakedefine USE_FSYNC 1
|
|
|
|
|
|
|
|
/* if true, use HDF4 too */
|
|
|
|
#cmakedefine USE_HDF4 1
|
|
|
|
|
|
|
|
/* If true, use use wget to fetch some sample HDF4 data, and then test against
|
|
|
|
it. */
|
|
|
|
//#cmakedefine USE_HDF4_FILE_TESTS 1
|
|
|
|
|
|
|
|
/* if true, use mmap for in-memory files */
|
|
|
|
#cmakedefine USE_MMAP 1
|
|
|
|
|
|
|
|
/* if true, build netCDF-4 */
|
|
|
|
#cmakedefine USE_NETCDF4 1
|
|
|
|
|
|
|
|
/* build the netCDF version 2 API */
|
|
|
|
#cmakedefine USE_NETCDF_2 1
|
|
|
|
|
|
|
|
/* if true, pnetcdf or parallel netcdf-4 is in use */
|
|
|
|
#cmakedefine USE_PARALLEL 1
|
|
|
|
|
|
|
|
/* if true, parallel netcdf-4 is in use */
|
|
|
|
#cmakedefine USE_PARALLEL4 1
|
|
|
|
|
|
|
|
/* if true, parallel netCDF is used */
|
|
|
|
#cmakedefine USE_PNETCDF 1
|
|
|
|
|
|
|
|
/* if true, use stdio instead of posixio */
|
|
|
|
#cmakedefine USE_STDIO 1
|
|
|
|
|
|
|
|
/* if true, compile in szip compression in netCDF-4 variables */
|
|
|
|
#cmakedefine USE_SZIP 1
|
|
|
|
|
|
|
|
/* Version number of package */
|
|
|
|
#cmakedefine VERSION "${netCDF_VERSION}"
|
|
|
|
|
|
|
|
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
|
|
|
significant byte first (like Motorola and SPARC, unlike Intel). */
|
|
|
|
#if defined AC_APPLE_UNIVERSAL_BUILD
|
|
|
|
# if defined __BIG_ENDIAN__
|
|
|
|
# define WORDS_BIGENDIAN 1
|
|
|
|
# endif
|
|
|
|
#else
|
|
|
|
# ifndef WORDS_BIGENDIAN
|
|
|
|
#cmakedefine WORDS_BIGENDIAN
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Enable large inode numbers on Mac OS X 10.5. */
|
|
|
|
#ifndef _DARWIN_USE_64_BIT_INODE
|
|
|
|
# define _DARWIN_USE_64_BIT_INODE 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Define for large files, on AIX-style hosts. */
|
|
|
|
#cmakedefine _LARGE_FILES ${_LARGE_FILES}
|
|
|
|
|
|
|
|
/* Define to `long int' if <sys/types.h> does not define. */
|
|
|
|
#cmakedefine off_t long int
|
|
|
|
|
|
|
|
/* Define to `unsigned int' if <sys/types.h> does not define. */
|
|
|
|
#cmakedefine size_t unsigned int
|
|
|
|
|
2018-02-25 11:36:24 +08:00
|
|
|
/* Define to `int' if <sys/types.h> does not define. */
|
|
|
|
#cmakedefine ssize_t int
|
|
|
|
|
2018-02-09 10:53:40 +08:00
|
|
|
/* Define to `unsigned long if <sys/types.h> does not define. */
|
|
|
|
#cmakedefine uintptr_t unsigned long
|
|
|
|
|
2020-05-14 21:20:57 +08:00
|
|
|
/* Define strcasecmp, strncasecmp, snprintf on Win32 systems. */
|
2017-05-24 06:07:18 +08:00
|
|
|
#ifdef _WIN32
|
|
|
|
#ifndef HAVE_STRCASECMP
|
|
|
|
#define strcasecmp _stricmp
|
|
|
|
#endif
|
|
|
|
|
2020-05-14 21:20:57 +08:00
|
|
|
#ifndef HAVE_STRNCASECMP
|
|
|
|
#define strncasecmp _strnicmp
|
|
|
|
#endif
|
|
|
|
|
2017-05-24 06:07:18 +08:00
|
|
|
#ifndef HAVE_SNPRINTF
|
|
|
|
#define snprintf _snprintf
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#cmakedefine WORDS_BIGENDIAN
|
|
|
|
|
|
|
|
#include "ncconfigure.h"
|
2017-02-01 01:59:03 +08:00
|
|
|
|
|
|
|
#endif
|