2 AM_CONFIG_HEADER(config.h)
3 AM_INIT_AUTOMAKE(mono, 0.7)
16 AC_CHECK_SIZEOF(void *)
18 dnl ***************************
19 dnl *** Checks for glib 1.2 ***
20 dnl ***************************
22 AC_MSG_ERROR([Cannot find GLIB: Is glib-config in path?]))
24 GLIB_CFLAGS=`glib-config --cflags glib`
25 GLIB_LIBS=`glib-config --libs glib`
30 GMODULE_CFLAGS=`glib-config --cflags gmodule`
31 GMODULE_LIBS=`glib-config --libs gmodule`
33 AC_SUBST(GMODULE_CFLAGS)
34 AC_SUBST(GMODULE_LIBS)
36 dnl *****************************
37 dnl *** Checks for libpthread ***
38 dnl *****************************
39 AC_CHECK_LIB(pthread, pthread_create, [
41 AM_CONDITIONAL(THREADS_PTHREAD, true)
42 AC_DEFINE(HAVE_PTHREAD)
44 AC_MSG_RESULT([Cannot find libpthread])
45 # Check for other thread systems here, set THREAD_LIBS to
46 # whatever is needed, and define
47 # AM_CONDITIONAL(THREADS_foo, true), and add it to the
48 # section in mono/metadata/Makefile.am, AC_DEFINE(HAVE_foo),
49 # add that to acconfig.h, add the section for that in
50 # mono/metadata/threads.h
54 CFLAGS='-g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations'
59 #mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS;;
60 i*86-*-*) TARGET=X86; arch_target=x86;;
61 #sparc-sun-4*) TARGET=SPARC;;
62 #sparc-sun-*) TARGET=SPARC;;
63 #sparc*-*-linux*) TARGET=SPARC;;
64 #alpha*-*-linux* | alpha*-*-osf*) TARGET=ALPHA;;
65 #m68k-*-linux*) TARGET=M68K;;
66 #powerpc-*-linux* | powerpc-*-sysv*) TARGET=POWERPC;;
67 #arm-*-linux-*) TARGET=ARM;;
70 if test ${TARGET} = unknown; then
71 CFLAGS="$CFLAGS -DNO_PORT"
72 AC_MSG_WARN("mono has not been ported to $host: some things may not work.")
75 AM_CONDITIONAL(MIPS_GCC, test ${TARGET}${ac_cv_prog_gcc} = MIPSyes)
76 AM_CONDITIONAL(MIPS_SGI, test ${TARGET}${ac_cv_prog_gcc} = MIPSno)
77 AM_CONDITIONAL(SPARC, test x$TARGET = xSPARC)
78 AM_CONDITIONAL(X86, test x$TARGET = xX86)
79 AM_CONDITIONAL(ALPHA, test x$TARGET = xALPHA)
80 AM_CONDITIONAL(M68K, test x$TARGET = xM68K)
81 AM_CONDITIONAL(POWERPC, test x$TARGET = xPOWERPC)
82 AM_CONDITIONAL(ARM, test x$TARGET = xARM)
90 mono/metadata/Makefile
94 mono/arch/x86/Makefile
95 mono/interpreter/Makefile
98 mono/monoburg/Makefile