[project @ 2002-07-23 22:42:17 by krasimir]
authorkrasimir <unknown>
Tue, 23 Jul 2002 22:42:18 +0000 (22:42 +0000)
committerkrasimir <unknown>
Tue, 23 Jul 2002 22:42:18 +0000 (22:42 +0000)
add --enable-objectio configuration option

configure.in
ghc/configure.in
ghc/docs/index.html.in

index 925bf5b..cd13b2c 100644 (file)
@@ -495,6 +495,18 @@ if test x"$EnableWin32DLLs" = "xYES" ; then
  AC_DEFINE(HAVE_WIN32_DLL_SUPPORT)
 fi
 
+dnl ** Enable the building of the ObjectIO?
+dnl --------------------------------------------------------------
+AC_ARG_ENABLE(objectio,
+[  --enable-objectio
+        Build ObjectIO, a portable GUI library for Haskell.
+        (This option is only relevant when libraries are built.)
+],
+[GhcLibsWithObjectIO=YES],
+[GhcLibsWithObjectIO=NO]
+)
+AC_SUBST(GhcLibsWithObjectIO)
+
 dnl ** Enable the building of the OpenGL/GLUT binding in hslibs?
 dnl --------------------------------------------------------------
 AC_ARG_ENABLE(hopengl,
index f1cdd0a..1a403cc 100644 (file)
@@ -20,6 +20,25 @@ dnl These are needed by the .spec file.
 AC_SUBST(version)
 AC_SUBST(patchlevel)
 
+dnl Uncomment links to ObjectIO docs if necessary
+AC_ARG_ENABLE(objectio,
+[  --enable-objectio
+        Build ObjectIO, a portable GUI library for Haskell.
+        (This option is only relevant when libraries are built.)
+],
+[
+ObjectIOHTMLStart=""
+ObjectIOHTMLEnd=""
+],
+[
+ObjectIOHTMLStart="<!--"
+ObjectIOHTMLEnd="-->"
+]
+)
+
+AC_SUBST(ObjectIOHTMLStart)
+AC_SUBST(ObjectIOHTMLEnd)
+
 dnl Uncomment links to HOpenGL docs if necessary
 AC_ARG_ENABLE(hopengl,
 [  --enable-hopengl
index e04643b..36f6acb 100644 (file)
             the OpenGL utility toolkit.
           </LI>
 @HOpenGLHTMLEnd@
+@ObjectIOHTMLStart@
          <LI>
            <A HREF="ObjectIO/index.html"><TT>ObjectIO</TT></a>: GUI library.
           </LI>
+@ObjectIOHTMLEnd@
         </UL>
       </LI>