summaryrefslogtreecommitdiff
path: root/m4/ax_check_gl.m4
diff options
context:
space:
mode:
authorBastien ROUCARIÈS <roucaries.bastien@gmail.com>2014-12-28 21:20:26 +0100
committerBastien ROUCARIÈS <roucaries.bastien@gmail.com>2014-12-28 21:32:40 +0100
commitc6379d276da68adea2963d679ec55351f8206508 (patch)
tree1a66bb231dda97b56ea6144acaf33d374ed781e8 /m4/ax_check_gl.m4
parent8bed508d088faaa29e824e0c12412f919bdd9cea (diff)
downloadautoconf-archive-c6379d276da68adea2963d679ec55351f8206508.tar.gz
Improve compatibility with ax_have_opengl
Create have_* variable Create even two version for have_glut and have_GLUT (for compatibility reasons)
Diffstat (limited to 'm4/ax_check_gl.m4')
-rw-r--r--m4/ax_check_gl.m46
1 files changed, 4 insertions, 2 deletions
diff --git a/m4/ax_check_gl.m4 b/m4/ax_check_gl.m4
index 0026f80..39423bf 100644
--- a/m4/ax_check_gl.m4
+++ b/m4/ax_check_gl.m4
@@ -70,7 +70,7 @@
# modified version of the Autoconf Macro, you may extend this special
# exception to the GPL to apply to your modified version as well.
-#serial 16
+#serial 17
m4_define([_AX_CHECK_GL_PROGRAM],
[AC_LANG_PROGRAM([[
@@ -532,6 +532,7 @@ AC_DEFUN([AX_CHECK_GL],
# set flags
no_gl="yes"
+ have_GL="no"
# now do the real testing
AS_IF([test X$ax_check_gl_want_gl != "Xno"],
@@ -539,7 +540,8 @@ AC_DEFUN([AX_CHECK_GL],
AC_MSG_CHECKING([for a working OpenGL implementation])
AS_IF([test "X$no_gl" = "Xno"],
- [AC_MSG_RESULT([yes])
+ [have_GL="yes"
+ AC_MSG_RESULT([yes])
AC_MSG_CHECKING([for CFLAGS needed for OpenGL])
AC_MSG_RESULT(["${GL_CFLAGS}"])
AC_MSG_CHECKING([for LIBS needed for OpenGL])