[cairo-commit] configure.ac

Chris Wilson ickle at kemper.freedesktop.org
Mon Sep 14 02:36:41 PDT 2009


 configure.ac |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 12470fd7010ea0748c8dcc9014d1cd0f52f51a3b
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Mon Sep 14 10:36:08 2009 +0100

    [configure] Setup GL CFLAGS before checking for GLX

diff --git a/configure.ac b/configure.ac
index b4b1cc3..d2c1231 100644
--- a/configure.ac
+++ b/configure.ac
@@ -366,9 +366,12 @@ CAIRO_ENABLE_FUNCTIONS(egl, EGL, auto, [
 
 CAIRO_ENABLE_FUNCTIONS(glx, GLX, auto, [
   if test "x$need_glx_functions" = "xyes"; then
+    save_CFLAGS="$CFLAGS"
+    CFLAGS="$CFLAGS $gl_CFLAGS $gl_NONPKGCONFIG_CFLAGS"
     AC_CHECK_HEADER(GL/glx.h,, [use_glx="no (GLX headers not found)"])
     glx_NONPKGCONFIG_CFLAGS=
     glx_NONPKGCONFIG_LIBS="-lGL"
+    CFLAGS="$save_CFLAGS"
   else
       use_glx="no (not required by any backend)"
   fi


More information about the cairo-commit mailing list