Fix a bug related to threads blocked on blackholes
[ghc-hetmet.git] / ghc / configure.ac
1 # Initialise and check sanity.
2 AC_INIT([The Glorious Glasgow Haskell Compilation System], [6.5], [glasgow-haskell-bugs@haskell.org], [ghc])
3 AC_CONFIG_SRCDIR([ghc.spec.in])
4
5 # duplicate from ../configure.ac
6 AC_ARG_WITH([ghc],
7 [AC_HELP_STRING([--with-ghc=ARG],
8   [Use ARG as the path to GHC  [default=autodetect]])],
9   [WithGhc="$withval"],
10   [if test "$GHC" = ""; then
11     AC_PATH_PROG([GHC], [ghc])
12   fi
13   WithGhc="$GHC"])
14 AC_SUBST([WithGhc])
15
16 FP_SETUP_PROJECT_INFO
17
18 # Hmmm, we fix the RPM release number to 1 here... Is this convenient?
19 AC_SUBST([release], [1])
20
21 FP_GCC_NEEDS_NO_OMIT_LFPTR
22
23 # Check whether this GHC has readline installed
24 FP_GHC_HAS_READLINE
25
26 # test for GTK+
27 AC_PATH_PROGS([GTK_CONFIG], [pkg-config])
28 if test -n "$GTK_CONFIG"; then
29   if $GTK_CONFIG gtk+-2.0 --atleast-version=2.0; then
30     GTK_CONFIG="$GTK_CONFIG gtk+-2.0"
31   else
32     AC_MSG_WARN([GTK+ not usable, need at least version 2.0])
33     GTK_CONFIG=
34   fi
35 fi
36 AC_SUBST([GTK_CONFIG])
37
38 # Write the results...
39 AC_CONFIG_FILES([ghc.spec VERSION docs/users_guide/ug-book.xml mk/config.mk mk/version.mk])
40 AC_OUTPUT