2012-12-06 02:35:42 +08:00
|
|
|
#ifndef CONFIG_H
|
|
|
|
#define CONFIG_H
|
|
|
|
#define HAVE_CONFIG_H
|
|
|
|
|
2012-09-05 06:10:32 +08:00
|
|
|
/* Eliminate a number of warnings which come up based on deprecated
|
|
|
|
POSIX naming conventions. */
|
|
|
|
#ifdef _MSC_VER
|
2012-09-11 05:19:57 +08:00
|
|
|
/* Disable a few warnings under Visual Studio, for the
|
|
|
|
time being. */
|
2012-12-06 02:35:42 +08:00
|
|
|
#include <io.h>
|
2012-09-21 05:18:20 +08:00
|
|
|
#pragma warning( disable: 4018 4996 4244 4305 )
|
2012-09-05 06:10:32 +08:00
|
|
|
#define unlink _unlink
|
|
|
|
#define open _open
|
|
|
|
#define close _close
|
|
|
|
#define read _read
|
2012-12-06 06:06:38 +08:00
|
|
|
|
2012-12-06 02:35:42 +08:00
|
|
|
#ifdef _WIN64
|
|
|
|
#define lseek _lseeki64
|
|
|
|
#else
|
|
|
|
#define lseek _lseek
|
|
|
|
#endif
|
|
|
|
|
2013-04-03 06:09:31 +08:00
|
|
|
#ifdef _WIN32
|
|
|
|
#ifndef strcasecmp
|
|
|
|
#define strcasecmp _stricmp
|
|
|
|
#define snprintf _snprintf
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2012-09-05 06:10:32 +08:00
|
|
|
#define strdup _strdup
|
|
|
|
#define fdopen _fdopen
|
|
|
|
#define write _write
|
2012-09-11 05:19:57 +08:00
|
|
|
#define snprintf _snprintf
|
2012-09-21 00:31:31 +08:00
|
|
|
#define strtoll _strtoi64
|
2012-09-05 06:10:32 +08:00
|
|
|
#endif
|
|
|
|
|
2012-12-06 06:06:38 +08:00
|
|
|
|
2012-07-18 04:50:43 +08:00
|
|
|
/* Cache Size, other variables for HDF5 */
|
|
|
|
#define DEFAULT_CHUNK_SIZE ${DEFAULT_CHUNK_SIZE}
|
|
|
|
#define DEFAULT_CHUNKS_IN_CACHE ${DEFAULT_CHUNKS_IN_CACHE}
|
|
|
|
#define CHUNK_CACHE_SIZE ${CHUNK_CACHE_SIZE}
|
|
|
|
#define CHUNK_CACHE_NELEMS ${CHUNK_CACHE_NELEMS}
|
|
|
|
#define CHUNK_CACHE_PREEMPTION ${CHUNK_CACHE_PREEMPTION}
|
|
|
|
#define MAX_DEFAULT_CACHE_SIZE ${MAX_DEFAULT_CACHE_SIZE}
|
2012-08-25 02:24:58 +08:00
|
|
|
#define NCIO_MINBLOCKSIZE ${NCIO_MINBLOCKSIZE}
|
2012-07-18 04:50:43 +08:00
|
|
|
|
2012-12-21 05:50:45 +08:00
|
|
|
#ifndef _FILE_OFFSET_BITS
|
|
|
|
#cmakedefine _FILE_OFFSET_BITS ${_FILE_OFFSET_BITS}
|
|
|
|
#cmakedefine _LARGEFILE64_SOURCE
|
|
|
|
#cmakedefine _LARGEFILE_SOURCE
|
|
|
|
#endif
|
|
|
|
|
2012-12-06 02:35:42 +08:00
|
|
|
#define PACKAGE_VERSION "${VERSION}"
|
2013-04-30 04:15:57 +08:00
|
|
|
#cmakedefine VERSION "${VERSION}"
|
|
|
|
#cmakedefine NC_VERSION "${VERSION}"
|
2012-07-18 04:50:43 +08:00
|
|
|
/* For HDF5 use. */
|
|
|
|
#cmakedefine H5_USE_16_API 1
|
|
|
|
|
|
|
|
/* Enable Logging, only valid for netcdf 4. */
|
|
|
|
#cmakedefine LOGGING 1
|
|
|
|
|
2012-07-24 03:40:08 +08:00
|
|
|
/* Various other options. */
|
2012-08-04 06:24:29 +08:00
|
|
|
#cmakedefine BUILD_V2 1
|
2012-07-24 03:40:08 +08:00
|
|
|
#cmakedefine USE_FSYNC 1
|
|
|
|
#cmakedefine ENABLE_DOXYGEN 1
|
|
|
|
#cmakedefine ENABLE_INTERNAL_DOCS 1
|
|
|
|
#cmakedefine VALGRIND_TESTS 1
|
|
|
|
#cmakedefine ENABLE_CDMREMOTE 1
|
2012-08-22 04:08:53 +08:00
|
|
|
#cmakedefine USE_DAP 1
|
2012-08-11 04:55:07 +08:00
|
|
|
#cmakedefine ENABLE_DAP 1
|
|
|
|
#cmakedefine ENABLE_DAP_GROUPS 1
|
|
|
|
#cmakedefine ENABLE_DAP_REMOTE_TESTS 1
|
|
|
|
#cmakedefine EXTRA_TESTS
|
2012-07-26 06:09:19 +08:00
|
|
|
#cmakedefine USE_NETCDF4 1
|
|
|
|
#cmakedefine USE_HDF4 1
|
|
|
|
#cmakedefine USE_HDF5 1
|
|
|
|
#cmakedefine USE_FFIO 1
|
|
|
|
#cmakedefine USE_PARALLEL_POSIX 1
|
|
|
|
#cmakedefine USE_PARALLEL_MPIO 1
|
|
|
|
#cmakedefine USE_PARALLEL 1
|
|
|
|
#cmakedefine USE_PNETCDF 1
|
2013-02-15 04:24:02 +08:00
|
|
|
#cmakedefine USE_MMAP 1
|
2013-02-13 06:22:54 +08:00
|
|
|
#cmakedefine TEST_PARALLEL ${TEST_PARALLEL}
|
2012-08-25 02:24:58 +08:00
|
|
|
#cmakedefine BUILD_RPC 1
|
2013-02-13 06:22:54 +08:00
|
|
|
#cmakedefine USE_DISKLESS 1
|
2012-08-25 02:24:58 +08:00
|
|
|
#cmakedefine USE_SZIP 1
|
|
|
|
#cmakedefine USE_ZLIB 1
|
2012-09-14 04:41:54 +08:00
|
|
|
#cmakedefine USE_X_GETOPT 1
|
2013-02-13 06:22:54 +08:00
|
|
|
#cmakedefine LARGE_FILE_TESTS 1
|
2012-08-11 04:55:07 +08:00
|
|
|
#cmakedefine HAVE_CURLOPT_KEYPASSWD
|
|
|
|
#cmakedefine HAVE_DECL_ISFINITE 1
|
2012-09-12 04:17:24 +08:00
|
|
|
#cmakedefine HAVE_DECL_ISNAN
|
2012-08-11 04:55:07 +08:00
|
|
|
#cmakedefine HAVE_DECL_SIGNBIT 1
|
|
|
|
#cmakedefine HAVE_DOPRNT
|
2013-03-28 03:15:00 +08:00
|
|
|
#cmakedefine HAVE_ALLOCA
|
2013-05-23 00:30:54 +08:00
|
|
|
#cmakedefine HAVE_SSIZE_T 1
|
2013-02-13 06:22:54 +08:00
|
|
|
#cmakedefine HAVE_LIBPNETCDF
|
2012-08-11 04:55:07 +08:00
|
|
|
|
2012-07-11 01:41:05 +08:00
|
|
|
/* Define to 1 if you have the <alloca.h> header file. */
|
|
|
|
#cmakedefine HAVE_ALLOCA_H @HAVE_ALLOCA_H@
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <ctype.h> header file. */
|
|
|
|
#cmakedefine HAVE_CTYPE_H @HAVE_CTYPE_H@
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <dirent> header file. */
|
|
|
|
#cmakedefine HAVE_DIRENT_H @HAVE_DIRENT_H@
|
|
|
|
|
2012-08-28 05:19:25 +08:00
|
|
|
/* Define to 1 if you have the <unistd.h> header file. */
|
|
|
|
#cmakedefine HAVE_UNISTD_H @HAVE_UNISTD_H@
|
2013-01-16 06:43:09 +08:00
|
|
|
#cmakedefine YY_NO_UNISTD_H @YY_NO_UNISTD_H@
|
2012-08-28 05:19:25 +08:00
|
|
|
|
2013-03-28 03:15:00 +08:00
|
|
|
/* Define to 1 if you have the <dlfcn.h> header file. */
|
2012-07-11 01:41:05 +08:00
|
|
|
#cmakedefine HAVE_DLFCN_H @HAVE_DLFCN_H@
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <errno.h> header file. */
|
|
|
|
#cmakedefine HAVE_ERRNO_H @HAVE_ERRNO_H@
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <fcntl.h> header file. */
|
|
|
|
#cmakedefine HAVE_FCNTL_H @HAVE_FCNTL_H@
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <getopt.h> header file. */
|
|
|
|
#cmakedefine HAVE_GETOPT_H @HAVE_GETOPT_H@
|
|
|
|
|
2012-12-21 05:50:45 +08:00
|
|
|
/* Define to 1 if you have the <stdarg.h> header file. */
|
|
|
|
#cmakedefine HAVE_STDARG_H @HAVE_STDARG_H@
|
|
|
|
|
2012-07-11 01:41:05 +08:00
|
|
|
/* Define to 1 if you have the <hdf5.h> header file. */
|
|
|
|
#cmakedefine HAVE_HDF5_H @HAVE_HDF5_H@
|
|
|
|
|
2012-07-18 04:50:43 +08:00
|
|
|
/* Define to 1 if you have the <hdf5_hl.h> header file. */
|
|
|
|
#cmakedefine HAVE_HDF5_HL_H @HAVE_HDF5_HL_H@
|
|
|
|
|
2012-07-11 01:58:53 +08:00
|
|
|
/* Define to 1 if you have the <stdbool.h> header file. */
|
|
|
|
#cmakedefine HAVE_STDBOOL_H @HAVE_STDBOOL_H@
|
|
|
|
|
2012-07-11 01:41:05 +08:00
|
|
|
/* Define to 1 if you have the <locale.h> header file. */
|
|
|
|
#cmakedefine HAVE_LOCAL_H @HAVE_LOCAL_H@
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <stdint.h> header file. */
|
2013-03-28 03:15:00 +08:00
|
|
|
#cmakedefine HAVE_STDINT_H @HAVE_STDINT_H@
|
2012-07-11 01:41:05 +08:00
|
|
|
|
|
|
|
/* Define to 1 if you have the <stdio.h> header file. */
|
|
|
|
#cmakedefine HAVE_STDIO_H @HAVE_STDIO_H@
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
|
|
|
#cmakedefine HAVE_STDLIB_H @HAVE_STDLIB_H@
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <strings.h> header file. */
|
|
|
|
#cmakedefine HAVE_STRINGS_H @HAVE_STRINGS_H@
|
|
|
|
|
2012-09-15 00:15:18 +08:00
|
|
|
/* Define to 1 if you have the <signal.h> header file. */
|
|
|
|
#cmakedefine HAVE_SIGNAL_H @HAVE_SIGNAL_H@
|
|
|
|
|
2012-07-11 01:41:05 +08:00
|
|
|
/* Define to 1 if you have the <sys/dir.h> header file. */
|
|
|
|
#cmakedefine HAVE_SYS_DIR_H @HAVE_SYS_DIR_H@
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <sys/ndir.h> header file. */
|
|
|
|
#cmakedefine HAVE_SYS_NDIR_H @HAVE_SYS_NDIR_H@
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <sys/param.h> header file. */
|
|
|
|
#cmakedefine HAVE_SYS_PARAM_H @HAVE_SYS_PARAM_H@
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
|
|
|
#cmakedefine HAVE_SYS_STAT_H @HAVE_SYS_STAT_H@
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <sys/time.h> header file. */
|
|
|
|
#cmakedefine HAVE_SYS_TIME_H @HAVE_SYS_TIME_H@
|
|
|
|
|
2012-07-21 01:53:53 +08:00
|
|
|
/* Define to 1 if you have the <sys/resource.h> header file. */
|
|
|
|
#cmakedefine HAVE_SYS_RESOURCE_H @HAVE_SYS_RESOURCE_H@
|
|
|
|
|
2012-07-11 01:41:05 +08:00
|
|
|
/* Define to 1 if you have the <sys/types.h> header file. */
|
|
|
|
#cmakedefine HAVE_SYS_TYPES_H @HAVE_SYS_TYPES_H@
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <sys/wait.h> header file. */
|
|
|
|
#cmakedefine HAVE_SYS_WAIT_H @HAVE_SYS_WAIT_H@
|
|
|
|
|
2012-07-18 04:50:43 +08:00
|
|
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
|
|
|
#cmakedefine HAVE_INTTYPES_H @HAVE_INTTYPES_H@
|
|
|
|
|
2012-07-21 01:53:53 +08:00
|
|
|
/* Define to 1 if you have the <fcntl.h> header file. */
|
|
|
|
#cmakedefine HAVE_FCNTL_H @HAVE_FCNTL_H@
|
|
|
|
|
2013-03-28 03:15:00 +08:00
|
|
|
/* Define to 1 if you have the <malloc.h> header file. */
|
|
|
|
#cmakedefine HAVE_MALLOC_H @HAVE_MALLOC_H@
|
|
|
|
|
2013-04-03 06:09:31 +08:00
|
|
|
/* Define to 1 if you have the BaseTsd.h header file. */
|
|
|
|
#cmakedefine HAVE_BASETSD_H @HAVE_BASETSD_H@
|
|
|
|
|
2012-07-11 01:41:05 +08:00
|
|
|
/* The size of `double` as computed by sizeof. */
|
|
|
|
#cmakedefine SIZEOF_DOUBLE @SIZEOF_DOUBLE@
|
|
|
|
/* The size of `float` as computed by sizeof. */
|
|
|
|
#cmakedefine SIZEOF_FLOAT @SIZEOF_FLOAT@
|
|
|
|
/* The size of `int` as computed by sizeof. */
|
|
|
|
#cmakedefine SIZEOF_INT @SIZEOF_INT@
|
|
|
|
/* 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. */
|
2012-12-21 05:50:45 +08:00
|
|
|
#cmakedefine SIZEOF_OFF64_T @SIZEOF_OFF64_T@
|
2012-07-11 01:41:05 +08:00
|
|
|
#cmakedefine SIZEOF_SHORT @SIZEOF_SHORT@
|
|
|
|
/* The size of `size_t` as computed by sizeof. */
|
|
|
|
#cmakedefine SIZEOF_SIZE_T @SIZEOF_SIZE_T@
|
2013-04-03 06:09:31 +08:00
|
|
|
/* The size of `ssize_t` as computed by sizeof. */
|
|
|
|
#cmakedefine SIZEOF_SSIZE_T @SIZEOF_SSIZE_T@
|
2012-07-11 01:41:05 +08:00
|
|
|
/* The size of `uchar` as computed by sizeof. */
|
|
|
|
#cmakedefine SIZEOF_UCHAR @SIZEOF_UCHAR@
|
2013-04-03 06:09:31 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-11 01:41:05 +08:00
|
|
|
|
2013-02-13 06:22:54 +08:00
|
|
|
#cmakedefine TEMP_LARGE "@TEMP_LARGE@"
|
|
|
|
|
2012-07-20 06:11:10 +08:00
|
|
|
/* Set if we have strdup */
|
|
|
|
#cmakedefine HAVE_STRDUP
|
|
|
|
#cmakedefine HAVE_STRLCAT
|
|
|
|
#cmakedefine HAVE_STRERROR
|
|
|
|
#cmakedefine HAVE_SNPRINTF
|
|
|
|
#cmakedefine HAVE_STRCHR
|
|
|
|
#cmakedefine HAVE_STRRCHR
|
|
|
|
#cmakedefine HAVE_STRCAT
|
|
|
|
#cmakedefine HAVE_STRCPY
|
|
|
|
#cmakedefine HAVE_STRDUP
|
|
|
|
#cmakedefine HAVE_STRCASECMP
|
|
|
|
#cmakedefine HAVE_STRTOD
|
|
|
|
#cmakedefine HAVE_STRTOLL
|
|
|
|
#cmakedefine HAVE_STROULL
|
|
|
|
#cmakedefine HAVE_STRSTR
|
|
|
|
#cmakedefine HAVE_MKSTEMP
|
|
|
|
#cmakedefine HAVE_RAND
|
|
|
|
#cmakedefine HAVE_GETTIMEOFDAY
|
|
|
|
#cmakedefine HAVE_MPI_COMM_F2C
|
|
|
|
#cmakedefine HAVE_MEMMOVE
|
2013-02-15 04:24:02 +08:00
|
|
|
#cmakedefine HAVE_MMAP
|
2012-07-20 06:11:10 +08:00
|
|
|
#cmakedefine HAVE_GETPAGESIZE
|
|
|
|
#cmakedefine HAVE_SYSCONF
|
|
|
|
#cmakedefine HAVE_MREMAP
|
2012-09-12 03:53:47 +08:00
|
|
|
#cmakedefine HAVE_DECL_ISINF
|
2012-09-12 04:17:24 +08:00
|
|
|
|
2012-09-07 06:48:22 +08:00
|
|
|
|
|
|
|
/* Some linux systems have getrlimit, but
|
|
|
|
no definition of RLIM_INFINITY */
|
2012-09-08 00:38:03 +08:00
|
|
|
//#cmakedefine HAVE_RLIM_INFINITY
|
|
|
|
//#ifdef HAVE_RLIM_INFINITY
|
2012-09-07 06:48:22 +08:00
|
|
|
#cmakedefine HAVE_GETRLIMIT
|
2012-09-08 00:38:03 +08:00
|
|
|
//#else
|
|
|
|
// #undef HAVE_GETRLIMIT
|
|
|
|
//#endif
|
2012-07-24 03:40:08 +08:00
|
|
|
#cmakedefine HAVE_FSYNC
|
|
|
|
|
2012-08-11 04:55:07 +08:00
|
|
|
#cmakedefine HAVE_H5PGET_FAPL_MPIPOSIX 1
|
|
|
|
#cmakedefine HAVE_H5PSET_DEFLATE
|
|
|
|
#cmakedefine HAVE_H5Z_SZIP
|
|
|
|
|
|
|
|
|
2012-07-24 03:40:08 +08:00
|
|
|
/* Specifies if various libraries are present. */
|
|
|
|
#cmakedefine HAVE_LIBM 1
|
2012-07-20 06:11:10 +08:00
|
|
|
|
2012-07-17 06:31:35 +08:00
|
|
|
/* Define to 1 if the system has the type `uchar'.*/
|
2012-07-17 06:40:33 +08:00
|
|
|
#cmakedefine HAVE_UCHAR
|
2012-07-11 01:58:53 +08:00
|
|
|
|
2012-08-11 04:55:07 +08:00
|
|
|
/* Misc defines copied from autotools config.h.in */
|
|
|
|
#cmakedefine CRAY_STACKSEG_END
|
|
|
|
#cmakedefine DLL_EXPORT
|
2012-09-25 04:48:12 +08:00
|
|
|
#cmakedefine DLL_NETCDF
|
2012-08-11 04:55:07 +08:00
|
|
|
|
2012-07-17 06:31:35 +08:00
|
|
|
#include <ncconfigure.h>
|
2012-07-11 01:41:05 +08:00
|
|
|
#endif
|