1 # Initialise and check sanity.
4 # Compute the version number.
5 version=`sed -e 's/.*\([[0-9]]\)\.\([[0-9]]*\).*/\1.\2/' VERSION`
8 # These are needed by the .spec file.
12 # Uncomment links to unix docs if necessary.
13 # NOTE: This is a slight hack: It needs to be synchronized with
14 # fptools/configure.ac and fptools/libraries/Makefile and should probably use
15 # target features instead of host.
19 i[[3456]]86-*-mingw32*) fp_supports_unix=no ;;
20 *) fp_supports_unix=yes ;;
22 FP_HTML_COMMENT([test x"$fp_supports_unix" = xyes], [unix])
24 # Uncomment links to ObjectIO docs if necessary.
25 AC_ARG_ENABLE([objectio],
26 AC_HELP_STRING([--enable-objectio],
27 [Build ObjectIO, a portable GUI library for Haskell.]))
28 FP_HTML_COMMENT([test x"$enable_objectio" = xyes], [ObjectIO])
30 # Uncomment links to HOpenGL docs if necessary
31 AC_ARG_ENABLE([hopengl],
32 AC_HELP_STRING([--enable-hopengl],
33 [Build HOpenGL, a Haskell binding for OpenGL/GLUT.]))
34 FP_HTML_COMMENT([{ test x"$enable_hopengl" = xyes || test x"$enable_hopengl" = xx11; }], [HOpenGL])
36 # Write the results...
37 AC_OUTPUT(ghc.spec docs/libraries.html)