AC_SUBST([CONFIGURE_ARGS], [$ac_configure_args])
+dnl ----------------------------------------------------------
+dnl ** Find unixy sort and find commands,
+dnl ** which are needed by FP_SETUP_PROJECT_VERSION
+
+dnl ** Find find command (for Win32's benefit)
+FP_PROG_FIND
+
+dnl ** Find sort command (for the benefit of Win32 environs)
+FP_PROG_SORT
+
+dnl ----------------------------------------------------------
FP_SETUP_PROJECT_VERSION
# Hmmm, we fix the RPM release number to 1 here... Is this convenient?
dnl ** figure out how to do context diffs
FP_PROG_CONTEXT_DIFF
-dnl ** Find find command (for Win32's benefit)
-FP_PROG_FIND
-
-dnl ** Find sort command (for the benefit of Win32 environs)
-FP_PROG_SORT
-
dnl Let's make sure install-sh is executable here. If we got it from
dnl a darcs repo, it might not be (see bug #978).
chmod +x install-sh
AC_SUBST(HavePapiLib)
AC_SUBST(HavePapiHeader)
+AC_CHECK_FUNCS(__mingw_vfprintf)
+
if test "$HavePapiLib" = "YES" -a "$HavePapiHeader" = "YES"; then
HavePapi=YES
else
AC_SUBST(BUILD_DOCBOOK_PS)
AC_SUBST(BUILD_DOCBOOK_PDF)
+if grep ' ' compiler/ghc.cabal.in 2>&1 >/dev/null; then
+ AC_MSG_ERROR([compiler/ghc.cabal.in contains tab characters; please remove them])
+fi
+
AC_CONFIG_FILES([mk/config.mk mk/project.mk compiler/ghc.cabal ghc/ghc-bin.cabal ghc.spec extra-gcc-opts docs/users_guide/ug-book.xml distrib/ghc.iss])
AC_CONFIG_COMMANDS([mk/stamp-h],[echo timestamp > mk/stamp-h])
AC_OUTPUT