/*
 * Compile-time config settings.  This gets processed by cmake into the
 * file that's actually used.
 */


/*
 * Defined paths etc
 */
#define SYSTEM_INIT_FILE "@ETCDIR@/system.ctwmrc"
#define PIXMAP_DIRECTORY "@PIXMAPDIR@"


/*
 * Various on/off configs
 */

/* Using XPM? */
#cmakedefine USE_XPM
#ifdef USE_XPM
# define XPM
#endif

/* libjpeg */
#cmakedefine USE_JPEG
#ifdef USE_JPEG
# define JPEG
#endif

/* m4 preprocessing of config */
#cmakedefine USE_M4
#ifdef USE_M4
# define USEM4
# define M4CMD "@M4_CMD@"
#endif

/* rplay? */
#cmakedefine USE_SOUND
#ifdef USE_SOUND
# define SOUNDS
#endif

/* How about EWMH properties */
#cmakedefine USE_EWMH
#ifdef USE_EWMH
# define EWMH
#endif

/* Does libc provide regex funcs we use? */
#cmakedefine USE_SREGEX
#ifdef USE_SREGEX
# define USE_SYS_REGEX
#endif

/* We need _GNU_SOURCE with glibc to get some bits */
#cmakedefine USE_GNU_SOURCE
#ifdef USE_GNU_SOURCE
# define _GNU_SOURCE
#endif

/*
 * Support for glibc features.h.  When building with -std=c99, glibc
 * defines __STRICT_ANSI__ which blocks out a lot of POSIX defines unless
 * we ask for them more explicitly.
 */
#cmakedefine USE_GLIBC_FEATURES_H
#ifdef USE_GLIBC_FEATURES_H
# undef  _POSIX_C_SOURCE
# define _POSIX_C_SOURCE 200809L
# undef  _XOPEN_SOURCE
# define _XOPEN_SOURCE 700
# include <features.h>
#endif
