--- evolution-sharp-0.9.1/configure.in.orig 2005-08-19 20:03:23.000000000 +0200 +++ evolution-sharp-0.9.1/configure.in 2005-08-22 19:41:47.000000000 +0200 @@ -26,7 +26,22 @@ AC_SUBST(EBOOK_SOVERSION) AC_SUBST(ECAL_SOVERSION) -PKG_CHECK_MODULES(MONO, mono >= 1.0.0) +MONO_REQUIRED_VERSION=1.0.0 +PKG_CHECK_MODULES(MONO, mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false) +PKG_CHECK_MODULES(MINT, mint >= $MONO_REQUIRED_VERSION, has_mint=true, has_mint=false) + +if test "x$has_mono" = "xtrue"; then + echo "using mono" + RUNTIME="mono --debug" +else + if test "x$has_mint" = "xtrue"; then + echo "using mint" + RUNTIME="mint" + else + AC_MSG_ERROR([Unable to find mono or mint packages]); + fi +fi +AC_SUBST(RUNTIME) AC_PATH_PROG(CSC, mcs, no) if test "x$CSC" = "xno"; then AC_MSG_ERROR([Your mono installation doesn't expose mcs])