diff options
-rw-r--r-- | Makefile.am | 8 | ||||
-rw-r--r-- | RenderLogo.c | 4 | ||||
-rw-r--r-- | configure.ac | 1 |
3 files changed, 10 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index fa8729e..51bd1dd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -27,11 +27,15 @@ xlogo_SOURCES = \ Logo.c \ Logo.h \ LogoP.h \ - RenderLogo.c \ - RenderLogo.h \ xlogo.c \ xlogo.h +if USE_RENDER +xlogo_SOURCES += \ + RenderLogo.c \ + RenderLogo.h +endif + appman_PRE = \ xlogo.man diff --git a/RenderLogo.c b/RenderLogo.c index a7963fb..bb1361c 100644 --- a/RenderLogo.c +++ b/RenderLogo.c @@ -27,6 +27,8 @@ in this Software without prior written authorization from The Open Group. #ifdef HAVE_CONFIG_H #include <config.h> #endif + +#ifdef XRENDER #include <stdio.h> #include <X11/Xlib.h> @@ -159,4 +161,4 @@ intersect(XLineDouble *l1, XLineDouble *l2, XPointDouble *intersection) fprintf(stderr, "intersect: intersection is off by %f\n", check); } } - +#endif /* XRENDER */ diff --git a/configure.ac b/configure.ac index a3357ef..4f372f6 100644 --- a/configure.ac +++ b/configure.ac @@ -53,6 +53,7 @@ if test "x$USE_RENDER" = "xyes" ; then AC_DEFINE(XRENDER, 1, [Define to 1 to use Xrender & Xft2 to draw logo]) fi +AM_CONDITIONAL([USE_RENDER], [test "x$USE_RENDER" = "xyes"]) PKG_CHECK_MODULES(XLOGO, $XLOGO_DEPS) |