configure.ac 938 Bytes
Newer Older
1
# Initialise and check sanity.
2
AC_INIT([Glasgow Haskell Compiler], [6.3.20040927], [glasgow-haskell-bugs@haskell.org], [ghc])
3
AC_CONFIG_SRCDIR([ghc.spec.in])
chak's avatar
chak committed
4

5 6 7 8
# Calculate project version as an integer, using 2 digits for minor version
case $PACKAGE_VERSION in
  *.?)  ProjectVersionInt=`echo "$PACKAGE_VERSION" | sed 's,^\(.*\)\.\(.\)$,\10\2,'` ;;
  *.??) ProjectVersionInt=`echo "$PACKAGE_VERSION" | sed 's,^\(.*\)\.\(..\)$,\1\2,'` ;;
9 10
  *.?.*)  ProjectVersionInt=`echo "$PACKAGE_VERSION" | sed 's,^\(.*\)\.\(.\)\.\(.*\)$,\10\2,'` ;;
  *.??.*) ProjectVersionInt=`echo "$PACKAGE_VERSION" | sed 's,^\(.*\)\.\(..\)\.\(.*\)$,\1\2,'` ;;
11 12 13 14 15
  *) AC_MSG_ERROR([bad package version $PACKAGE_VERSION]) ;;
esac
AC_SUBST([ProjectVersionInt])

# Hmmm, we fix the RPM release number to 1 here... Is this convenient?
16
AC_SUBST([release], [1])
chak's avatar
chak committed
17

18
# Write the results...
19
AC_CONFIG_FILES([ghc.spec VERSION docs/users_guide/ug-book.xml mk/version.mk])
20
AC_OUTPUT