Skip to content

Commit

Permalink
Merge pull request #14 from jrtc27/mipsel
Browse files Browse the repository at this point in the history
Add support for little-endian MIPS
  • Loading branch information
dcjm committed Jan 21, 2016
2 parents 8336516 + 94c19cc commit 20c792f
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 34 deletions.
18 changes: 9 additions & 9 deletions config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -554,31 +554,31 @@
/* Define to 1 if the system has the type `_Bool'. */
#undef HAVE__BOOL

/* Define if the host is an ARM (64 bit) */
/* Define if the host is an ARM (64-bit) */
#undef HOSTARCHITECTURE_AARCH64

/* Define if the host is an ARM (32 bit) */
/* Define if the host is an ARM (32-bit) */
#undef HOSTARCHITECTURE_ARM

/* Define if the host is Itanium */
/* Define if the host is an Itanium */
#undef HOSTARCHITECTURE_IA64

/* Define if the host is Mips (32-bit) */
/* Define if the host is a MIPS (32-bit) */
#undef HOSTARCHITECTURE_MIPS

/* Define if the host is a Power PC (32 bit) */
/* Define if the host is a PowerPC (32-bit) */
#undef HOSTARCHITECTURE_PPC

/* Define if the host is a Power PC (64 bit) */
/* Define if the host is a PowerPC (64-bit) */
#undef HOSTARCHITECTURE_PPC64

/* Define if the host is a Sparc (32 bit) */
/* Define if the host is a Sparc (32-bit) */
#undef HOSTARCHITECTURE_SPARC

/* Define if the host is an X86 (32 bit) */
/* Define if the host is an X86 (32-bit) */
#undef HOSTARCHITECTURE_X86

/* Define if the host is an X86 (64 bit) */
/* Define if the host is an X86 (64-bit) */
#undef HOSTARCHITECTURE_X86_64

/* Define if using the interpreter */
Expand Down
34 changes: 17 additions & 17 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ AC_PATH_X
if test "x${with_x}" = "xyes"; then

AC_DEFINE([WITH_XWINDOWS], [1], [Define if the X-Windows interface should be built])

if test "$x_includes" != "" ; then
if test "$x_includes" != "NONE" ; then
CFLAGS="$CFLAGS -I$x_includes"
Expand All @@ -157,7 +157,7 @@ if test "x${with_x}" = "xyes"; then
AC_CHECK_LIB(X11, XCreateGC)
AC_CHECK_LIB(Xt, XtMalloc)
AC_CHECK_LIB(Xext, XextAddDisplay)

