Check for missing OpenGL by inspecting $gl_no rather than GL_LIBS, which could theoretically be empty

Originally committed to SVN as r6068.
This commit is contained in:
Thomas Goyne 2011-12-22 21:20:07 +00:00
parent 96bf33a241
commit b12b3425e1

View file

@ -350,9 +350,11 @@ AC_CHECK_SIZEOF([time_t])
## OpenGL ## OpenGL
######### #########
AX_CHECK_GL AX_CHECK_GL
if test -z "$GL_LIBS"; then
AC_MSG_FAILURE([aegisub requires GL support.]) if test "$no_gl" = "yes"; then
AC_MSG_FAILURE([Aegisub requires GL support.])
fi fi
AC_SUBST(GL_CFLAGS) AC_SUBST(GL_CFLAGS)
AC_SUBST(GL_LIBS) AC_SUBST(GL_LIBS)