4.115
Last change
on this file since 99a1f122 was
5139d21,
checked in by Anthony Green <green@…>, on 01/10/15 at 19:04:06
|
moxiesim: Add conditional logic to handle old and new gas syntax
|
-
Property mode set to
100644
|
File size:
954 bytes
|
Line | |
---|
1 | ## Process this file with autoconf to produce a configure script. |
---|
2 | ## |
---|
3 | ## $Id: configure.ac,v 1.20 2009/11/28 06:28:39 ralf Exp $ |
---|
4 | |
---|
5 | AC_PREREQ(2.60) |
---|
6 | AC_INIT([rtems-c-src-lib-libbsp-moxie-moxiesim],[_RTEMS_VERSION],[https://devel.rtems.org/newticket]) |
---|
7 | AC_CONFIG_SRCDIR([bsp_specs]) |
---|
8 | RTEMS_TOP(../../../../../..) |
---|
9 | |
---|
10 | RTEMS_CANONICAL_TARGET_CPU |
---|
11 | AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.10]) |
---|
12 | RTEMS_BSP_CONFIGURE |
---|
13 | |
---|
14 | RTEMS_PROG_CC_FOR_TARGET |
---|
15 | RTEMS_CANONICALIZE_TOOLS |
---|
16 | RTEMS_PROG_CCAS |
---|
17 | |
---|
18 | RTEMS_BSP_CLEANUP_OPTIONS(0, 0) |
---|
19 | |
---|
20 | AC_MSG_CHECKING([for old moxie assembly syntax]) |
---|
21 | AC_COMPILE_IFELSE( |
---|
22 | [AC_LANG_PROGRAM( |
---|
23 | [], |
---|
24 | [asm("sub.l $r0, $r0");])], |
---|
25 | [HAVE_OLD_MOXIE_ASM=yes], |
---|
26 | [HAVE_OLD_MOXIE_ASM=no]) |
---|
27 | AC_MSG_RESULT([$HAVE_OLD_MOXIE_ASM]) |
---|
28 | if test "x$HAVE_OLD_MOXIE_ASM" = xyes; then |
---|
29 | AC_DEFINE(HAVE_OLD_MOXIE_ASM, |
---|
30 | 1, [Define if you are using old moxie asm syntax (sub.l)]) |
---|
31 | fi |
---|
32 | |
---|
33 | # Explicitly list all Makefiles here |
---|
34 | AC_CONFIG_FILES([Makefile]) |
---|
35 | AC_OUTPUT |
---|
Note: See
TracBrowser
for help on using the repository browser.