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])
5 # duplicate from ../configure.ac
7 [AC_HELP_STRING([--with-ghc=ARG],
8 [Use ARG as the path to GHC [default=autodetect]])],
10 [if test "$GHC" = ""; then
11 AC_PATH_PROG([GHC], [ghc])
18 # Hmmm, we fix the RPM release number to 1 here... Is this convenient?
19 AC_SUBST([release], [1])
21 FP_GCC_NEEDS_NO_OMIT_LFPTR
23 # Check whether this GHC has readline installed
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"
32 AC_MSG_WARN([GTK+ not usable, need at least version 2.0])
36 AC_SUBST([GTK_CONFIG])
38 # Write the results...
39 AC_CONFIG_FILES([ghc.spec VERSION docs/users_guide/ug-book.xml mk/config.mk mk/version.mk])