From b12b3425e18b82f61413eef172f42c522a791850 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 22 Dec 2011 21:20:07 +0000 Subject: [PATCH] Check for missing OpenGL by inspecting $gl_no rather than GL_LIBS, which could theoretically be empty Originally committed to SVN as r6068. --- aegisub/configure.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/aegisub/configure.in b/aegisub/configure.in index e220a0014..6cdf71277 100644 --- a/aegisub/configure.in +++ b/aegisub/configure.in @@ -350,9 +350,11 @@ AC_CHECK_SIZEOF([time_t]) ## OpenGL ######### 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 + AC_SUBST(GL_CFLAGS) AC_SUBST(GL_LIBS)