From: panne Date: Thu, 11 Jul 2002 11:24:31 +0000 (+0000) Subject: [project @ 2002-07-11 11:24:31 by panne] X-Git-Tag: Approx_11550_changesets_converted~1864 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=4394bd8aa9d4a3d6b227ca8a261fce1af65549a2 [project @ 2002-07-11 11:24:31 by panne] Automagically insert links to the documentation of the OpenGL/GLUT packages iff --enable-hopengl is used --- diff --git a/ghc/configure.in b/ghc/configure.in index ac52dc5..f1cdd0a 100644 --- a/ghc/configure.in +++ b/ghc/configure.in @@ -20,5 +20,24 @@ dnl These are needed by the .spec file. AC_SUBST(version) AC_SUBST(patchlevel) +dnl Uncomment links to HOpenGL docs if necessary +AC_ARG_ENABLE(hopengl, +[ --enable-hopengl + Build HOpenGL, a Haskell binding for OpenGL/GLUT, too. + (This option is only relevant when hslibs are built.) +], +[ +HOpenGLHTMLStart="" +HOpenGLHTMLEnd="" +], +[ +HOpenGLHTMLStart="" +] +) + +AC_SUBST(HOpenGLHTMLStart) +AC_SUBST(HOpenGLHTMLEnd) + dnl * Write the results... -AC_OUTPUT(ghc.spec) +AC_OUTPUT(ghc.spec docs/index.html) diff --git a/ghc/docs/index.html b/ghc/docs/index.html.in similarity index 91% rename from ghc/docs/index.html rename to ghc/docs/index.html.in index a955853..4280988 100644 --- a/ghc/docs/index.html +++ b/ghc/docs/index.html.in @@ -60,6 +60,16 @@ haskell-src: manipulating Haskell source code. +@HOpenGLHTMLStart@ +
  • + OpenGL: + 3D rendering. +
  • +
  • + GLUT: + the OpenGL utility toolkit. +
  • +@HOpenGLHTMLEnd@