Skip to content

Commit

Permalink
build: Enable system GLEW on non-UNIX platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Wilson committed Jun 15, 2010
1 parent 5262444 commit 25ec0c1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,16 @@ CAIRO_ENABLE_SURFACE_BACKEND(gl, OpenGL, no, [
gl_NONPKGCONFIG_LIBS="-lGL"
fi])
# Disable system GLEW on UNIX since it assumes X and crashes with EGL
have_glew="no"
# Disable system GLEW since it assumes X and crashes with EGL
#AC_CHECK_LIB(GLEW, glewInit,
# [AC_CHECK_HEADER(GL/glew.h, [have_glew="yes"], [])])
case "$host" in
*-linux*|*-*bsd*|*-solaris*)
;;
*)
AC_CHECK_LIB(GLEW, glewInit,
[AC_CHECK_HEADER(GL/glew.h, [have_glew="yes"], [])])
;;
esac
if test "x$have_glew" = "xyes"; then
gl_NONPKGCONFIG_LIBS="-lGLEW $gl_NONPKGCONFIG_LIBS"
use_glew="yes (system library)"
Expand Down

0 comments on commit 25ec0c1

Please sign in to comment.