summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-04-02 17:33:57 +0200
committerDanny Baumann <dannybaumann@web.de>2007-04-02 17:33:57 +0200
commit870dc8c603cefccf041aa6d1a48e8012d04a79c5 (patch)
tree3c52225e8b1da6c562a7656f40226a600b6b692d /configure.ac
parent8a2c83a7f379124d38caa86c255648c219617123 (diff)
downloadberyl-premerge-870dc8c603cefccf041aa6d1a48e8012d04a79c5.tar.gz
beryl-premerge-870dc8c603cefccf041aa6d1a48e8012d04a79c5.tar.bz2
make build of wall conditionally (depends on cairo)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1d15505..ba7c99a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -131,6 +131,19 @@ if test "$use_text" = yes; then
AC_DEFINE(USE_TEXT, 1, [Build text plugin])
fi
+AC_ARG_ENABLE(wall,
+ [ --disable-wall Disable wall plugin],
+ [use_walle=$enableval], [use_wall=yes])
+
+if test "x$use_wall" = "xyes"; then
+ PKG_CHECK_MODULES(WALL, cairo-xlib-xrender cairo >= 1.0, [use_wall=yes], [use_wall=no])
+fi
+
+AM_CONDITIONAL(WALL_PLUGIN, test "x$use_wall" = "xyes")
+if test "$use_wall" = yes; then
+ AC_DEFINE(USE_WALL, 1, [Build wall plugin])
+fi
+
AC_OUTPUT([
Makefile
src/Makefile