[project @ 2004-09-20 16:32:58 by panne]
[ghc-hetmet.git] / ghc / configure.ac
1 # Initialise and check sanity.
2 AC_INIT([Glasgow Haskell Compiler], [6.3], [glasgow-haskell-bugs@haskell.org], [ghc])
3 AC_CONFIG_SRCDIR([ghc.spec.in])
4
5 # Calculate project version as an integer, using 2 digits for minor version
6 case $PACKAGE_VERSION in
7   *.?)  ProjectVersionInt=`echo "$PACKAGE_VERSION" | sed 's,^\(.*\)\.\(.\)$,\10\2,'` ;;
8   *.??) ProjectVersionInt=`echo "$PACKAGE_VERSION" | sed 's,^\(.*\)\.\(..\)$,\1\2,'` ;;
9   *) AC_MSG_ERROR([bad package version $PACKAGE_VERSION]) ;;
10 esac
11 AC_SUBST([ProjectVersionInt])
12
13 # Hmmm, we fix the RPM release number to 1 here... Is this convenient?
14 AC_SUBST([release], [1])
15
16 # Write the results...
17 AC_CONFIG_FILES([ghc.spec VERSION docs/users_guide/ug-book.xml mk/version.mk])
18 AC_OUTPUT