/** \file * * \author Copyright 2002 Hans Ulrich Niedermann #include const char **gp_library_version(GPVersionVerbosity verbose) { /* we could also compute/parse the short strings from the long ones, but the current method is easier for now :-) */ static const char *shrt[] = { PACKAGE_VERSION, #ifdef GP_CAMLIB_SET_IS_NONSTANDARD "NON-STANDARD CAMLIB SET" " (" GP_CAMLIB_SET #ifdef GP_CAMLIB_SET_SKIPPING " SKIPPING " GP_CAMLIB_SET_SKIPPING #endif ")", #else "standard camlibs" #ifdef GP_CAMLIB_SET_SKIPPING " (SKIPPING " GP_CAMLIB_SET_SKIPPING ")" #endif , #endif #ifdef HAVE_CC HAVE_CC, #else "unknown cc", #endif #ifdef HAVE_LTDL "ltdl", #else "no ltdl", #endif #ifdef HAVE_LIBEXIF "EXIF", #else "no EXIF", #endif NULL }; static const char *verb[] = { PACKAGE_VERSION, #ifdef GP_CAMLIB_SET_IS_NONSTANDARD "NON-STANDARD CAMLIB SET" #ifdef GP_CAMLIB_SET_SKIPPING " SKIPPING SOME" #endif " (" GP_CAMLIB_SET #ifdef GP_CAMLIB_SET_SKIPPING " SKIPPING " GP_CAMLIB_SET_SKIPPING #endif ")", #else "standard camlib set" #ifdef GP_CAMLIB_SET_SKIPPING " SKIPPING SOME" #endif " (" GP_CAMLIB_SET #ifdef GP_CAMLIB_SET_SKIPPING " SKIPPING " GP_CAMLIB_SET_SKIPPING #endif ")", #endif #ifdef HAVE_CC HAVE_CC " (C compiler used)", #else "unknown (C compiler used)", #endif #ifdef HAVE_LTDL "ltdl (for portable loading of camlibs)", #else "no ltdl (for portable loading of camlibs)", #endif #ifdef HAVE_LIBEXIF "EXIF (for special handling of EXIF files)", #else "no EXIF (for special handling of EXIF files)", #endif NULL }; return((verbose == GP_VERSION_VERBOSE)?verb:shrt); } /* * Local Variables: * c-file-style:"linux" * indent-tabs-mode:t * End: */