[cairo-commit] configure.in

Behdad Esfahbod behdad at kemper.freedesktop.org
Tue Sep 4 21:27:00 PDT 2007


 configure.in |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
diff-tree b85032584b32af968dc8d8a0fcfc9f3e1d2770a0 (from 1d788da5175dac34ed0298204753bf1b40dfc2b0)
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Wed Sep 5 00:26:56 2007 -0400

    [configure.in] Fix non-pkgconfig Xrender detection path (#4724)

diff --git a/configure.in b/configure.in
index 41eb013..aa7c1e7 100644
--- a/configure.in
+++ b/configure.in
@@ -274,9 +274,13 @@ CAIRO_BACKEND_ENABLE(xlib_xrender, Xlib 
     PKG_CHECK_MODULES(xlib_xrender, $xlib_xrender_REQUIRES, ,
 		      [AC_MSG_RESULT(no)
 		       xlib_xrender_REQUIRES=""
+		       old_CPPFLAGS=$CPPFLAGS
+		       CPPFLAGS="$CPPFLAGS $xlib_CFLAGS $xlib_NONPKGCONFIG_CFLAGS"
 		       AC_CHECK_HEADER(X11/extensions/Xrender.h,
 				       [xlib_xrender_NONPKGCONFIG_LIBS="-lXrender"],
-				       [use_xlib_xrender="no (requires Xrender http://freedesktop.org/Software/xlibs)"])])
+				       [use_xlib_xrender="no (requires Xrender http://freedesktop.org/Software/xlibs)"])
+		       CPPFLAGS=$old_CPPFLAGS
+		      ])
   fi
 ])
 


More information about the cairo-commit mailing list