Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Molaro <lupus@oddwiz.org>2001-09-10 18:26:02 +0400
committerPaolo Molaro <lupus@oddwiz.org>2001-09-10 18:26:02 +0400
commitfd9ebd8238ed391edfc3600d699567d0cda8e755 (patch)
tree80032b4386b85c9ba864fdf78a6515bafc1d4095 /configure.in
parente3cc1a6593853eaffb2069dc64cdb81b5212132b (diff)
Mon Sep 10 20:19:00 CEST 2001 Paolo Molaro <lupus@ximian.com>
* configure.in: check for sizeof(void*) and for the architecture. Mon Sep 10 17:26:06 CEST 2001 Paolo Molaro <lupus@ximian.com> * Makefile.am, x86/Makefile.am: conditional compile logic to make porting to different targets easier. Mon Sep 10 17:24:45 CEST 2001 Paolo Molaro <lupus@ximian.com> * Makefile.am: make it work for make distcheck. Mon Sep 10 20:21:34 CEST 2001 Paolo Molaro <lupus@ximian.com> * endian.h, assembly.c: fix some endianness issues. Mon Sep 10 20:20:36 CEST 2001 Paolo Molaro <lupus@ximian.com> * interp.c: endian fixes, comments. svn path=/trunk/mono/; revision=783
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in34
1 files changed, 34 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 0701927d0b4..1b41188fb80 100644
--- a/configure.in
+++ b/configure.in
@@ -3,6 +3,8 @@ AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(mono, 0.6)
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 ***************************
@@ -30,6 +34,36 @@ AC_SUBST(GMODULE_CFLAGS)
AC_SUBST(GMODULE_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([