[project @ 2002-02-17 14:03:10 by panne]
authorpanne <unknown>
Sun, 17 Feb 2002 14:03:10 +0000 (14:03 +0000)
committerpanne <unknown>
Sun, 17 Feb 2002 14:03:10 +0000 (14:03 +0000)
Automagically determine the flags for compiling/linking OpenGL
programs at configuration time, and stuff the relevant info into
OpenGL's package configuration file. This still mixes up compilation
time vs. installation time, but it's much better than hardcoded flags.

configure.in
mk/config.mk.in

index 0cbd799..36ccd58 100644 (file)
@@ -953,6 +953,8 @@ mingw32)  ;;
 *) AC_PATH_XTRA() ;;
 esac
 
+FPTOOLS_HAVE_OPENGL
+
 dnl ################################################################
 dnl Check for libraries
 dnl ################################################################
index 3dc1f9e..83e2886 100644 (file)
@@ -332,6 +332,8 @@ LIBM=@LIBM@
 # Build the Haskell OpenGL/GLUT binding?
 #
 GhcLibsWithHOpenGL=@GhcLibsWithHOpenGL@
+GL_CFLAGS=@GL_CFLAGS@
+GL_LIBS=@GL_LIBS@
 
 X_CFLAGS=@X_CFLAGS@
 X_LIBS=@X_LIBS@