ENH: Adding symbols from traditional checks.

NOTE: the LCMS may still require CMake code for detecting the
     prescence of the library, of the use of CMake options for letting
     the user choose based on her preference.
This commit is contained in:
Luis Ibanez 2010-09-05 21:34:07 +00:00
parent 2cea89dc7d
commit e80d147957
1 changed files with 49 additions and 0 deletions

View File

@ -43,4 +43,53 @@
#define OPJ_STATIC
#endif
/*
* The @HAVE_INCLUDE_H@ gets replaced with "1" or "", this define is
* to remap these values to 0 and 1
*/
#define OPENJPEG_CMAKEDEFINE_VAR_1 1
#define OPENJPEG_CMAKEDEFINE_VAR_ 0
/*
* Check Include files defines. We use the CMake standard names in the
* cmake files to reduce extra calls for checking header, but then
* conditionally defined them here with an OPENJPEG_ prefix to prevent
* collisions and re defined warnings.
*/
#if OPENJPEG_CMAKEDEFINE_VAR_@HAVE_FENV_H@
# define OPENJPEG_HAVE_FENV_H
#endif /* HAVE_FENV_H */
#if OPENJPEG_CMAKEDEFINE_VAR_@HAVE_SYS_TYPES_H@
# define OPENJPEG_HAVE_SYS_TYPES_H
#endif /* HAVE_SYS_TYPES_H */
#if OPENJPEG_CMAKEDEFINE_VAR_@HAVE_STDINT_H@
# define OPENJPEG_HAVE_STDINT_H
#endif /* HAVE_STDINT_H */
#if OPENJPEG_CMAKEDEFINE_VAR_@HAVE_STDDEF_H@
# define OPENJPEG_HAVE_STDDEF_H
#endif /* HAVE_STDDEF_H */
#if OPENJPEG_CMAKEDEFINE_VAR_@HAVE_UNISTD_H@
# define OPENJPEG_HAVE_UNISTD_H
#endif /* HAVE_UNISTD_H */
#if OPENJPEG_CMAKEDEFINE_VAR_@HAVE_LIBLCMS1@
# define OPENJPEG_HAVE_LIBLCMS1
#endif /* HAVE_LIBLCMS1 */
#if OPENJPEG_CMAKEDEFINE_VAR_@HAVE_LIBLCMS2@
# define OPENJPEG_HAVE_LIBLCMS2
#endif /* HAVE_LIBLCMS2 */
#if OPENJPEG_CMAKEDEFINE_VAR_@HAVE_LIBPNG@
# define OPENJPEG_HAVE_LIBPNG
#endif /* HAVE_LIBPNG */
#undef OPENJPEG_CMAKEDEFINE_VAR_1
#undef OPENJPEG_CMAKEDEFINE_VAR_
#endif