2 # User Sam Lantinga <slouken@libsdl.org>
3 # Date 1485568474 28800
4 # Node ID 3b93536d291a34183592fd29ef1df9cf1416ac09
5 # Parent 184c34c673d479477d34194e3c0b1abe7ca5d828
6 Make sure we can link with OpenGL libraries in the OpenGL configure test
8 [yann.morin.1998@free.fr:
9 - backported from upstream
10 - drop the configure hunk for autoreconf
12 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
14 diff -r 184c34c673d4 -r 3b93536d291a configure.in
15 --- a/configure.in Sun Jan 01 18:46:38 2017 -0800
16 +++ b/configure.in Fri Jan 27 17:54:34 2017 -0800
19 AC_MSG_CHECKING(for OpenGL support)
23 +LIBS="$LIBS $SYS_GL_LIBS"
25 #include "SDL_opengl.h"
28 + glOrtho( -2.0, 2.0, -2.0, 2.0, -20.0, 20.0 );
32 AC_MSG_RESULT($have_opengl)
34 if test x$have_opengl = xyes; then
35 CFLAGS="$CFLAGS -DHAVE_OPENGL"
36 GL_LIBS="$SYS_GL_LIBS"