3 # Check for the presence of the X Window System headers and libraries.
4 # Sets the CPPFLAGS and LIBS variables as appropriate.
7 AC_REQUIRE([X11_DEVEL])
9 AC_ARG_ENABLE(gl, [ --enable-gl enable support for OpenGL rendering default=no],
16 if test "$enable_gl" = "yes"; then
17 AC_CHECK_LIB([GL], [glXGetConfig],
21 AC_MSG_WARN([Disabling GL rendering support])
25 if test "$enable_gl" = "yes"; then
26 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27 LIBS="$LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS"
29 AC_MSG_CHECKING([if we can compile with GL])
43 AC_MSG_WARN([Disabling GL rendering support])
56 AC_MSG_CHECKING([if GL support is enabled])
57 if test "$enable_gl" = "yes"; then
64 AM_CONDITIONAL([USE_GL], [test "$enable_gl" = "yes"])