NeHe/SDL patch for Cygwin

Hi,

I enclose a small patch that allows the SDL version of the NeHe
tutorials (from http://www.libsdl.org/opengl/index.php) to compile on
Cygwin without fuss. Since it patches configure.in, it will obviously be
necessary to run autogen.sh after application.

I trust that this is an appropriate place to send the patch. If not,
please accept my apologies.

Dan

— OpenGL-intro-1.1.1/configure.in 2001-04-28 21:13:36.000000000 +0100
+++ OpenGL-intro-1.1.1-djc1/configure.in 2006-01-10
12:24:59.000000000 +0
000
@@ -18,7 +18,7 @@

dnl Figure out which math library to use
case “$target” in

  • --mingw32*)
  • --cygwin* | --mingw32*)
    MATHLIB="“
    SYS_GL_LIBS=”-lopengl32 -lglu32"
    ;;
    @@ -57,6 +57,10 @@
    AC_MSG_CHECKING(for OpenGL support)
    have_opengl=no
    AC_TRY_COMPILE([
  • #ifdef WIN32
  • #define WIN32_LEAN_AND_MEAN
  • #include <windows.h>
  • #endif
    #if defined(APPLE) && defined(MACH)
    #include <OpenGL/gl.h>
    #include <OpenGL/glu.h>