Mercurial > hg > octave-nkf
diff m4/acinclude.m4 @ 19056:95b69b880b19 gui-release
Allow conpile of gl-render.cc under mingw.
* libinterp/corefcn/gl-render.h: include glext.h if available
* acinclude.m4: add configure check og glext.h
author | John Donoghue |
---|---|
date | Thu, 26 Jun 2014 14:42:55 -0400 |
parents | 0a66861d8069 |
children | 2b82d2f29a7b c59745865c7f |
line wrap: on
line diff
--- a/m4/acinclude.m4 +++ b/m4/acinclude.m4 @@ -937,6 +937,16 @@ ]) if test $have_opengl_incs = yes; then + AC_CHECK_HEADERS([GL/glext.h OpenGL/glext.h], [], [], [ +#ifdef HAVE_WINDOWS_H +# include <windows.h> +#endif +#if defined (HAVE_GL_GL_H) +# include <GL/gl.h> +#elif defined (HAVE_OPENGL_GL_H) +# include <OpenGL/gl.h> +#endif + ]) case $canonical_host_type in *-*-mingw32* | *-*-msdosmsvc) save_LIBS="$LIBS"