Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed OpenGL library linking issue
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 12, 2009
1 parent b87eac4 commit ebcbc23
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions test/configure.in
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit ebcbc23

Please sign in to comment.