summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-03-10 21:26:13 +0100
committerAlexander Larsson <alexl@redhat.com>2010-03-10 21:28:47 +0100
commit0230541af5e5cebf7bdec97d8d86cd594e9ae8b9 (patch)
tree40efc9c4d5ea28748edeef40108a579b822f74f3 /configure.ac
parenteccbe9bb1ac99acc046d6f5ec99761725c05b966 (diff)
downloadspice-0230541af5e5cebf7bdec97d8d86cd594e9ae8b9.tar.gz
spice-0230541af5e5cebf7bdec97d8d86cd594e9ae8b9.tar.xz
spice-0230541af5e5cebf7bdec97d8d86cd594e9ae8b9.zip
Define GL_GLEXT_PROTOTYPES in CFLAGS not in random places in the source
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 8b289006..6f560682 100644
--- a/configure.ac
+++ b/configure.ac
@@ -164,11 +164,13 @@ SPICE_REQUIRES+=" openssl"
have_gl=yes
AC_CHECK_LIB(GL, glBlendFunc, GL_LIBS="$GL_LIBS -lGL", have_gl=no)
AC_CHECK_LIB(GLU, gluSphere, GL_LIBS="$GL_LIBS -lGLU", have_gl=no)
+GL_CFLAGS="-DGL_GLEXT_PROTOTYPES"
if test "x$have_gl" = "xno"; then
AC_MSG_ERROR([GL libraries not available])
fi
+AC_SUBST(GL_CFLAGS)
AC_SUBST(GL_LIBS)
SPICE_NONPKGCONFIG_LIBS+=" $GL_LIBS"