aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorTomas Frydrych <tf@linux.intel.com>2008-07-02 10:43:47 +0000
committerTomas Frydrych <tf@linux.intel.com>2008-07-02 10:43:47 +0000
commita15adcabbcb7cf4c186635effd47a90700e84e32 (patch)
tree0f9924cdfe1ceec8d0afa314f2ff1ac13b007c3b /configure.ac
parent67979cccd2570d69d279e1b96a57c6c51ab18629 (diff)
downloadlibmatchboxwm2-a15adcabbcb7cf4c186635effd47a90700e84e32.tar.gz
libmatchboxwm2-a15adcabbcb7cf4c186635effd47a90700e84e32.tar.bz2
libmatchboxwm2-a15adcabbcb7cf4c186635effd47a90700e84e32.zip
2008-07-02 Tomas Frydrych <tf@o-hand.com>
* configure.ac: * matchbox/comp-mgr/mb-wm-comp-mgr-clutter.c: Use ClutterGLXTexturePixmap when building agains clutter GLX backend.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac11
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index b081092..fdbb43e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,6 +26,8 @@ AC_SUBST(MBWM2_INCDIR)
MBWM2_PKGINCDIR=matchbox-wm-2/$MBWM2_API_VERSION/
AC_SUBST(MBWM2_PKGINCDIR)
+clutter_package=clutter-0.7
+
AM_MAINTAINER_MODE
AC_PROG_CC
@@ -134,7 +136,7 @@ for composite_manager in $included_composite_managers; do
MBWM_EXTRA_LIBS="$MBWM_EXTRA_LIBS -lm"
;;
clutter )
- needed_pkgs="$needed_pkgs clutter-0.7 xcomposite xdamage "
+ needed_pkgs="$needed_pkgs $clutter_package xcomposite xdamage "
gmloop="yes"
;;
esac
@@ -208,6 +210,13 @@ AM_CONDITIONAL(ENABLE_CLUTTER_COMPOSITE_MANAGER, [test x"$COMPOSITE_MANAGER_clut
if test x"$COMPOSITE_MANAGER_clutter" = xyes; then
ENABLE_CLUTTER_COMPOSITE_MANAGER=1
COMP_MGR_BACKEND=1
+
+ clutter_backend=$($PKG_CONFIG $clutter_package --variable=backend)
+ if test x"$clutter_backend" = xglx; then
+ AC_DEFINE(HAVE_CLUTTER_GLX, [1], [Using clutter glx backend])
+ elif test x"$clutter_backend" = xeglx; then
+ AC_DEFINE(HAVE_CLUTTER_EGLX, [1], [Using clutter eglx backend])
+ fi
fi
AC_SUBST(ENABLE_CLUTTER_COMPOSITE_MANAGER)