From b3a5d8ea4941a9754f9b0f449154e153b48f29b7 Mon Sep 17 00:00:00 2001 From: "Ben \"root\" Anderson" Date: Sat, 26 Oct 2013 17:41:27 -0500 Subject: [PATCH] Slightly more robust ifs. Actually export GL_LIBS. --- autoconf/m4/opengl.m4 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/autoconf/m4/opengl.m4 b/autoconf/m4/opengl.m4 index 42791d5a3a..9337b977cb 100644 --- a/autoconf/m4/opengl.m4 +++ b/autoconf/m4/opengl.m4 @@ -10,10 +10,12 @@ AC_DEFUN([SM_OPENGL], AX_CHECK_LIB_USING_HEADER(GL, 'glBegin(GL_POINTS)', GL/gl.h, [GL_LIBS="-lGL"]) - if test x$GL_LIBS = "x"; then + if test "$GL_LIBS" = ""; then AX_CHECK_LIB_USING_HEADER(opengl32, 'glBegin(GL_POINTS)', GL/gl.h, [GL_LIBS="-lopengl32"]) fi - if test x$GL_LIBS = "x"; then + if test "$GL_LIBS" = ""; then AC_MSG_ERROR("No usable OpenGL library found.") fi + + AC_SUBST(GL_LIBS) ]) \ No newline at end of file