X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=configure.in;h=0bf4e6f9b66ab3def981501a382506184bd03111;hb=a7855691e031b073db276f5b5f3bf8c809d21fdc;hp=865f09b2d2c0f20f7e9738e2f4ba87c3afc8d3ad;hpb=3c8a3d1b0698f57ba31ff2b74473f1a619a93382;p=mono.git diff --git a/configure.in b/configure.in index 865f09b2d2c..0bf4e6f9b66 100644 --- a/configure.in +++ b/configure.in @@ -1,8 +1,10 @@ AC_INIT(README) AM_CONFIG_HEADER(config.h) -AM_INIT_AUTOMAKE(mono, 0.1) +AM_INIT_AUTOMAKE(mono, 0.7) AM_MAINTAINER_MODE +AC_CANONICAL_HOST + AC_PROG_CC AM_PROG_CC_STDC AC_PROG_INSTALL @@ -11,6 +13,8 @@ AC_PROG_INSTALL AC_HEADER_STDC AM_PROG_LIBTOOL +AC_CHECK_SIZEOF(void *) + dnl *************************** dnl *** Checks for glib 1.2 *** dnl *************************** @@ -23,7 +27,61 @@ GLIB_LIBS=`glib-config --libs glib` AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS) +GMODULE_CFLAGS=`glib-config --cflags gmodule` +GMODULE_LIBS=`glib-config --libs gmodule` + +AC_SUBST(GMODULE_CFLAGS) +AC_SUBST(GMODULE_LIBS) + +dnl ***************************** +dnl *** Checks for libpthread *** +dnl ***************************** +AC_CHECK_LIB(pthread, pthread_create, [ + THREAD_LIBS=-lpthread + AM_CONDITIONAL(THREADS_PTHREAD, true) + AC_DEFINE(HAVE_PTHREAD) + ], [ + AC_MSG_RESULT([Cannot find libpthread]) + # Check for other thread systems here, set THREAD_LIBS to + # whatever is needed, and define + # AM_CONDITIONAL(THREADS_foo, true), and add it to the + # section in mono/metadata/Makefile.am, AC_DEFINE(HAVE_foo), + # add that to acconfig.h, add the section for that in + # mono/metadata/threads.h + ]) +AC_SUBST(THREAD_LIBS) + CFLAGS='-g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations' + +TARGET="unknown" + +case "$host" in +#mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS;; +i*86-*-*) TARGET=X86; arch_target=x86;; +#sparc-sun-4*) TARGET=SPARC;; +#sparc-sun-*) TARGET=SPARC;; +#sparc*-*-linux*) TARGET=SPARC;; +#alpha*-*-linux* | alpha*-*-osf*) TARGET=ALPHA;; +#m68k-*-linux*) TARGET=M68K;; +#powerpc-*-linux* | powerpc-*-sysv*) TARGET=POWERPC;; +#arm-*-linux-*) TARGET=ARM;; +esac + +if test ${TARGET} = unknown; then + CFLAGS="$CFLAGS -DNO_PORT" + AC_MSG_WARN("mono has not been ported to $host: some things may not work.") +fi + +AM_CONDITIONAL(MIPS_GCC, test ${TARGET}${ac_cv_prog_gcc} = MIPSyes) +AM_CONDITIONAL(MIPS_SGI, test ${TARGET}${ac_cv_prog_gcc} = MIPSno) +AM_CONDITIONAL(SPARC, test x$TARGET = xSPARC) +AM_CONDITIONAL(X86, test x$TARGET = xX86) +AM_CONDITIONAL(ALPHA, test x$TARGET = xALPHA) +AM_CONDITIONAL(M68K, test x$TARGET = xM68K) +AM_CONDITIONAL(POWERPC, test x$TARGET = xPOWERPC) +AM_CONDITIONAL(ARM, test x$TARGET = xARM) + +AC_SUBST(arch_target) AC_SUBST(CFLAGS) AC_OUTPUT([ @@ -32,4 +90,13 @@ mono/Makefile mono/metadata/Makefile mono/dis/Makefile mono/cil/Makefile -]) \ No newline at end of file +mono/arch/Makefile +mono/arch/x86/Makefile +mono/interpreter/Makefile +mono/tests/Makefile +mono/wrapper/Makefile +mono/monoburg/Makefile +mono/jit/Makefile +runtime/Makefile +doc/Makefile +])