#ifndef JAS_CONFIG_H
#define JAS_CONFIG_H

#cmakedefine JAS_DLL 1

#include <jasper/jas_compiler.h>
#include <jasper/jas_dll.h>

/* This preprocessor symbol identifies the version of JasPer. */
#define	JAS_VERSION "@JAS_VERSION@"
#define JAS_VERSION_MAJOR @JAS_VERSION_MAJOR@
#define JAS_VERSION_MINOR @JAS_VERSION_MINOR@
#define JAS_VERSION_PATCH @JAS_VERSION_PATCH@

#cmakedefine JAS_ENABLE_32BIT 1

#cmakedefine JAS_HAVE_FCNTL_H 1
#cmakedefine JAS_HAVE_IO_H 1
#cmakedefine JAS_HAVE_UNISTD_H 1
#cmakedefine JAS_HAVE_SYS_TIME_H 1
#cmakedefine JAS_HAVE_SYS_TYPES_H 1

#cmakedefine JAS_HAVE_MKOSTEMP 1
#cmakedefine JAS_HAVE_GETTIMEOFDAY 1
#cmakedefine JAS_HAVE_GETRUSAGE 1

#cmakedefine JAS_HAVE_GL_GLUT_H 1
#cmakedefine JAS_HAVE_GLUT_H 1

#cmakedefine JAS_INCLUDE_PNM_CODEC 1
#cmakedefine JAS_INCLUDE_BMP_CODEC 1
#cmakedefine JAS_INCLUDE_RAS_CODEC 1
#cmakedefine JAS_INCLUDE_JP2_CODEC 1
#cmakedefine JAS_INCLUDE_JPC_CODEC 1
#cmakedefine JAS_INCLUDE_JPG_CODEC 1
#cmakedefine JAS_INCLUDE_PGX_CODEC 1
#cmakedefine JAS_INCLUDE_MIF_CODEC 1
#cmakedefine JAS_ENABLE_DANGEROUS_INTERNAL_TESTING_MODE 1

#if defined(JAS_ENABLE_DANGEROUS_INTERNAL_TESTING_MODE)
#define JAS_ENABLE_MIF_CODEC 1
#else
#undef JAS_ENABLE_MIF_CODEC
#endif

/*
#if defined(JAS_INCLUDE_JP2_CODEC) && !defined(JAS_INCLUDE_JPC_CODEC)
#undef JAS_INCLUDE_JPC_CODEC
#endif
*/

#ifdef _MSC_VER
#undef JAS_HAVE_SNPRINTF
#else
#define JAS_HAVE_SNPRINTF 1
#endif

#if !defined(JAS_DEC_DEFAULT_MAX_SAMPLES)
#define JAS_DEC_DEFAULT_MAX_SAMPLES (64 * ((size_t) 1048576))
#endif

#endif
