[Spice-devel] [spice-common PATCH] build-sys: Define opengl GL_LIBS and GL_CFLAGS in generated Makefile.in

Lin Ma lma at suse.com
Mon Apr 18 07:18:25 UTC 2016


Because we missed variables GL_LIBS and GL_CFLAGS in generated Makefile.in,
The linker flag and the compiler flag wont be generated in Makefile.
It causes spice-gtk building failure with --enable-opengl option.

The patch fixes this issue.

Signed-off-by: Lin Ma <lma at suse.com>
---
 m4/spice-deps.m4 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/m4/spice-deps.m4 b/m4/spice-deps.m4
index 170adf2..2f294f3 100644
--- a/m4/spice-deps.m4
+++ b/m4/spice-deps.m4
@@ -145,6 +145,8 @@ AC_DEFUN([SPICE_CHECK_OPENGL], [
     AM_CONDITIONAL(HAVE_GL, test "x$enable_opengl" = "xyes")
 
     if test "x$enable_opengl" = "xyes"; then
+        AC_SUBST(GL_CFLAGS)
+        AC_SUBST(GL_LIBS)
         AC_CHECK_LIB(GL, glBlendFunc, GL_LIBS="$GL_LIBS -lGL", enable_opengl=no)
         AC_CHECK_LIB(GLU, gluSphere, GL_LIBS="$GL_LIBS -lGLU", enable_opengl=no)
         AC_DEFINE([USE_OPENGL], [1], [Define to build with OpenGL support])
-- 
2.6.3



More information about the Spice-devel mailing list