From 8d0627cd285e773e9c40491a94d8b21e5f2db1fc Mon Sep 17 00:00:00 2001 From: panne Date: Sat, 15 Nov 2003 19:51:18 +0000 Subject: [PATCH] [project @ 2003-11-15 19:51:17 by panne] Some steps towards decoupling the OpenGL and GLUT packages --- configure.ac | 11 ++++++----- mk/config.mk.in | 12 ++++++++---- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index 242e4fb..4cc728e 100644 --- a/configure.ac +++ b/configure.ac @@ -627,8 +627,8 @@ AC_ARG_ENABLE(hopengl, On Mac OS X, use --enable-hopengl=x11 to use X11 instead of the "native" libraries. ], -[GhcLibsWithHOpenGL=YES], -[GhcLibsWithHOpenGL=NO] +[GhcLibsWithOpenGL=YES; GhcLibsWithGLUT=YES], +[GhcLibsWithOpenGL=NO; GhcLibsWithGLUT=NO] ) UseQuartzOpenGL=NO if test x"$TargetOS_CPP" = x"darwin"; then @@ -639,7 +639,8 @@ if test x"$TargetOS_CPP" = x"darwin"; then fi fi -AC_SUBST(GhcLibsWithHOpenGL) +AC_SUBST([GhcLibsWithOpenGL]) +AC_SUBST([GhcLibsWithGLUT]) dnl ** .NET interop support? dnl -------------------------------------------------------------- @@ -999,7 +1000,7 @@ FPTOOLS_CHECK_HTYPE(rlim_t) FPTOOLS_CHECK_HTYPE(wint_t) dnl ** Map OpenGL data types to Haskell types -if test $GhcLibsWithHOpenGL = YES ; then +if test $GhcLibsWithOpenGL = YES ; then FPTOOLS_CHECK_HTYPE(GLboolean) FPTOOLS_CHECK_HTYPE(GLbyte) FPTOOLS_CHECK_HTYPE(GLubyte) @@ -1196,7 +1197,7 @@ dnl ** check for X Window System AC_PATH_XTRA() dnl ** check for OpenGL/GLUT/GLX include paths and libraries -if test $GhcLibsWithHOpenGL = YES ; then +if test $GhcLibsWithOpenGL = YES ; then if test $UseQuartzOpenGL = YES ; then dnl Take a shortcut for Mac OS X native OpenGL: dnl It's in a non-standard location, but it's always there diff --git a/mk/config.mk.in b/mk/config.mk.in index cac676c..caa2da5 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -391,18 +391,22 @@ LIBM=@LIBM@ # GhcLibsWithObjectIO=@GhcLibsWithObjectIO@ -# Build the Haskell OpenGL/GLUT binding? +# Build the Haskell OpenGL binding? # -GhcLibsWithHOpenGL=@GhcLibsWithHOpenGL@ +GhcLibsWithOpenGL=@GhcLibsWithOpenGL@ GL_CFLAGS=@GL_CFLAGS@ GL_LIBS=@GL_LIBS@ + +# Build the Haskell GLUT binding? +# +GhcLibsWithGLUT=@GhcLibsWithGLUT@ GLUT_LIBS=@GLUT_LIBS@ +# X11 stuff +# X_CFLAGS=@X_CFLAGS@ X_LIBS=@X_LIBS@ - -# # .NET interop support? # DotnetSupport=@DotnetSupport@ -- 1.7.10.4