From 4394bd8aa9d4a3d6b227ca8a261fce1af65549a2 Mon Sep 17 00:00:00 2001 From: panne Date: Thu, 11 Jul 2002 11:24:31 +0000 Subject: [PATCH] [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 --- ghc/configure.in | 21 ++++++++++++++++++++- ghc/docs/{index.html => index.html.in} | 10 ++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) rename ghc/docs/{index.html => index.html.in} (91%) 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@ -- 1.7.10.4