[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    configure checks for XComposite, XFixes
From:       Stefan Nikolaus <stefan.nikolaus () kdemail ! net>
Date:       2005-04-27 11:42:57
Message-ID: 200504271343.00751.stefan.nikolaus () kdemail ! net
[Download RAW message or body]

[Attachment #2 (multipart/mixed)]


Hi,

I want to add thumbnail support to kicker, which is based on XComposite, 
XFixes and XRender. For the latter there's already a test. The attached patch 
adds checks for the remaining extensions. As I'm not very familiar with the 
automagic stuff, could an auto-Houdini have a look at it, please?

Thanks in advance,
Stefan

["kdebase-check-xextensions.patch" (text/x-diff)]

Index: configure.in.in
===================================================================
RCS file: /home/kde/kdebase/configure.in.in,v
retrieving revision 1.66
diff -u -p -r1.66 configure.in.in
--- configure.in.in	7 Feb 2005 12:27:53 -0000	1.66
+++ configure.in.in	26 Apr 2005 13:17:30 -0000
@@ -209,6 +209,30 @@ else
 fi
 AC_SUBST(LIB_XRENDER)
 
+dnl XComposite check
+AC_CHECK_HEADER(X11/extensions/Xcomposite.h, [xcomposite_h=yes], [xcomposite_h=no], \
[#include <X11/Xlib.h>]) +if test "$xcomposite_h" = yes; then
+  KDE_CHECK_LIB(Xcomposite, XCompositeQueryExtension, [
+    LIB_XCOMPOSITE=-lXcomposite
+    AC_DEFINE_UNQUOTED(HAVE_XCOMPOSITE, 1, [Define if you have the XComposite \
extension]) +  ], [], -lXext -X11 $X_EXTRA_LIBS)
+else
+  LIB_XCOMPOSITE=
+fi
+AC_SUBST(LIB_XCOMPOSITE)
+
+dnl XFixes check
+AC_CHECK_HEADER(X11/extensions/Xfixes.h, [xfixes_h=yes], [xfixes_h=no], [#include \
<X11/Xlib.h>]) +if test "$xfixes_h" = yes; then
+  KDE_CHECK_LIB(Xfixes, XFixesQueryExtension, [
+    LIB_XFIXES=-lXfixes
+    AC_DEFINE_UNQUOTED(HAVE_XFIXES, 1, [Define if you have the XFixes extension])
+  ], [], -lXext -X11 $X_EXTRA_LIBS)
+else
+  LIB_XFIXES=
+fi
+AC_SUBST(LIB_XFIXES)
+
 LDFLAGS="$ac_save_ldflags"
 dnl ----- end of X11 extension checks -----
 


[Attachment #6 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic