#ifndef _MGL_CONFIG_H_
#define _MGL_CONFIG_H_

//#define MGL_VER2 	${MathGL_VERSION_MINOR}.${MathGL_PATCH_VERSION}	// minor version of MathGL 2.* (like 1.3 for v.2.1.3)
#define MGL_VER_MAJOR 	${MathGL_VERSION_MAJOR}
#define MGL_VER_MINOR 	${MathGL_VERSION_MINOR}
#define MGL_VER_PATCH 	${MathGL_PATCH_VERSION}
#define MGL_VERSION 	(${MathGL_VERSION_MAJOR}000+${MathGL_VERSION_MINOR}.${MathGL_PATCH_VERSION})
#define MGL_VER_STRING 	"${MathGL_VERSION_MAJOR}.${MathGL_VERSION_MINOR}.${MathGL_PATCH_VERSION}"

#define MGL_USE_DOUBLE	${MGL_USE_DOUBLE}

#ifdef WIN32	// a man ask to use built-in font under Windows
#define MGL_DEF_FONT_NAME	""
#else
#define MGL_DEF_FONT_NAME	"${MGL_DEF_FONT}"
#endif
#define MGL_INSTALL_DIR	"${CMAKE_INSTALL_PREFIX}"

#if defined(_MSC_VER) || defined(__BORLANDC__)
#define MGL_SYS_NAN		0
#define MGL_HAVE_PTHREAD	0
#define MGL_HAVE_PTHR_WIDGET	0
#define MGL_HAVE_ATTRIBUTE	0
#define MGL_HAVE_C99_COMPLEX	0
#else
#define MGL_SYS_NAN			${MGL_HAVE_NAN_INF}
#define MGL_HAVE_PTHREAD	${MGL_HAVE_PTHREAD}
#define MGL_HAVE_PTHR_WIDGET	${MGL_HAVE_PTHR_WIDGET}
#define MGL_HAVE_ATTRIBUTE	${MGL_HAVE_ATTRIBUTE}
#define MGL_HAVE_C99_COMPLEX	${MGL_HAVE_C99_COMPLEX}
#endif

#define MGL_SIZEOF_LONG	${SIZEOF_LONG}
#define MGL_HAVE_FREETYPE	${MGL_HAVE_FREETYPE}
#define MGL_HAVE_LTDL	${MGL_HAVE_LTDL}
#define MGL_HAVE_RVAL	${MGL_HAVE_RVAL}
#define MGL_HAVE_ZLIB	${MGL_HAVE_ZLIB}
#define MGL_HAVE_PNG	${MGL_HAVE_PNG}
#define MGL_HAVE_GSL	${MGL_HAVE_GSL}
#define MGL_HAVE_OPENGL	${MGL_HAVE_OPENGL}
#define MGL_HAVE_ARMA	${MGL_HAVE_ARMA}
#define MGL_HAVE_OMP	${MGL_HAVE_OMP}
#define MGL_HAVE_JPEG	${MGL_HAVE_JPEG}
#define MGL_HAVE_GIF	${MGL_HAVE_GIF}
#define MGL_HAVE_PDF	${MGL_HAVE_PDF}
#define MGL_HAVE_HDF4	${MGL_HAVE_HDF4}
#define MGL_HAVE_HDF5	${MGL_HAVE_HDF5}
#define MGL_HDF5_VER_MAJOR	${HDF_VERSION_MAJOR}
#define MGL_HDF5_VER_MINOR	${HDF_VERSION_MINOR}
#define MGL_USE_GETTEXT	${MGL_USE_LIBINTL}
#define MGL_FONT_PATH	"${MGL_FONT_PATH}"
#define MGL_HAVE_FL_COPY	${MGL_HAVE_FL_COPY}

#endif