if test "$xm_includes" != "" ; then
if test "$xm_includes" != "NONE" ; then
CFLAGS="$CFLAGS -I$xm_includes"
Expand Down Expand Up @@ -250,8 +250,8 @@ if test "x$with_system_libffi" = "xyes"; then
[ AC_MSG_FAILURE([--with-system-libffi was given, but ffi.h header file cannot be found]) ])
],
[AC_MSG_FAILURE([--with-system-libffi was given, but the ffi library is not installed])]
)
]
)
]
)
else
# Use internal libffi
Expand Down Expand Up @@ -416,41 +416,41 @@ AC_ARG_ENABLE([native-codegeneration],

case "${host_cpu}" in
i[[3456]]86*)
AC_DEFINE([HOSTARCHITECTURE_X86], [1], [Define if the host is an X86 (32 bit)])
AC_DEFINE([HOSTARCHITECTURE_X86], [1], [Define if the host is an X86 (32-bit)])
polyarch=i386
;;
x86_64* | amd64*)
AC_DEFINE([HOSTARCHITECTURE_X86_64], [1], [Define if the host is an X86 (64 bit)])
AC_DEFINE([HOSTARCHITECTURE_X86_64], [1], [Define if the host is an X86 (64-bit)])
polyarch=x86_64
;;
sparc*)
AC_DEFINE([HOSTARCHITECTURE_SPARC], [1], [Define if the host is a Sparc (32 bit)])
AC_DEFINE([HOSTARCHITECTURE_SPARC], [1], [Define if the host is a Sparc (32-bit)])
polyarch=interpret
;;
powerpc64* | ppc64*)
AC_DEFINE([HOSTARCHITECTURE_PPC64], [1], [Define if the host is a Power PC (64 bit)])
AC_DEFINE([HOSTARCHITECTURE_PPC64], [1], [Define if the host is a PowerPC (64-bit)])
polyarch=interpret
;;
power* | ppc*)
AC_DEFINE([HOSTARCHITECTURE_PPC], [1], [Define if the host is a Power PC (32 bit)])
AC_DEFINE([HOSTARCHITECTURE_PPC], [1], [Define if the host is a PowerPC (32-bit)])
polyarch=interpret
;;
arm*)
AC_DEFINE([HOSTARCHITECTURE_ARM], [1], [Define if the host is an ARM (32 bit)])
AC_DEFINE([HOSTARCHITECTURE_ARM], [1], [Define if the host is an ARM (32-bit)])
polyarch=interpret
;;
aarch64*)
AC_DEFINE([HOSTARCHITECTURE_AARCH64], [1], [Define if the host is an ARM (64 bit)])
AC_DEFINE([HOSTARCHITECTURE_AARCH64], [1], [Define if the host is an ARM (64-bit)])
polyarch=interpret
;;
ia64*)
AC_DEFINE([HOSTARCHITECTURE_IA64], [1], [Define if the host is Itanium])
AC_DEFINE([HOSTARCHITECTURE_IA64], [1], [Define if the host is an Itanium])
polyarch=interpret
;;
mips)
AC_DEFINE([HOSTARCHITECTURE_MIPS], [1], [Define if the host is Mips (32-bit)])
polyarch=interpret
;;
;;
mips*)
AC_DEFINE([HOSTARCHITECTURE_MIPS], [1], [Define if the host is a MIPS (32-bit)])
polyarch=interpret
;;
*) AC_MSG_ERROR([Poly/ML is not supported for this architecture]) ;;
esac

Expand Down
25 changes: 17 additions & 8 deletions winconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@

/* Define to 1 if you have the `sysctlbyname' function. */
#undef HAVE_SYSCTLBYNAME

/* Define to 1 if the system has the type
`SYSTEM_LOGICAL_PROCESSOR_INFORMATION'. */
#undef HAVE_SYSTEM_LOGICAL_PROCESSOR_INFORMATION
Expand Down Expand Up @@ -593,22 +593,31 @@
/* Define to 1 if the system has the type `_Bool'. */
#undef HAVE__BOOL

/* Define if the host is an ARM (32 bit) */
/* Define if the host is an ARM (64-bit) */
/*#undef HOSTARCHITECTURE_AARCH64*/

/* Define if the host is an ARM (32-bit) */
/*#undef HOSTARCHITECTURE_ARM*/

/* Define if the host is Itanium */
/* Define if the host is an Itanium */
/*#undef HOSTARCHITECTURE_IA64*/

/* Define if the host is a Power PC (32 bit) */
/* Define if the host is a MIPS (32-bit) */
/*#undef HOSTARCHITECTURE_MIPS*/

/* Define if the host is a PowerPC (32-bit) */
/*#undef HOSTARCHITECTURE_PPC*/

/* Define if the host is a Sparc (32 bit) */
/* Define if the host is a PowerPC (64-bit) */
/*#undef HOSTARCHITECTURE_PPC64*/

/* Define if the host is a Sparc (32-bit) */
/*#undef HOSTARCHITECTURE_SPARC*/

/* Define if the host is an X86 (32 bit) */
/* Define if the host is an X86 (32-bit) */
/*#undef HOSTARCHITECTURE_X86*/

/* Define if the host is an X86 (64 bit) */
/* Define if the host is an X86 (64-bit) */
/*#undef HOSTARCHITECTURE_X86_64*/

/* Define to 1 if `lstat' dereferences a symlink specified with a trailing
Expand Down Expand Up @@ -727,7 +736,7 @@
#undef size_t

/* Define to `int' if <sys/types.h> does not define. */
// There is an SSIZE_T
// There is an SSIZE_T
#undef ssize_t

#if defined(_MSC_VER)
Expand Down

0 comments on commit 20c792f

Please sign in to comment.