aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorTomas Frydrych <tf@linux.intel.com>2007-10-18 17:26:15 +0000
committerTomas Frydrych <tf@linux.intel.com>2007-10-18 17:26:15 +0000
commit43fdc5cb75ec9d9a265a1357ca45fe7b33ed2e19 (patch)
tree56776a861dd9207cab73e56cf86e82ae086935be /configure.ac
parent19ec0aa6078a4b70e6a33eb0b8871f32eeed0725 (diff)
downloadlibmatchboxwm2-43fdc5cb75ec9d9a265a1357ca45fe7b33ed2e19.tar.gz
libmatchboxwm2-43fdc5cb75ec9d9a265a1357ca45fe7b33ed2e19.tar.bz2
libmatchboxwm2-43fdc5cb75ec9d9a265a1357ca45fe7b33ed2e19.zip
2007-10-19 Tomas Frydrych <tf@o-hand.com>
* configure.ac: Added checks for Xfixes and XCursor. * src/core/mb-window-manager.c: * src/core/mb-window-manager.h: (mb_wm_set_cursor): New function.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac37
1 files changed, 28 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac
index 411fbfe..7ce3ee5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -86,12 +86,24 @@ fi
AC_SUBST(MANAGERS)
+PKG_CHECK_MODULES(XFIXES, xfixes >= 4.0, have_xfixes=yes, have_xfixes=no)
+
+if test x$have_xfixes = xyes; then
+ AC_DEFINE(HAVE_XFIXES, [1], [Use XFixes ext to really hide cursor])
+fi
+
+PKG_CHECK_MODULES(XCURSOR, xcursor, have_xcursor=yes, have_xcursor=no)
+
+if test x$have_xcursor = xyes; then
+ AC_DEFINE(HAVE_XCURSOR, [1], [Use XCursor to sync pointer themes])
+fi
+
MBWM_INCS='-I$(top_srcdir)/src/core -I$(top_srcdir)/src/client-types -I$(top_srcdir)/src/theme-engines'
MBWM_CORE_LIB='$(top_builddir)/src/core/libmatchbox-window-manager-2-core.a'
MBWM_CLIENT_LIBS='$(top_builddir)/src/client-types'
MBWM_THEME_LIBS='$(top_builddir)/src/theme-engines'
-MBWM_CFLAGS="$MBWM_CFLAGS $MBWM_DEBUG_CFLAGS $THEME_PNG_CFLAGS"
-MBWM_LIBS="$MBWM_LIBS $THEME_PNG_LIBS"
+MBWM_CFLAGS="$MBWM_CFLAGS $MBWM_DEBUG_CFLAGS $THEME_PNG_CFLAGS $XFIXES_CFLAGS $XCURSOR_CFLAGS"
+MBWM_LIBS="$MBWM_LIBS $THEME_PNG_LIBS $XFIXES_LIBS $XCURSOR_LIBS"
AC_SUBST([MBWM_CFLAGS])
AC_SUBST([MBWM_LIBS])
@@ -120,14 +132,21 @@ echo "
Matchbox Window Manager II
==========================
- install prefix: ${prefix}
+ Directories:
source code location: ${srcdir}
+ install prefix : ${prefix}
+
+ Extension:
+ Xfixes : ${have_xfixes}
+ Xcursor : ${have_cursor}
- Cairo theme: ${use_cairo}
- PNG theme: ${png_theme}
- GTK integration: ${use_gtk}
+ Themes:
+ Cairo theme : ${use_cairo}
+ PNG theme : ${png_theme}
+ GTK integration : ${use_gtk}
- Simple manager: ${simple_manager}
- Maemo manager: ${maemo_manager}
- Debugging output: ${want_debug}
+ Managers:
+ Simple manager : ${simple_manager}
+ Maemo manager : ${maemo_manager}
+ Debugging output : ${want_debug}
"