diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-09-14 10:36:08 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-09-14 10:36:08 +0100 |
commit | 12470fd7010ea0748c8dcc9014d1cd0f52f51a3b (patch) | |
tree | 9bbc3c9948774f2a3703a32e39ab2f0bde673c9c | |
parent | 9c2790ccc48392bfe039626ebb383070aa18fe56 (diff) |
[configure] Setup GL CFLAGS before checking for GLX
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index b4b1cc37..d2c1231a 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 |