[Mesa-dev] [PATCH 01/12] configure.ac: Check for freeglut.

Fabian Bieler fabianbieler at fastmail.fm
Thu Feb 13 14:18:18 PST 2014


To get an OpenGL core profile context freeglut 2.6 or later is required.

Note that in spite of it's name HAVE_FREEGLUT is only defined if freeglut 2.6
(released in 2009) or later ist found.

Signed-off-by: Fabian Bieler <fabianbieler at fastmail.fm>
---
 configure.ac | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/configure.ac b/configure.ac
index 0c38f4d..cd523c1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -83,6 +83,12 @@ AC_CHECK_LIB([glut],
 		[],
 		[glut_enabled=no])
 
+dnl Check for FreeGLUT 2.6 or later
+AC_EGREP_HEADER([glutInitContextProfile],
+		[GL/freeglut.h],
+		[AC_DEFINE(HAVE_FREEGLUT)],
+		[])
+
 dnl Check for GLEW
 PKG_CHECK_MODULES(GLEW, [glew >= 1.5.4])
 DEMO_CFLAGS="$DEMO_CFLAGS $GLEW_CFLAGS"
-- 
1.8.3.2



More information about the mesa-dev mailing list