Skip to content

Commit

Permalink
BUILD: Remove the dependency on GLU
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Mar 28, 2011
1 parent 40331a5 commit 5024c3a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 25 deletions.
4 changes: 2 additions & 2 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ AUTOMAKE_OPTIONS = subdir-objects

FLAGS_C_CXX = -I$(top_srcdir) -I$(top_srcdir)/src/ -ggdb -Wall -Wno-multichar \
-Wpointer-arith -Wshadow $(EOS_CXXFLAGS) $(BOOST_CPPFLAGS) \
$(GL_CFLAGS) $(GLU_CFLAGS) -DGLEW_STATIC $(WERROR)
$(GL_CFLAGS) -DGLEW_STATIC $(WERROR)

AM_CXXFLAGS = $(FLAGS_C_CXX) -Wnon-virtual-dtor
AM_CFLAGS = $(FLAGS_C_CXX)

AM_LDFLAGS = $(BOOST_SYSTEM_LDFLAGS) $(BOOST_FILESYSTEM_LDFLAGS) \
$(BOOST_REGEX_LDFLAGS) $(GL_LIBS) $(GLU_LIBS) $(EOS_LIBS)
$(BOOST_REGEX_LDFLAGS) $(GL_LIBS) $(EOS_LIBS)

LIBS = $(LTLIBICONV) $(BOOST_SYSTEM_LIBS) $(BOOST_FILESYSTEM_LIBS) \
$(BOOST_REGEX_LIBS)
9 changes: 0 additions & 9 deletions config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@
/* Define to 1 if you have the `fminf' function. */
#undef HAVE_FMINF

/* Define to 1 if you have the <GL/glu.h> header file. */
#undef HAVE_GL_GLU_H

/* Define to 1 if you have the <GL/gl.h> header file. */
#undef HAVE_GL_GL_H

Expand All @@ -75,9 +72,6 @@
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H

/* Define to 1 if you have the <OpenGL/glu.h> header file. */
#undef HAVE_OPENGL_GLU_H

/* Define to 1 if you have the <OpenGL/gl.h> header file. */
#undef HAVE_OPENGL_GL_H

Expand Down Expand Up @@ -105,9 +99,6 @@
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H

/* Use nonstandard varargs form for the GLU tesselator callback */
#undef HAVE_VARARGS_GLU_TESSCB

/* Define to 1 if you have the <windows.h> header file. */
#undef HAVE_WINDOWS_H

Expand Down
5 changes: 0 additions & 5 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ case "$target" in
;;
*)
AX_CHECK_GL
AX_CHECK_GLU

AC_CHECK_HEADER("AL/al.h", , noopenal=1)
AC_CHECK_HEADER("AL/alc.h", , noopenal=1)
Expand All @@ -107,10 +106,6 @@ case "$target" in
AC_MSG_ERROR([OpenGL is required and could not be found!])
fi

if test -n "$no_glu"; then
AC_MSG_ERROR([GLU is required and could not be found!])
fi

if test -n "$noopenal"; then
AC_MSG_ERROR([OpenAL is required and could not be found!])
fi
Expand Down
9 changes: 0 additions & 9 deletions glew/glew.h
Original file line number Diff line number Diff line change
Expand Up @@ -1156,15 +1156,6 @@ GLAPI void GLAPIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei heigh

#endif /* GL_VERSION_1_1 */

/* ---------------------------------- GLU ---------------------------------- */

/* this is where we can safely include GLU */
#if defined(__APPLE__) && defined(__MACH__)
#include <OpenGL/glu.h>
#else
#include <GL/glu.h>
#endif

/* ----------------------------- GL_VERSION_1_2 ---------------------------- */

#ifndef GL_VERSION_1_2
Expand Down

0 comments on commit 5024c3a

Please sign in to comment.