dnl its gcc defaults to 64-bit mode. They have also deprecated the usage of ucontext
dnl we need to set some flags to build our 32-bit binaries on 10.6 properly
case "$host" in
- dnl MacPorts config.guess reports as this
- x86_64-*-darwin10*)
- BROKEN_DARWIN_FLAGS="-arch i386 -D_XOPEN_SOURCE -mmacosx-version-min=10.5"
- CPPFLAGS="$CPPFLAGS $BROKEN_DARWIN_FLAGS"
- CFLAGS="$CFLAGS $BROKEN_DARWIN_FLAGS"
- CXXFLAGS="$CXXFLAGS $BROKEN_DARWIN_FLAGS"
- CCASFLAGS="$CCASFLAGS $BROKEN_DARWIN_FLAGS"
- CPPFLAGS_FOR_LIBGC="$CPPFLAGS_FOR_LIBGC $BROKEN_DARWIN_FLAGS"
- CFLAGS_FOR_LIBGC="$CFLAGS_FOR_LIBGC $BROKEN_DARWIN_FLAGS"
- CPPFLAGS_FOR_EGLIB="$CPPFLAGS_FOR_EGLIB $BROKEN_DARWIN_FLAGS"
- CFLAGS_FOR_EGLIB="$CFLAGS_FOR_EGLIB $BROKEN_DARWIN_FLAGS"
- ;;
dnl Snow Leopard config.guess reports as this
i*86-*-darwin10*)
BROKEN_DARWIN_FLAGS="-arch i386 -D_XOPEN_SOURCE -mmacosx-version-min=10.5"
mcs_topdir_from_srcdir='$(top_builddir)'/$mcsdir
fi
+# Convert mcs_topdir* paths to Windows syntax.
+if test x$cross_compiling$host_win32 = xnoyes; then
+ mcs_topdir=$(cygpath -m $mcs_topdir)
+ case $mcs_topdir_from_srcdir in
+ /cygdrive/*)
+ mcs_topdir_from_srcdir=$(cygpath -m $mcs_topdir_from_srcdir)
+ ;;
+ esac
+fi
+
## Maybe should also disable if mcsdir is invalid. Let's punt the issue for now.
AM_CONDITIONAL(BUILD_MCS, [test x$cross_compiling = xno && test x$enable_mcs_build != xno])
esac
AC_SUBST([libgdiplus_loc])
-PKG_PROG_PKG_CONFIG()
-if test "x$PKG_CONFIG" = "x"; then
- AC_MSG_ERROR([You need to install pkg-config])
-fi
+AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
pkg_config_path=
AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir Change pkg-config dir to custom dir],
)
AC_ARG_WITH([glib],
- [ --with-glib=embedded|system Choose glib API: system or embedded (default to system)],
- [], [with_glib=system])
+ [ --with-glib=embedded|system Choose glib API: system or embedded (default to embedded)],
+ [], [with_glib=embedded])
eglib_dir=
eglib_dir=eglib
;;
system)
- echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH"
- echo "cross_compiling=$cross_compiling"
+ if test "x$PKG_CONFIG" = "xno"; then
+ AC_MSG_ERROR([You need to install pkg-config])
+ fi
+ echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH"
+ echo "cross_compiling=$cross_compiling"
BUILD_GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
BUILD_GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
dnl
dnl No, you will not replace this check with a pkg.m4 check
dnl
+ if test "x$PKG_CONFIG" = "xno"; then
+ AC_MSG_ERROR([You need to install pkg-config])
+ fi
if $PKG_CONFIG --atleast-version=$GLIB_REQUIRED_VERSION glib-2.0; then
GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
dnl *********************************
dnl *** Checks for math functions ***
dnl *********************************
- LIBS="$LIBS -lm";
+ AC_SEARCH_LIBS(sqrtf, m)
if test "x$has_broken_apple_cpp" != "xyes"; then
AC_CHECK_FUNCS(finite, , AC_MSG_CHECKING(for finite in math.h)
AC_TRY_LINK([#include <math.h>],
llvm_version=`$LLVM_CONFIG --version`
major_version=`echo $llvm_version | cut -c 1`
minor_version=`echo $llvm_version | cut -c 3`
+ if echo $llvm_version | grep -q 'mono'; then
+ AC_DEFINE(LLVM_MONO_BRANCH, 1, [Whenever we are using the mono branch of LLVM])
+ LLVM_CXXFLAGS="$LLVM_CXXFLAGS -DLLVM_MONO_BRANCH"
+ fi
AC_DEFINE_UNQUOTED(LLVM_MAJOR_VERSION, $major_version, [Major version of LLVM libraries])
AC_DEFINE_UNQUOTED(LLVM_MINOR_VERSION, $minor_version, [Minor version of LLVM libraries])
*-*-*freebsd*)
LIBC="libc.so"
INTL="libintl.so"
+ SQLITE="libsqlite.so"
+ SQLITE3="libsqlite3.so"
;;
*-*-*openbsd*)
LIBC="libc.so"
INTL="libintl.so"
+ SQLITE="libsqlite.so"
+ SQLITE3="libsqlite3.so"
;;
*-*-*linux*)
AC_PATH_X