Much nicer handling of compile-time features

- *_SUPPORT enabled in config.h
- XLIBS helper app prints lib flags needed for current settings
This commit is contained in:
Bert
2011-09-12 19:28:02 +02:00
parent 32a65201bb
commit dad06c7561
8 changed files with 76 additions and 60 deletions

View File

@@ -17,6 +17,7 @@
*/
#define _POSIX_C_SOURCE 200112L
#define _FEATURE_CONFIG
#define _IMAGE_CONFIG
#include <stdlib.h>
@@ -39,12 +40,12 @@ void print_usage() {
void print_version() {
printf("sxiv %s - Simple X Image Viewer\n", VERSION);
printf("Additional features included (+) or not (-): %s, %s\n",
#ifdef EXIF_SUPPORT
#if EXIF_SUPPORT
"+exif",
#else
"-exif",
#endif
#ifdef GIF_SUPPORT
#if GIF_SUPPORT
"+gif"
#else
"-gif"