Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed OpenGL library linking issue

  • Loading branch information
slouken committed Mar 12, 2009
1 parent b87eac4 commit ebcbc23628b0647f55a4a82a60fee072c301837e
Showing with 5 additions and 7 deletions.
  1. +5 −7 test/configure.in
@@ -98,12 +98,6 @@ AC_TRY_COMPILE([
have_opengl=yes
])
AC_MSG_RESULT($have_opengl)
if test x$have_opengl = xyes; then
CFLAGS="$CFLAGS -DHAVE_OPENGL"
GLLIB="$XPATH $SYS_GL_LIBS"
else
GLLIB=""
fi

dnl Check for OpenGL ES
AC_MSG_CHECKING(for OpenGL ES support)
@@ -121,7 +115,11 @@ AC_TRY_COMPILE([
have_opengles=yes
])
AC_MSG_RESULT($have_opengles)
if test x$have_opengles = xyes; then

if test x$have_opengl = xyes; then
CFLAGS="$CFLAGS -DHAVE_OPENGL"
GLLIB="$XPATH $SYS_GL_LIBS"
elif test x$have_opengles = xyes; then
CFLAGS="$CFLAGS -DHAVE_OPENGLES"
GLLIB="$XPATH $SYS_GL_LIBS"
else

0 comments on commit ebcbc23

Please sign in to comment.