3 # Check for the presence of OpenGL development headers and libraries.
4 # Sets the GL_CFLAGS and GL_LIBS variables as appropriate.
7 AC_REQUIRE([X11_DEVEL])
13 AC_CHECK_LIB([GL], [glXGetConfig],
16 AC_MSG_ERROR([A valid libGL could not be found.])
19 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
20 LIBS="$LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS"
22 AC_MSG_CHECKING([if we can compile with GL])
36 AC_MSG_ERROR([Could not compile against GL])