Eased restrictions on OpenGL/MESA usage a bit. It compiles just fine

using mesa-3.2 even without glext.h.
This commit is contained in:
Marcus Meissner 2000-08-08 20:46:50 +00:00 committed by Alexandre Julliard
parent 773efce76b
commit 22a969ba7e
3 changed files with 166 additions and 160 deletions

316
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -234,7 +234,7 @@ then
if test $OPENGL = "yes" -o $OPENGL = "normal"
then
AC_CHECK_HEADERS(GL/gl.h GL/glx.h GL/glext.h)
if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes" -a "$ac_cv_header_GL_glext_h" = "yes"
if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
then
dnl Check for some problems due to old Mesa versions
AC_CACHE_CHECK("for up-to-date OpenGL version", wine_cv_opengl_version_OK,
@ -266,6 +266,9 @@ then
,,
$X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS)
OPENGLFILES='$(OPENGLFILES)'
if test $ac_cv_lib_GL_glXCreateContext = "yes"
then
AC_CHECK_LIB(GL,glXGetProcAddressARB,AC_DEFINE(HAVE_GLX_GETPROCADDRESS),,$X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS)
@ -287,7 +290,6 @@ then
AC_DEFINE(HAVE_OPENGL)
OPENGL32_DLL=opengl32
OPENGLFILES='$(OPENGLFILES)'
fi
fi
fi

View File

@ -24,7 +24,9 @@
#define XMD_H /* This is to prevent the Xmd.h inclusion bug to happen :-/ */
#include <GL/gl.h>
#include <GL/glx.h>
#include <GL/glext.h>
#ifdef HAVE_GL_GLEXT_H
# include <GL/glext.h>
#endif
#undef XMD_H
#undef APIENTRY