mirror of
https://github.com/ctm/syn68k.git
synced 2025-02-22 09:29:01 +00:00
Move endianess checks to autoconf
This commit is contained in:
parent
9409c41302
commit
7a41a745a7
@ -4,7 +4,7 @@ AC_INIT(syn68k, 1.0, ctm@ardi.com)
|
|||||||
AM_INIT_AUTOMAKE
|
AM_INIT_AUTOMAKE
|
||||||
|
|
||||||
AC_CONFIG_SRCDIR([syngen/main.c])
|
AC_CONFIG_SRCDIR([syngen/main.c])
|
||||||
AC_CONFIG_HEADER([config.h])
|
AC_CONFIG_HEADERS([config.h])
|
||||||
|
|
||||||
# Checks for programs.
|
# Checks for programs.
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
@ -113,6 +113,8 @@ AC_C_INLINE
|
|||||||
AC_TYPE_SIZE_T
|
AC_TYPE_SIZE_T
|
||||||
AC_C_VOLATILE
|
AC_C_VOLATILE
|
||||||
|
|
||||||
|
AC_C_BIGENDIAN([AC_DEFINE(BIGENDIAN, 1, [big])], [AC_DEFINE(LITTLEENDIAN, 1, [little])])
|
||||||
|
|
||||||
# Checks for library functions.
|
# Checks for library functions.
|
||||||
AC_FUNC_ALLOCA
|
AC_FUNC_ALLOCA
|
||||||
AC_FUNC_ERROR_AT_LINE
|
AC_FUNC_ERROR_AT_LINE
|
||||||
|
@ -5,21 +5,6 @@
|
|||||||
|
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
|
|
||||||
/* Decide whether we are big or little endian here. Add more machines as
|
|
||||||
* they are supported.
|
|
||||||
*/
|
|
||||||
#if !defined(BIGENDIAN) && !defined(LITTLEENDIAN)
|
|
||||||
# if defined(__BIG_ENDIAN__) || defined(m68k) || defined(mc68000) \
|
|
||||||
|| defined(sparc) || defined(powerpc) || defined (__ppc__)
|
|
||||||
# define BIGENDIAN /* ARDI naming convention, why rock the boat? */
|
|
||||||
# elif defined(__alpha) || defined(i860) || defined(vax) || defined(i386)
|
|
||||||
# define LITTLEENDIAN
|
|
||||||
# else
|
|
||||||
# error "Unknown CPU type"
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* Define this for CPUs that require n byte data be aligned
|
/* Define this for CPUs that require n byte data be aligned
|
||||||
* on addresses congruent to zero modulo n. The name "QUADALIGN"
|
* on addresses congruent to zero modulo n. The name "QUADALIGN"
|
||||||
* is another ARDI convention, why rock the boat?
|
* is another ARDI convention, why rock the boat?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user